Skip to content
Snippets Groups Projects

Fix get_index_root_data() to work with out-of-order trains in files

Merged Philipp Schmidt requested to merge fix/out-of-order-trains into master

In files, trains are not guaranteed to be in order - while all public EXtra-data APIs compensate for this, the FileAccess API presents a low-level view of a single file and thus still includes it.

The call to np.intersect1d used to determine the subset of trains in each sequence file always returns a sorted result for trains, and thus an unsorted index array. This breaks for direct access to h5py datasets.

This MR transfers that order back to the index array from the subset of trains in a sequence file as suggested by @danilo

@danilo

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading