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

[ENH] SoftiMax HDF5 reader #779

Merged
merged 3 commits into from
Dec 18, 2024
Merged

Conversation

borondics
Copy link
Member

This PR contains a change for the HERMES reader to ensure that the file is closed after reading and a new HDF5 reader for the Max-IV SoftiMax beamline that has almost the same entries as the HERMES (counter instead of Counter). Instead of doing some string manipulation magic I added a new class. Eventually it would be nice to unify these readers though.

Also, I will change the order of x_locs and y_locs in the HERMES reader because the current code will crash with non-square maps.

To come: small SoftiMax test file and reader test.

@borondics borondics requested a review from stuart-cls December 9, 2024 15:20
Copy link
Member

@stuart-cls stuart-cls left a comment

Choose a reason for hiding this comment

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

Looks good! I like this approach, better to get it in and combine later. Example file / tests would be good.

I would guess these are actually NXstxm files and we can use that logic in the future.

Also, I will change the order of x_locs and y_locs in the HERMES reader because the current code will crash with non-square maps.

I don't understand this comment.

orangecontrib/spectroscopy/io/soleil.py Outdated Show resolved Hide resolved
orangecontrib/spectroscopy/io/soleil.py Outdated Show resolved Hide resolved
@markotoplak markotoplak changed the title SoftiMax HDF5 reader [ENH] SoftiMax HDF5 reader Dec 18, 2024
@markotoplak
Copy link
Collaborator

I'll merge this for now so that it is released, but tests would be appreciated.

@markotoplak markotoplak merged commit 2bbb856 into Quasars:master Dec 18, 2024
12 of 20 checks passed
@borondics
Copy link
Member Author

Thanks guys! I will write tests.

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.

3 participants