Skip to content

Handle different TimeOfFlightLookUpTable type.#180

Merged
YooSunYoung merged 2 commits intomainfrom
fix-test
Dec 17, 2025
Merged

Handle different TimeOfFlightLookUpTable type.#180
YooSunYoung merged 2 commits intomainfrom
fix-test

Conversation

@YooSunYoung
Copy link
Copy Markdown
Member

In the recent releases, we changed the type of TimeOfFlightLookUpTable type, from DataArray to DataGroup and then to dataclass.
It didn't affect the package itself but just one pytest so instead of raising the lower bound, I just fixed the unittest.
The lower bound test was triggered here: https://github.com/scipp/essnmx/actions/runs/20297448245/job/58294470348

Comment thread tests/executable_test.py Outdated
tof_lut.array *= 2
if isinstance(tof_lut, sc.DataArray):
tof_lut *= 2
elif isinstance(tof_lut, sc.DataGroup):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think the table was ever a DataGroup.
I first tried that out, but it was never merged into main, it got replaced by the dataclass in the same PR and that got merged...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I see...! Fixed now.

Comment thread tests/executable_test.py Outdated
@YooSunYoung YooSunYoung disabled auto-merge December 17, 2025 10:15
@YooSunYoung YooSunYoung enabled auto-merge (squash) December 17, 2025 10:35
@YooSunYoung YooSunYoung requested a review from nvaytet December 17, 2025 12:00
@YooSunYoung YooSunYoung merged commit 515849b into main Dec 17, 2025
4 checks passed
@YooSunYoung YooSunYoung deleted the fix-test branch December 17, 2025 15:42
@github-project-automation github-project-automation Bot moved this from In progress to Done in Development Board Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants