Skip to content

1.1.7: window_ranges sort issue#116

Merged
marco-mariotti merged 3 commits into
masterfrom
window_ranges_sort
Dec 16, 2025
Merged

1.1.7: window_ranges sort issue#116
marco-mariotti merged 3 commits into
masterfrom
window_ranges_sort

Conversation

@endrebak

Copy link
Copy Markdown
Collaborator

@marco-mariotti Do these changes look correct to you?

@endrebak

Copy link
Copy Markdown
Collaborator Author

Would hopefully fix

#98
#105

@marco-mariotti

Copy link
Copy Markdown
Member

I can review tomorrow.
Just a point: it should follow the general guideline for methods: by default, return intervals in input order if possible, unless restore_order=False
as per #104

@marco-mariotti

marco-mariotti commented Dec 14, 2025 via email

Copy link
Copy Markdown
Member

@marco-mariotti

Copy link
Copy Markdown
Member

@endrebak I reviewed and it looks good. I also added the add_window_id argument as I had mentioned in the issue and updated docstring.

The only thing: this function does not preserve input order. Doing so is not straightforward (see for example how we do in other functions) because of duplicated indices in output. I just added a warning. I think this is fine

@marco-mariotti marco-mariotti merged commit 86ac619 into master Dec 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants