Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the nans in accumulated transferlib bug #419

Merged
merged 7 commits into from
Dec 21, 2024
Merged

Conversation

mo-sameh
Copy link
Collaborator

Changing from loc to iloc to fix a bug where the first row of fragments for all precursors (except the first) contained only NaNs. This issue occurred because, when using loc with a slice, both endpoints are included by default (see: Pandas documentation on advanced indexing).

In contrast, by definition of frag_start and frag_stop indices specifies that frag_stop is exclusive, which aligns with the behavior of iloc.

@mo-sameh mo-sameh requested a review from GeorgWa December 20, 2024 18:09
@mo-sameh mo-sameh added the test:e2e End to end tests will be run on PRs that carry this label. label Dec 20, 2024
@mo-sameh mo-sameh requested a review from mschwoer December 20, 2024 18:10
@GeorgWa GeorgWa added test:e2e End to end tests will be run on PRs that carry this label. and removed test:e2e End to end tests will be run on PRs that carry this label. labels Dec 20, 2024
Copy link
Collaborator

@GeorgWa GeorgWa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a testcase for the outputaccumulator in a separate PR?
I will merge this briefly and check the release :)

@GeorgWa GeorgWa merged commit 485717b into main Dec 21, 2024
23 checks passed
@GeorgWa GeorgWa deleted the fix-nan-fragments-bug branch December 21, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:e2e End to end tests will be run on PRs that carry this label.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants