Skip to content

Slicing selection not aligned on "Python standards" #308

Open
@OBeaude

Description

Starting recently with Linopy, I discovered that, applying a slicing operation on a variable (with .loc[idx_start: idx_end] method), does select the last index idx_end, which seems non-aligned on some standards of key Python packages (e.g., numpy, pandas).

Is it directly related to xarray basis of Linopy - and in turn, not easy to be corrected, or could it evolve in a future version of Linopy?

Thank you

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions