Open DominicOram opened 2 weeks ago
An update on this. I think I have found the file that GDA calls to trigger PyMCA and it is /dls_sw/apps/mx-scripts/bin/RunPyMcaZocaloAtEndOfCollect.sh
. This file actually does call a recipe file that is contained within the live zocalo-configuration called pymca-fitter except for some reason, this script calls it using the file path with the -f flag, meaning that zocalo treats it as a custom-recipe (in terms of logging), which is why I thought it was running a custom-recipe. If you got hyperion to run a similar command to the one in the file with zocalo.go (except you can replace the -f
spectrumID or "xfeFluorescenceSpectrumID" is not actually used by the pymca-zocalo code in any way, though, in its current state, I think it will throw an error if it is not present as it is given as a required argument to a function that doesn't use it.
Are you able to make it optional your end so that it won't give an error if we don't provide it?
Ultimately, yes, I will do this. The pymca_fitter service code has not been maintained for a while and is currently running from some old zocalo environment, so it will need a bit of work before I can deploy it with this change. I'll let you know when it's done.
After capturing fluorescence data we should trigger zocalo to analyse it. To do this zocalo needs a blank recipe and the following parameters:
Where
inputFile
is the file written by the detector (Note that we will be using the HDF writer on the detector so we can read the location from that). Currently, it is not obvious whatspectrumID
corresponds to @pblowey is looking into itAcceptance Criteria
read_hardware
plan stub that will read the required hardware