bluesky / suitcase-specfile

write text file such as output by SPEC
Other
0 stars 8 forks source link

Multiple motors #18

Open whs92 opened 3 years ago

whs92 commented 3 years ago

This adds the ablity to run the following plans in bluesky and generate specfiles that can be opened in PyMca. Tested with PyMca version 5.6.3

The scan header is correctly formatted as per the spec manual for mesh a2scan,a3scan,a4scan and d2scan, d3scan, d4scan

If a grid_scan is performed with more than 2 motors, an error is thrown since this isn't in the spec mesh specification.

Tested by running scans in bluesky and then viewing the output in PyMca and in the case of mesh, with the RegularMeshPlugin. I was not sure how to add tests for this to the pytest files, ideally I'd add a test if the headers created are correct. Any help would be appreciated.

I found that if I try and run pytest on my machine the test against the historical files always fails because the date is calculated from the epoch assuming I am in the US. Otherwise it's correct.