DiamondLightSource / DiamondLightSource/mx-bluesky

Zocalo callback to trigger zocalo fluorescence

Open
#233 7 comments 0 reactions 0 assignees View on GitHub
Fluoresence
Dominant language
Python
Stars
4
Forks
5
Avg merge
1d 30m
Merged PRs (30d)
2

Description

After capturing fluorescence data we should trigger zocalo to analyse it. To do this zocalo needs a blank recipe and the following parameters:

```python
params = {
"inputFile": "/dls/i24/data/2024/cm37275-3/20240617_16_03_53.dat",
"omega": "10.1",
"transmission": "9.879",
"samplexyz": "(0,-1,0)",
"acqTime": "1.0",
"energy": "12399.7",
"spectrumID": "15408",
"custom_recipe": {
"start": [[1, []]],
"1": {
"service": "DLS PyMca Fitter",
"queue": "pymca.fitter",
"parameters": {
"inputFile": "{inputFile}",
"omega": "{omega}",
"transmission": "{transmission}",
"samplexyz": "{samplexyz}",
"acqTime": "{acqTime}",
"energy": "{energy}",
"xfeFluorescenceSpectrumID": "{spectrumID}",
},
},
},
}
```
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 what `spectrumID` corresponds to @pblowey is looking into it

## Acceptance Criteria
* There is a `read_hardware` plan stub that will read the required hardware
* There is a callback that will take this data and pass it to zocalo as expected

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.