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

loadRun is not working for 2025-1 cycle scans due to beamline codebase refactoring. #178

Open
PriyankaKetkarBNL opened this issue Feb 19, 2025 · 1 comment

Comments

@PriyankaKetkarBNL
Copy link
Collaborator

Tried to load data for RSoXS energy scan:

scanID = 92202
scan = Loader.loadRun(scanID).unstack('system')

Got AttributeError: 'NoneType' object has no attribute 'round' pointing to md["sam_x"]: https://github.com/usnistgov/PyHyperScattering/blob/main/src/PyHyperScattering/SST1RSoXSDB.py#L1149

The error is likely the result of "RSoXS Sample Outboard-Inboard" being renamed as "manipulator_x". Will try to add new key to md_secondary_lookup.

@PriyankaKetkarBNL
Copy link
Collaborator Author

Longer-term fix (try/except scripts to deal with differently-named or missing metadata) pending. Short-term bypass is reflected in this commit: 7732c9d

The primary md_lookup dictionary was updated to new metadata key names and manually added md["exposure"] value because shutter control was not saved in the baseline.

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

When branches are created from issues, their pull requests are automatically linked.

1 participant