Skip to content

Broken subsetting of unsorted datasets #213

Open
@pacesm

Description

The selection of unsorted datasets is broken.

The selection is supposed to work as follows:

  1. sorting index is generated for the unsorted times (stable argsort)
  2. range subset is found for the sorted times and subsetting index is created as a range subset of the sorting index
  3. the subsetting index is split in range subset to be extracted the source CDF (the CDF library does not support handle index slicing) and offset subsetting index applied to the extracted data range

The splitting of the subsetting index is not performed correctly

return slice(index_min, index_max), SLICE_ALL

The range is correct, but the second part incorrectly select all data (SLICE_ALL) instead of returning the offset index.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions