DiamondLightSource / mx-bluesky

Bluesky plans, plan stubs, and utilities for MX beamlines
https://diamondlightsource.github.io/mx-bluesky/
Apache License 2.0
0 stars 2 forks source link

Deposit fluorescence data collection in ispyb #228

Open DominicOram opened 4 months ago

DominicOram commented 4 months ago

To be able to routinely do fluroescence scans we would need to be able to put the data into ispyb such as https://ispyb.diamond.ac.uk/dc/visit/cm37235-2/ty/mca/id/15180.

Acceptance Criteria

DominicOram commented 3 months ago

Corresponding entry in ispyb looks like:

SELECT * FROM XFEFluorescenceSpectrum WHERE xfeFluorescenceSpectrumId=15180 LIMIT 3\G
*************************** 1. row ***************************
xfeFluorescenceSpectrumId: 15180
                sessionId: 27514084
               blSampleId: NULL
     jpegScanFileFullPath: /dls/i03/data/2024/cm37235-2/20240409_16_21_43.png
                startTime: 2024-04-09 16:21:43
                  endTime: 2024-04-09 16:22:23
                 filename: /dls/i03/data/2024/cm37235-2/20240409_16_21_43.mca
             exposureTime: 1
             axisPosition: NULL
         beamTransmission: 0.4
annotatedPymcaXfeSpectrum: NULL
   fittedDataFileFullPath: NULL
         scanFileFullPath: /dls/i03/data/2024/cm37235-2/20240409_16_21_43.dat
                   energy: 18000
         beamSizeVertical: 20
       beamSizeHorizontal: 80
             crystalClass: NULL
                 comments: NULL
            blSubSampleId: NULL
                     flux: NULL
                 flux_end: NULL
         workingDirectory: NULL
DominicOram commented 3 months ago

No endpoints in exp-eye yet. There is https://github.com/DiamondLightSource/ispyb-api/blob/28613d92e13ba57d357098a81abf6bac831ca601/src/ispyb/sp/mxacquisition.py#L247 in ispyb-api if we want to use that. Currently in discussion with SIMS if they would rather we use exp-eye

DominicOram commented 3 months ago

Hold off until at least week beginning 05/08 whilst we work out what to do with exp-eye

DominicOram commented 3 months ago

We think Medium

DominicOram commented 3 months ago

Endpoint now exists https://expeye-staging.diamond.ac.uk/api/core/docs#