Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In most beamlines at MAXIV, the frame orientation is currently set to "origin at the bottom left when viewed from the sample." Due to this, azint will now ignore the orientation specified in the configuration (or PONI) files.
Updated azint to disregard orientation settings from config or PONI files when using the default beamline orientation.
Enhanced azint to accept both a dictionary and a PONI file, not just a PONI file.
The new functionality allows azint to process inputs in the following way:
{
'poni': {
'detector': 'Eiger4M',
'distance': '0.4010703458557646',
'poni1': '0.15025612549194067',
'poni2': '0.13234147820003397',
'rot1': '-0.0006320348455512269',
'rot2': '0.0008004131799709323',
'rot3': '0.0',
'wavelength': '3.542521763813852e-11'
},
'mask': None,
'radial_bins': 1000,
'azimuth_bins': None,
'n_splitting': 4,
'error_model': None,
'unit': 'q',
'polarization_factor': None
}
and also:
{
'poni': '/path/to/poni/file',
'mask': None,
'radial_bins': 1000,
'azimuth_bins': None,
'n_splitting': 4,
'error_model': None,
'unit': 'q',
'polarization_factor': None
}