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

Fixes for scipp-0.14 #33

Merged
merged 4 commits into from
Jun 1, 2022
Merged

Fixes for scipp-0.14 #33

merged 4 commits into from
Jun 1, 2022

Conversation

SimonHeybrock
Copy link
Member

Will make a patch release when merged.

assert detector[...].shape == [4]
assert detector[()].shape == [4]
assert tuple(detector[...].shape) == (4, )
assert tuple(detector[()].shape) == (4, )
Copy link
Member

Choose a reason for hiding this comment

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

Looks odd. Why does this convert the LHS to a tuple and then test with a tuple on the RHS? Looks like the LHS should have already been a tuple to warrant a change.

Copy link
Member Author

Choose a reason for hiding this comment

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

Because we are running tests against both the latest (current frozen) scipp as well as an old version of scipp (which still gives a list).

@SimonHeybrock SimonHeybrock merged commit e79af12 into main Jun 1, 2022
@SimonHeybrock SimonHeybrock deleted the scipp-0.14 branch June 1, 2022 14:06
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