Skip to content

Conversation

@djorlando24
Copy link

Hi Alan,

I'm making a pull reuquest to incorporate some improvements I've made to my local copy of MDA2HDF5_Fluorescence back into your main aps-7bm github repository. The changes are documented and should be backward compatible with previous behaviour of those libraries, but you would want to check in case you've made your own changes to these scripts in the last few months. If this is the case, perhaps my version could be renamed as a separate script.

Cheers
Daniel D.

No change to existing functionality - just fixed some minor bugs. Intend to improve command line interface in future commit.
Script can merge multiple 1D scans (performed using a pyEpics script loop for example), and generate 2D arrays in a single HDF5 file for each PV. For an MCA, it can take the 2D array produced by a ScanH for the array record wrapped in Scan1, and output a full 3D array. Very useful for merging fluorescence detector spectra for 2D raster scanning experiments.
This is a more powerful version of ALK's Combine_Scans script. Can now handle unequal array sizes by RHS-padding with NaN. This is useful when a scan gets aborted or scans of unequal length are merged.
Inner positioner group names generated by MDA2HDF5_Fluorescence are now sorted by a float conversion of everything that comes after the = sign in the HDF group name. This makes it easy to graph results using HDFView's Image mode because the scans are pre-sorted.
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.

1 participant