Miscellaneous tasks#

How to use

These tasks come from ewoksdrac ewoksid13 ewoksmx ewoksxes. It can be installed with

pip install ewoksdrac ewoksid13 ewoksmx ewoksxes

AggregateCharacterisationHdf5Task#

Identifier:
ewoksmx.tasks.characterisation.aggregate_characterisation_hdf5.aggregate_characterisation_hdf5.AggregateCharacterisationHdf5Task
Task type:
class
Inputs:
nxmx_template_path* : esrf_pathlib.core.ESRFPath
wedge_spec* : ewoksmx.models.characterisation_models.WedgeSpec
metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
aggregated_hdf5_path : esrf_pathlib.core.ESRFPath

BestTask#

Run BEST to calculate the optimal data collection strategy.

Identifier:
ewoksmx.tasks.characterisation.best_task.BestTask
Task type:
class
Inputs:
metadata* : ewoksmx.models.characterisation_models.MetadataModel
integration_result* : ewoksmx.models.xds_model.XDSIntegrationResultModel
crystal_absorbed_dose_rate : float | None= None

Absorbed dose rate in Gy/s, e.g. calculated by RADDOSE

Outputs:
best_result : ewoksmx.models.best_model.BestResultModel
is_success : bool

Same as best_result.is_success, for conditional links

CompareIntegrationResults#

Identifier:
ewoksmx.tasks.characterisation.compare_integration_results.CompareIntegrationResults
Task type:
class
Inputs:
start_timer : bool | ewokscore.missing_data.MissingData= <MISSING_DATA>
self_trigger : bool | ewokscore.missing_data.MissingData= <MISSING_DATA>
metadata* : ewoksmx.models.characterisation_models.MetadataModel
xds_integration_result : ewoksmx.models.xds_model.XDSIntegrationResultModel | ewokscore.missing_data.MissingData= <MISSING_DATA>
mosflm_integration_result : ewoksmx.models.xds_model.XDSIntegrationResultModel | ewokscore.missing_data.MissingData= <MISSING_DATA>
labelit_integration_result : ewoksmx.models.xds_model.XDSIntegrationResultModel | ewokscore.missing_data.MissingData= <MISSING_DATA>
quality_score_threshold : float | None= None
timeout : float= 600.0
Outputs:
self_trigger : bool | ewokscore.missing_data.MissingData
integration_result : ewoksmx.models.xds_model.XDSIntegrationResultModel | None | ewokscore.missing_data.MissingData
reason : str | ewokscore.missing_data.MissingData
result : Literal['xds', 'labelit', 'mosflm'] | None | ewokscore.missing_data.MissingData
is_success : bool | ewokscore.missing_data.MissingData
elapsed_time : float | ewokscore.missing_data.MissingData

IntegrationDecisionResult#

Expose only the completed decision as workflow outputs.

Identifier:
ewoksmx.tasks.characterisation.compare_integration_results.IntegrationDecisionResult
Task type:
class
Inputs:
elapsed_time*
integration_result*
is_success*
reason*
result*
Outputs:
integration_result
is_success
reason
result

CreateFastCharacterisationWedgesTask#

Build a wedge specification for a packed fast-characterisation scan.

Identifier:
ewoksmx.tasks.characterisation.create_characterisation_wedges.create_fast_characterisation_wedges.CreateFastCharacterisationWedgesTask
Task type:
class
Inputs:
data_paths* : list[esrf_pathlib.core.ESRFPath]
metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
wedge_spec : ewoksmx.models.characterisation_models.WedgeSpec
nxmx_template_path : esrf_pathlib.core.ESRFPath

CreateFineSlicedCharacterisationWedgesTask#

Build a wedge specification for independent fine-sliced scans.

Unlike CreateFastCharacterisationWedgesTask, each wedge has its own file and its recorded per-frame omega values can be trusted, so omega_start_deg and omega_range_deg are read directly from each file’s omega dataset instead of being derived from the nominal per-wedge rotation angle.

Identifier:
ewoksmx.tasks.characterisation.create_characterisation_wedges.create_fine_sliced_characterisation_wedges.CreateFineSlicedCharacterisationWedgesTask
Task type:
class
Inputs:
data_paths* : list[esrf_pathlib.core.ESRFPath]
metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
wedge_spec : ewoksmx.models.characterisation_models.WedgeSpec
nxmx_template_path : esrf_pathlib.core.ESRFPath

CreateStandardCharacterisationWedgesTask#

Build a wedge specification for independent reference-image scans.

Each wedge is a single reference image with its own file, and its recorded omega value can be trusted, so omega_start_deg is read directly from each file’s omega dataset (a scalar or a one-dimensional series).

Identifier:
ewoksmx.tasks.characterisation.create_characterisation_wedges.create_standard_characterisation_wedges.CreateStandardCharacterisationWedgesTask
Task type:
class
Inputs:
data_paths* : list[esrf_pathlib.core.ESRFPath]
metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
wedge_spec : ewoksmx.models.characterisation_models.WedgeSpec
nxmx_template_path : esrf_pathlib.core.ESRFPath

FbestTask#

Run FBEST to calculate a minimal data collection strategy.

Unlike BEST, FBEST needs no indexing or integration: the exposure time and transmission are estimated from the flux, beam and crystal size, accounting for radiation damage. It is therefore used, as in BES, for a data collection without strategy, e.g. if the indexing fails. The resolution is the Dozor visible resolution if known, otherwise the current MXCuBE resolution.

Identifier:
ewoksmx.tasks.characterisation.fbest_task.FbestTask
Task type:
class
Inputs:
metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
fbest_result : ewoksmx.models.fbest_model.FbestResultModel

GenerateCharacterisationCbfTask#

Generate characterisation CBF images from a summed HDF5 master.

Identifier:
ewoksmx.tasks.characterisation.generate_characterisation_cbf.generate_characterisation_cbf.GenerateCharacterisationCbfTask
Task type:
class
Inputs:
summed_hdf5_path* : esrf_pathlib.core.ESRFPath
metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
cbf_paths : list[esrf_pathlib.core.ESRFPath]

One summed CBF image per characterisation wedge

start_timer : bool

GeneratePrediction#

Overlays the reflections predicted from the XDS integration geometry on the summed characterisation images, as the EDNA MOSFLM GeneratePrediction plugin did, up to the resolution where the crystal diffracts (see high_resolution_limit). Fully recorded reflections are marked in blue, partially recorded ones in orange.

Identifier:
ewoksmx.tasks.characterisation.generate_prediction.GeneratePrediction
Task type:
class
Inputs:
summed_hdf5_path* : esrf_pathlib.core.ESRFPath

Summed HDF5 master file, one summed image per wedge

metadata* : ewoksmx.models.characterisation_models.MetadataModel
integration_result* : ewoksmx.models.xds_model.XDSIntegrationResultModel | None

Selected XDS integration result, whichever program indexed the images, providing the geometry (GXPARM.XDS) of the predictions

high_resolution_limit : float | None= None

High resolution limit (in Angstrom) of the predictions. None: where the I/sigma of the CORRECT.LP resolution shells falls below i_over_sigma_threshold

i_over_sigma_threshold : float= 1.0

Shell I/sigma defining the default high resolution limit

Outputs:
prediction_image_paths : list[esrf_pathlib.core.ESRFPath]

One image per wedge with the predicted reflections overlaid, empty when there is no successful integration result

LabelitIndexing#

Run Labelit DPS autoindexing on reference CBF images.

labelit.screen selects the best solution and hands it to labelit.mosflm_scripts, which writes the corresponding MOSFLM orientation matrix as a script. Labelit itself keeps no detailed indexing log, so that MOSFLM-generated matrix is parsed to produce the same MosflmIndexingResultModel shape as MosflmIndexing, making the two tasks interchangeable for downstream consumers such as MosflmIndexingToXds.

Identifier:
ewoksmx.tasks.characterisation.labelit_indexing.LabelitIndexing
Task type:
class
Inputs:
cbf_paths* : list[esrf_pathlib.core.ESRFPath]

Reference CBF images for Labelit autoindexing (only the first two are used)

metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
mosflm_indexing_result : ewoksmx.models.mosflm_model.MosflmIndexingResultModel

MosflmIndexing#

Run MOSFLM DPS autoindexing to index diffraction images.

Identifier:
ewoksmx.tasks.characterisation.mosflm_indexing.MosflmIndexing
Task type:
class
Inputs:
summed_hdf5_path* : esrf_pathlib.core.ESRFPath

Path to the summed HDF5 master file (one summed image per wedge)

metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
mosflm_indexing_result : ewoksmx.models.mosflm_model.MosflmIndexingResultModel

MosflmIndexingToXds#

Converts a MOSFLM indexing result into an XDS indexing result.

Runs XDS’s XYCORR INIT COLSPOT IDXREF jobs seeded with the orientation matrix and unit cell determined by MOSFLM, so that XDS refines this known solution and produces the XPARM.XDS and correction files required by XDSIntegration, instead of auto-indexing from scratch.

Identifier:
ewoksmx.tasks.characterisation.mosflm_indexing_to_xds.MosflmIndexingToXds
Task type:
class
Inputs:
aggregated_hdf5_path* : esrf_pathlib.core.ESRFPath

Paths to aggregated HDF5 master file

metadata* : ewoksmx.models.characterisation_models.MetadataModel
mosflm_indexing_result* : ewoksmx.models.mosflm_model.MosflmIndexingResultModel
Outputs:
xds_indexing_result : ewoksmx.models.xds_model.XDSIndexingResultModel

RaddoseTask#

Run RADDOSE to estimate the absorbed dose rate of the crystal.

The unit cell and space group are taken from GXPARM.XDS written by CORRECT, given by the integration result. The dose rate is not estimated, without failing the task, if the integration failed or if the flux or beam size is missing. The RADDOSE default crystal size is used if the data collection has no crystal size.

Identifier:
ewoksmx.tasks.characterisation.raddose_task.RaddoseTask
Task type:
class
Inputs:
metadata* : ewoksmx.models.characterisation_models.MetadataModel
integration_result* : ewoksmx.models.xds_model.XDSIntegrationResultModel
Outputs:
raddose_result : ewoksmx.models.raddose_model.RaddoseResultModel
crystal_absorbed_dose_rate : float | None

Absorbed dose rate in Gy/s, None if not estimated

SelectCharacterisationScanTask#

Select the preparation task for the characterisation scan type.

Identifier:
ewoksmx.tasks.characterisation.select_characterisation_scan.select_characterisation_scan.SelectCharacterisationScanTask
Task type:
class
Inputs:
data_path* : esrf_pathlib.core.ESRFPath
metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
scan_type : Literal['fast', 'fine_sliced', 'standard']
data_paths : list[esrf_pathlib.core.ESRFPath]

SumCharacterisationHdf5Task#

Identifier:
ewoksmx.tasks.characterisation.sum_characterisation_hdf5.sum_characterisation_hdf5.SumCharacterisationHdf5Task
Task type:
class
Inputs:
aggregated_hdf5_path* : esrf_pathlib.core.ESRFPath
metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
summed_hdf5_path : esrf_pathlib.core.ESRFPath

XDSBackgroundImage#

Run XDS INIT job to generate background image.

Identifier:
ewoksmx.tasks.characterisation.xds_background_image.xds_background_image.XDSBackgroundImage
Task type:
class
Inputs:
aggregated_hdf5_path* : esrf_pathlib.core.ESRFPath

Paths to aggregated HDF5 master file

metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
xds_background_path : esrf_pathlib.core.ESRFPath

Path to XDS background image file

XDSIndexing#

Run XDS XYCORR INIT COLSPOT IDXREF jobs to index diffraction images.

Identifier:
ewoksmx.tasks.characterisation.xds_indexing.XDSIndexing
Task type:
class
Inputs:
aggregated_hdf5_path* : esrf_pathlib.core.ESRFPath

Paths to aggregated HDF5 master file

metadata* : ewoksmx.models.characterisation_models.MetadataModel
Outputs:
xds_indexing_result : ewoksmx.models.xds_model.XDSIndexingResultModel

XDSIntegration#

Run DEFPIX INTEGRATE CORRECT jobs to integrate diffraction images.

Identifier:
ewoksmx.tasks.characterisation.xds_integration.XDSIntegration
Task type:
class
Inputs:
aggregated_hdf5_path* : esrf_pathlib.core.ESRFPath

Path to the aggregated HDF5 master file

metadata* : ewoksmx.models.characterisation_models.MetadataModel
xds_indexing_result* : ewoksmx.models.xds_model.XDSIndexingResultModel
Outputs:
xds_integration_result : ewoksmx.models.xds_model.XDSIntegrationResultModel

BestMetricDecision#

Identifier:
ewoksmx.tasks.examples.decision.BestMetricDecision
Task type:
class
Inputs:
start_timer : bool | ewokscore.missing_data.MissingData= <MISSING_DATA>
self_trigger : bool | ewokscore.missing_data.MissingData= <MISSING_DATA>
threshold* : float
timeout* : float
metric_a : float | ewokscore.missing_data.MissingData= <MISSING_DATA>
metric_b : float | ewokscore.missing_data.MissingData= <MISSING_DATA>
Outputs:
self_trigger : bool | ewokscore.missing_data.MissingData
accepted : bool | ewokscore.missing_data.MissingData
selected_metric : str | ewokscore.missing_data.MissingData
reason : str | ewokscore.missing_data.MissingData

Start#

Identifier:
ewoksmx.tasks.examples.decision_support.Start
Task type:
class
Outputs:
start

DelayedMetric#

Identifier:
ewoksmx.tasks.examples.decision_support.DelayedMetric
Task type:
class
Inputs:
score*
delay
Outputs:
score

ProcessDecision#

Identifier:
ewoksmx.tasks.examples.decision_support.ProcessDecision
Task type:
class
Inputs:
accepted*
reason*
selected_metric*
Outputs:
accepted
reason
selected_metric

CataloguedDatasetTask#

Interface for a task that is within a metadata catalog. This class does not enforce a specific implementation of the catalog

Identifier:
ewoksmx.tasks.mx_ccp4.catalogued_dataset_task.CataloguedDatasetTask
Task type:
class
Inputs:
raw_data_path* : list

Filename of ID31 P3 detector flatfield

Examples:
  • '/data/visitor/ihls3721/...ssF/run_01_01_automesh'
    
datasets_path* : list

Filename of ID31 P3 detector ‘old’ flatfield

Examples:
  • '/data/visitor/ihls3721/...ssF/run_01_01_automesh'
    
datasets* : list

X-ray energy in KeV or URL of hdf5 dataset storing its value

Examples:
  • ("{'id': 2186942730, 'name... 1, 'currentPage': "
     '1}}}')
    

DracDatasetTask#

It is a task conceived to be run on a single RAW dataset. It manages the output destination and the initialization

Identifier:
ewoksmx.tasks.mx_ccp4.drac_dataset_task.DracDatasetTask
Task type:
class
Inputs:
raw_data_path* : list

Filename of ID31 P3 detector flatfield

Examples:
  • '/data/visitor/ihls3721/...ssF/run_01_01_automesh'
    
datasets_path* : list

Filename of ID31 P3 detector ‘old’ flatfield

Examples:
  • '/data/visitor/ihls3721/...ssF/run_01_01_automesh'
    
datasets* : list

X-ray energy in KeV or URL of hdf5 dataset storing its value

Examples:
  • ("{'id': 2186942730, 'name... 1, 'currentPage': "
     '1}}}')
    
sessionId* : str

A unique identifier for the ICAT session. It is used as a token to identify the user

Examples: 'xfthscs-234234sdfsd-fsfsd21'
callback* : str

A web endpoint to be called upon task completion or status updates. Usually a call to icat+

Examples: 'https://icatplus.esrf.fr/callback'

MXCCP4CloudUploader#

Identifier:
ewoksmx.tasks.mx_ccp4.mx_ccp4_cloud_uploader.MXCCP4CloudUploader
Task type:
class
Inputs:
raw_data_path* : list

Filename of ID31 P3 detector flatfield

Examples:
  • '/data/visitor/ihls3721/...ssF/run_01_01_automesh'
    
datasets_path* : list

Filename of ID31 P3 detector ‘old’ flatfield

Examples:
  • '/data/visitor/ihls3721/...ssF/run_01_01_automesh'
    
datasets* : list

X-ray energy in KeV or URL of hdf5 dataset storing its value

Examples:
  • ("{'id': 2186942730, 'name... 1, 'currentPage': "
     '1}}}')
    
sessionId* : str

A unique identifier for the ICAT session. It is used as a token to identify the user

Examples: 'xfthscs-234234sdfsd-fsfsd21'
callback* : str

A web endpoint to be called upon task completion or status updates. Usually a call to icat+

Examples: 'https://icatplus.esrf.fr/callback'
user : str=

CCP4 cloud username

Examples: 'alex.demaria'
cloudrun_id* : str

CCP4 cloud API token

Examples: 'iov5-voef-ysfd-dxuq'

AutoPROC_pipeline#

Prepare the AutoPROC pipeline.

https://www.globalphasing.com/autoproc/

Identifier:
ewoksmx.tasks.mx_pipelines.autoproc_pipeline.AutoPROC_pipeline
Task type:
class
Inputs:
autoPROC*
metadata*
Outputs:
pipeline_name
slurm_params

EDNA_proc_pipeline#

Prepare the EDNA_proc pipeline.

https://www.esrf.fr/UsersAndScience/Experiments/MX/How_to_use_our_beamlines/Run_Your_Experiment/edna-autoprocessing

Identifier:
ewoksmx.tasks.mx_pipelines.edna_proc_pipeline.EDNA_proc_pipeline
Task type:
class
Inputs:
EDNA_proc*
metadata*
Outputs:
pipeline_name
slurm_params

Grenades_fastproc_pipeline#

Prepare the Grenades pipeline.

https://www.esrf.fr/home/UsersAndScience/Experiments/MX/How_to_use_our_beamlines/Run_Your_Experiment/grenades.html

Identifier:
ewoksmx.tasks.mx_pipelines.grenades_fastproc_pipeline.Grenades_fastproc_pipeline
Task type:
class
Inputs:
grenades_fastproc*
metadata*
Outputs:
pipeline_name
slurm_params

Grenades_parallelproc_pipeline#

Identifier:
ewoksmx.tasks.mx_pipelines.grenades_parallelproc_pipeline.Grenades_parallelproc_pipeline
Task type:
class
Inputs:
grenades_parallelproc*
metadata*
Outputs:
slurm_params

MXPipelineInput#

Identifier:
ewoksmx.tasks.mx_pipelines.mx_pipeline_input.MXPipelineInput
Task type:
class
Inputs:
raw_data_path*
anomalous
beamline
callback
end_image
exclude_range
forced_cell
forced_spacegroup
high_res_limit
icat_metadata
low_res_limit
mx_pipeline_name
proposal
start_image
Outputs:
EDNA_proc
XIA2_DIALS
autoPROC
grenades_fastproc
grenades_parallelproc
metadata

MXPipelineSynchronize#

Identifier:
ewoksmx.tasks.mx_pipelines.mx_pipeline_synchronize.MXPipelineSynchronize
Task type:
class
Inputs:
slurm_params*
Outputs:
slurm_params

RunAutoPROC#

Run the autoPROC pipeline.

Identifier:
ewoksmx.tasks.mx_pipelines.run_autoproc.RunAutoPROC
Task type:
class
Inputs:
master_h5_paths* : list[esrf_pathlib.core.ESRFPath]

List of paths to master H5 files

Examples:
  • ['/data/visitor/blc15921/id23eh1/20250121/RAW_DATA/LYS_2/LYS_2-Protk2_master.h5',
     '/data/visitor/blc15921/id23eh1/20250121/RAW_DATA/LYS_2/LYS_2-Protk3_master.h5']
    
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel
data_collection : ewoksmx.models.data_collection_model.DataCollectionModel | None= None
processing_plan : ewoksmx.models.processing_plan_model.ProcessingPlanModel | None= None
Outputs:
data_portal_upload_autoproc : ewoksmx.models.data_portal_upload_model.DataPortalUploadModel
data_portal_upload_autoproc_staraniso : ewoksmx.models.data_portal_upload_model.DataPortalUploadModel

SlurmSubmit#

Submit job to Slurm.

Identifier:
ewoksmx.tasks.mx_pipelines.slurm_submit.SlurmSubmit
Task type:
class
Inputs:
pipeline_name*
slurm_params*
Outputs:
slurm_params

WaitForFinished#

Identifier:
ewoksmx.tasks.mx_pipelines.wait_for_finished.WaitForFinished
Task type:
class
Inputs:
slurm_params*
Outputs:
slurm_params

WaitForStarted#

Identifier:
ewoksmx.tasks.mx_pipelines.wait_for_started.WaitForStarted
Task type:
class
Inputs:
slurm_params*
Outputs:
slurm_params

XIA2_DIALS_pipeline#

Prepare the XIA2 DIALS pipeline.

https://xia2.github.io/installation.html

Identifier:
ewoksmx.tasks.mx_pipelines.xia2_dials_pipeline.XIA2_DIALS_pipeline
Task type:
class
Inputs:
XIA2_DIALS*
metadata*
Outputs:
pipeline_name
slurm_params

Additional models#

WedgeSpec#

Fields:
wedges* : list[ewoksmx.models.characterisation_models.Wedge]

Wedge#

Fields:
frames* : list[ewoksmx.models.characterisation_models.Hdf5FrameReference]
omega_start_deg* : float
omega_range_deg* : float

Hdf5FrameReference#

Fields:
file_path* : esrf_pathlib.core.ESRFPath
dataset_path* : str
frame_index* : int

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

XDSIntegrationResultModel#

Fields:
is_success* : bool
xds_ascii_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
correct_lp : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
bkgpix_cbf : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
gxparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the GXPARM.XDS file refined by CORRECT

xparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the XPARM.XDS file used by INTEGRATE

integrate_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the INTEGRATE.HKL file written by INTEGRATE

integration_quality_score : float | None= None

BestResultModel#

Fields:
is_success* : bool

True if BEST proposed a data collection strategy

collection_plans : list[ewoksmx.models.best_model.BestCollectionPlanModel]

Collection plans of the proposed strategy, all to be collected

best_xml : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the BEST XML output file

Examples:
  • '/data/visitor/mx1234/id30a1/20261009/PROCESSED_DATA/best.xml'
    
best_log : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the BEST log file

Examples:
  • '/data/visitor/mx1234/id30a1/20261009/PROCESSED_DATA/best.log'
    
plot_mtv : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the BEST plotmtv file

Examples:
  • '/data/visitor/mx1234/id30a1/20261009/PROCESSED_DATA/plot.mtv'
    
error_message : str | None= None

Error message if BEST failed

Examples: 'BEST not run: integration was not successful'

BestCollectionPlanModel#

Fields:
index* : int

Index of the plan in the BEST XML output, starting at 1

Examples: 1
summary* : ewoksmx.models.best_model.BestStrategySummaryModel

Summary of the plan

collection_runs* : list[ewoksmx.models.best_model.BestCollectionRunModel]

Data collection wedges of the plan

BestStrategySummaryModel#

Fields:
resolution* : float

Predicted high resolution limit of the strategy in Angstroms

Examples: 3.5
resolution_reasoning : str | None= None

Explanation by BEST of what limits the resolution

Examples:
  • ('Resolution limit is set by the initial image '
     'resolution')
    
detector_distance* : float

Crystal to detector distance in mm

Examples: 391.92
i_over_sigma* : float

Predicted I/sigma in the highest resolution shell

Examples: 2.9
completeness* : float

Predicted completeness in %

Examples: 100.0
redundancy* : float

Predicted redundancy (multiplicity)

Examples: 5.36
transmission : float | None= None

Beam transmission in %

Examples: 4.9007
total_exposure_time* : float

Total exposure time of all collection runs in seconds

Examples: 0.35
total_data_collection_time* : float

Total data collection time of all collection runs in seconds

Examples: 2.87

BestCollectionRunModel#

Fields:
phi_start* : float

Rotation start angle in degrees

Examples: 18.0
number_of_images* : int

Number of images to collect

Examples: 630
phi_width* : float

Rotation angle per image in degrees

Examples: 0.2
exposure_time* : float

Exposure time per image in seconds

Examples: 0.001
overlaps : bool | None= None

True if BEST reports overlapping reflections for this run

Examples: False

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

XDSIntegrationResultModel#

Fields:
is_success* : bool
xds_ascii_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
correct_lp : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
bkgpix_cbf : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
gxparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the GXPARM.XDS file refined by CORRECT

xparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the XPARM.XDS file used by INTEGRATE

integrate_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the INTEGRATE.HKL file written by INTEGRATE

integration_quality_score : float | None= None

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

WedgeSpec#

Fields:
wedges* : list[ewoksmx.models.characterisation_models.Wedge]

Wedge#

Fields:
frames* : list[ewoksmx.models.characterisation_models.Hdf5FrameReference]
omega_start_deg* : float
omega_range_deg* : float

Hdf5FrameReference#

Fields:
file_path* : esrf_pathlib.core.ESRFPath
dataset_path* : str
frame_index* : int

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

WedgeSpec#

Fields:
wedges* : list[ewoksmx.models.characterisation_models.Wedge]

Wedge#

Fields:
frames* : list[ewoksmx.models.characterisation_models.Hdf5FrameReference]
omega_start_deg* : float
omega_range_deg* : float

Hdf5FrameReference#

Fields:
file_path* : esrf_pathlib.core.ESRFPath
dataset_path* : str
frame_index* : int

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

WedgeSpec#

Fields:
wedges* : list[ewoksmx.models.characterisation_models.Wedge]

Wedge#

Fields:
frames* : list[ewoksmx.models.characterisation_models.Hdf5FrameReference]
omega_start_deg* : float
omega_range_deg* : float

Hdf5FrameReference#

Fields:
file_path* : esrf_pathlib.core.ESRFPath
dataset_path* : str
frame_index* : int

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

FbestResultModel#

Fields:
is_success* : bool
exposure_time_per_image : float | None= None

Exposure time per image in s

transmission : float | None= None

Transmission in %

number_of_images : int | None= None
rotation_width : float | None= None

Rotation width per image in degrees

resolution : float | None= None

Resolution in Å

total_dose : float | None= None

Total dose in MGy

total_exposure_time : float | None= None

Total exposure time in s

dose_rate : float | None= None

Dose rate at 100 % transmission in MGy/s

sensitivity : float | None= None

Radiation sensitivity, 1 for cryo

min_exposure_time : float | None= None

Minimum exposure time per image in s

fbest_log : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
error_message : str | None= None

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

XDSIntegrationResultModel#

Fields:
is_success* : bool
xds_ascii_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
correct_lp : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
bkgpix_cbf : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
gxparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the GXPARM.XDS file refined by CORRECT

xparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the XPARM.XDS file used by INTEGRATE

integrate_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the INTEGRATE.HKL file written by INTEGRATE

integration_quality_score : float | None= None

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

MosflmIndexingResultModel#

Fields:
is_success* : bool
newmat* : ewoksmx.models.mosflm_model.MosflmNewmatModel | None
dna_tables* : ewoksmx.models.mosflm_model.MosflmDnaTablesModel | None
indexing_directory* : esrf_pathlib.core.ESRFPath

MosflmNewmatModel#

Fields:
matrix_a : list[list[float]]
missetting_angles : list[float]
matrix_u : list[list[float]]
cell* : ewoksmx.models.mosflm_model.MosflmCellModel

MosflmCellModel#

Fields:
a* : float
b* : float
c* : float
alpha* : float
beta* : float
gamma* : float

MosflmDnaTablesModel#

Fields:
mosaicity_estimation* : float
deviation_positional : float | None= None
deviation_angular : float | None= None
refined_distance* : float
spots_used : int | None= None
spots_total : int | None= None
selected_solution_number* : int
selected_solution_space_group* : str
selected_solution_space_group_number* : int
indexing_solution : list[ewoksmx.models.mosflm_model.MosflmIndexingSolutionModel]
refined_beam* : ewoksmx.models.mosflm_model.MosflmBeamPositionModel
beam_shift : ewoksmx.models.mosflm_model.MosflmBeamPositionModel | None= None

MosflmIndexingSolutionModel#

Fields:
index* : int
penalty* : float
lattice* : str
a* : float
b* : float
c* : float
alpha* : float
beta* : float
gamma* : float

MosflmBeamPositionModel#

Fields:
x* : float
y* : float

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

MosflmIndexingResultModel#

Fields:
is_success* : bool
newmat* : ewoksmx.models.mosflm_model.MosflmNewmatModel | None
dna_tables* : ewoksmx.models.mosflm_model.MosflmDnaTablesModel | None
indexing_directory* : esrf_pathlib.core.ESRFPath

MosflmNewmatModel#

Fields:
matrix_a : list[list[float]]
missetting_angles : list[float]
matrix_u : list[list[float]]
cell* : ewoksmx.models.mosflm_model.MosflmCellModel

MosflmCellModel#

Fields:
a* : float
b* : float
c* : float
alpha* : float
beta* : float
gamma* : float

MosflmDnaTablesModel#

Fields:
mosaicity_estimation* : float
deviation_positional : float | None= None
deviation_angular : float | None= None
refined_distance* : float
spots_used : int | None= None
spots_total : int | None= None
selected_solution_number* : int
selected_solution_space_group* : str
selected_solution_space_group_number* : int
indexing_solution : list[ewoksmx.models.mosflm_model.MosflmIndexingSolutionModel]
refined_beam* : ewoksmx.models.mosflm_model.MosflmBeamPositionModel
beam_shift : ewoksmx.models.mosflm_model.MosflmBeamPositionModel | None= None

MosflmIndexingSolutionModel#

Fields:
index* : int
penalty* : float
lattice* : str
a* : float
b* : float
c* : float
alpha* : float
beta* : float
gamma* : float

MosflmBeamPositionModel#

Fields:
x* : float
y* : float

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

MosflmIndexingResultModel#

Fields:
is_success* : bool
newmat* : ewoksmx.models.mosflm_model.MosflmNewmatModel | None
dna_tables* : ewoksmx.models.mosflm_model.MosflmDnaTablesModel | None
indexing_directory* : esrf_pathlib.core.ESRFPath

MosflmNewmatModel#

Fields:
matrix_a : list[list[float]]
missetting_angles : list[float]
matrix_u : list[list[float]]
cell* : ewoksmx.models.mosflm_model.MosflmCellModel

MosflmCellModel#

Fields:
a* : float
b* : float
c* : float
alpha* : float
beta* : float
gamma* : float

MosflmDnaTablesModel#

Fields:
mosaicity_estimation* : float
deviation_positional : float | None= None
deviation_angular : float | None= None
refined_distance* : float
spots_used : int | None= None
spots_total : int | None= None
selected_solution_number* : int
selected_solution_space_group* : str
selected_solution_space_group_number* : int
indexing_solution : list[ewoksmx.models.mosflm_model.MosflmIndexingSolutionModel]
refined_beam* : ewoksmx.models.mosflm_model.MosflmBeamPositionModel
beam_shift : ewoksmx.models.mosflm_model.MosflmBeamPositionModel | None= None

MosflmIndexingSolutionModel#

Fields:
index* : int
penalty* : float
lattice* : str
a* : float
b* : float
c* : float
alpha* : float
beta* : float
gamma* : float

MosflmBeamPositionModel#

Fields:
x* : float
y* : float

XDSIndexingResultModel#

Fields:
is_success* : bool
idxref* : ewoksmx.models.xds_model.IdxrefModel | None
xparm* : ewoksmx.models.xds_model.XparmModel | None
indexing_directory* : esrf_pathlib.core.ESRFPath

IdxrefModel#

Fields:
mosaicity : float | None= None
x_beam : float | None= None
y_beam : float | None= None
distance : float | None= None
lattice_character : int | None= None
space_group_number : int | None= None
quality_of_fit : float | None= None
a : float | None= None
b : float | None= None
c : float | None= None
alpha : float | None= None
beta : float | None= None
gamma : float | None= None

XparmModel#

Fields:
rot : list[float]
beam : list[float]
distance : float | None= None
origin_xds : list[float]
vector_a : list[float]
vector_b : list[float]
vector_c : list[float]
cell : list[float]
pixel_size : list[float]
pixel_numb : list[float]
symmetry : int | None= None
num_init : float | None= None
phi_init : float | None= None
delta_phi : float | None= None
detector_x : list[float]
detector_y : list[float]

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

XDSIntegrationResultModel#

Fields:
is_success* : bool
xds_ascii_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
correct_lp : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
bkgpix_cbf : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
gxparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the GXPARM.XDS file refined by CORRECT

xparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the XPARM.XDS file used by INTEGRATE

integrate_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the INTEGRATE.HKL file written by INTEGRATE

integration_quality_score : float | None= None

RaddoseResultModel#

Fields:
is_success* : bool

True if RADDOSE estimated the absorbed dose

absorbed_dose : float | None= None

Absorbed dose of the characterisation images in Gy

Examples: 44600.0
absorbed_dose_rate : float | None= None

Absorbed dose rate in Gy/s

Examples: 223000.0
time_to_reach_dose_limit : float | None= None

Exposure time in s to reach the configured dose limit (raddose.dose_limit, by default the Henderson limit of 20 MGy)

Examples: 89.7
solvent_content : float | None= None

Solvent content in % estimated by RADDOSE

Examples: 47.0
raddose_log : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the RADDOSE log file

Examples:
  • '/data/visitor/mx1234/id30a1/20261009/PROCESSED_DATA/raddose.log'
    
error_message : str | None= None

Error message if RADDOSE failed or was not run

Examples:
  • ('RADDOSE not run: the data collection flux is '
     'missing')
    

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

XDSIndexingResultModel#

Fields:
is_success* : bool
idxref* : ewoksmx.models.xds_model.IdxrefModel | None
xparm* : ewoksmx.models.xds_model.XparmModel | None
indexing_directory* : esrf_pathlib.core.ESRFPath

IdxrefModel#

Fields:
mosaicity : float | None= None
x_beam : float | None= None
y_beam : float | None= None
distance : float | None= None
lattice_character : int | None= None
space_group_number : int | None= None
quality_of_fit : float | None= None
a : float | None= None
b : float | None= None
c : float | None= None
alpha : float | None= None
beta : float | None= None
gamma : float | None= None

XparmModel#

Fields:
rot : list[float]
beam : list[float]
distance : float | None= None
origin_xds : list[float]
vector_a : list[float]
vector_b : list[float]
vector_c : list[float]
cell : list[float]
pixel_size : list[float]
pixel_numb : list[float]
symmetry : int | None= None
num_init : float | None= None
phi_init : float | None= None
delta_phi : float | None= None
detector_x : list[float]
detector_y : list[float]

MetadataModel#

Fields:
data_collection* : ewoksmx.models.data_collection_model.DataCollectionModel
processing_plan* : ewoksmx.models.processing_plan_model.ProcessingPlanModel
execution_context* : ewoksmx.models.execution_context_model.ExecutionContextModel

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

XDSIndexingResultModel#

Fields:
is_success* : bool
idxref* : ewoksmx.models.xds_model.IdxrefModel | None
xparm* : ewoksmx.models.xds_model.XparmModel | None
indexing_directory* : esrf_pathlib.core.ESRFPath

IdxrefModel#

Fields:
mosaicity : float | None= None
x_beam : float | None= None
y_beam : float | None= None
distance : float | None= None
lattice_character : int | None= None
space_group_number : int | None= None
quality_of_fit : float | None= None
a : float | None= None
b : float | None= None
c : float | None= None
alpha : float | None= None
beta : float | None= None
gamma : float | None= None

XparmModel#

Fields:
rot : list[float]
beam : list[float]
distance : float | None= None
origin_xds : list[float]
vector_a : list[float]
vector_b : list[float]
vector_c : list[float]
cell : list[float]
pixel_size : list[float]
pixel_numb : list[float]
symmetry : int | None= None
num_init : float | None= None
phi_init : float | None= None
delta_phi : float | None= None
detector_x : list[float]
detector_y : list[float]

XDSIntegrationResultModel#

Fields:
is_success* : bool
xds_ascii_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
correct_lp : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
bkgpix_cbf : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None
gxparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the GXPARM.XDS file refined by CORRECT

xparm_xds : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the XPARM.XDS file used by INTEGRATE

integrate_hkl : Annotated[esrf_pathlib.core.ESRFPath, pydantic.functional_validators.BeforeValidator(func=ewoksmx.models.path_types._restore_path, json_schema_input_type=PydanticUndefined), pydantic.functional_serializers.PlainSerializer(func=str, return_type=str, when_used=json)] | None= None

Path to the INTEGRATE.HKL file written by INTEGRATE

integration_quality_score : float | None= None

ExecutionContextModel#

Fields:
working_directory : esrf_pathlib.core.ESRFPath= None

Workflow working directory

DataCollectionModel#

Fields:
beamline* : str

Name of beamline where data were collected

characterisation_scan_type : Literal['fast', 'fine_sliced', 'standard'] | None= None

Type of characterisation scan

image_template* : str

Raw data image template used to resolve master files

Examples: 'ref-Sample-1-3-05_2_1_%04d.h5'
detector_model* : str

Model of the detector used, data portal specific

Examples: 'Pilatus4 4M'
detector_distance* : float

Crystal to detector distance in mm

wavelength* : float

Wavelength in Angstroms

beam_position_x* : float

x coordinate of beam center in pixels

beam_position_y* : float

y coordinate of beam center in pixels

num_wedges : int= 1

Number of data collection wedges

rotation_angle_between_wedges : float= 0.0

Rotation angle between each data collection wedge

oscillation_width* : float

Rotation angle for one image

Examples: 0.0; 0.1; 0.2; 0.5
oscillation_start* : float

Rotation start angle for the first image

Examples: 0.0; 150.0
num_images_per_wedge* : int

Number of images per data collection wedge

Examples: 10
exposure_time* : float

Exposure time per image in seconds

Examples: 0.015
flux : float | None= None

Photon flux at the sample position in photons/s

Examples: 220000000000.0
beam_size_x : float | None= None

Horizontal beam size at the sample position in mm

Examples: 0.05
beam_size_y : float | None= None

Vertical beam size at the sample position in mm

Examples: 0.05
transmission : float | None= None

Beam transmission in %

Examples: 100.0
resolution : float | None= None

Current MXCuBE resolution at the detector edge in Å

Examples: 2.0
high_resolution_limit : float | None= None

Highest resolution in Å reachable at the minimum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 0.99
low_resolution_limit : float | None= None

Lowest resolution in Å reachable at the maximum detector distance, as calculated by MXCuBE for the current wavelength

Examples: 3.64
dozor_visible_resolution_horizontal : float | None= None

Dozor visible resolution in the horizontal direction in Å

Examples: 1.8
dozor_visible_resolution_vertical : float | None= None

Dozor visible resolution in the vertical direction in Å

Examples: 1.9
crystal_size : ewoksmx.models.data_collection_model.CrystalSizeModel | None= None

Crystal size in mm, used by RADDOSE and BEST

Examples: {'x': 0.06, 'y': 0.02, 'z': 0.045}

CrystalSizeModel#

Fields:
x* : float

Crystal size along the beam in mm

y* : float

Crystal size perpendicular to the beam in mm

z* : float

Crystal size perpendicular to the beam in mm

ProcessingPlanModel#

Fields:
strategy_type : Literal['full', 'fast']= full

Data collection strategy

Examples: 'full'; 'fast'
forced_space_group : str | None= None

Forced space group

Examples: 'P1'; 'P212121'
forced_cell : tuple[float, float, float, float, float, float] | None= None

Forced unit cell in format [a, b, c, alpha, beta, gamma]

Examples: [37, 54, 67, 90, 90, 90]
aimed_resolution : float | None= None

Aimed data collection resolution in Angstroms

Examples: 2.0
aimed_multiplicity : float | None= None

Aimed data collection multiplicity

Examples: 4.0
aimed_completeness : float | None= None

Aimed data collection completeness in %

Examples: 90.0
aimed_i_over_sigma : float | None= None

Aimed I/sigma at the highest resolution

Examples: 1.0
anomalous_data : bool= False

Anomalous data collection strategy

Examples: True; False
detector_distance_min : float | None= None

Minimum detector distance in mm, overrides the beamline best configuration

Examples: 139.3
detector_distance_max : float | None= None

Maximum detector distance in mm, overrides the beamline best configuration

Examples: 828.0
goniostat_max_oscillation_speed : float | None= None

Maximum goniostat oscillation speed in degrees/s, overrides the beamline best configuration

Examples: 750.0
goniostat_min_oscillation_width : float | None= None

Minimum goniostat oscillation width in degrees, overrides the beamline best configuration

Examples: 0.01
min_exposure_time_per_image : float | None= None

Minimum exposure time per image in seconds, overrides the beamline best configuration

Examples: 0.005
min_transmission : float | None= None

Minimum transmission in %, overrides the beamline best configuration

Examples: 5.0
max_exposure_time_per_data_collection : float | None= None

Maximum total exposure time per data collection in seconds

Examples: 10000.0
crystal_shape : float | None= None

BEST crystal shape factor, the ratio of crystal to beam size, calculated from the crystal and beam size if not given

Examples: 1.0
strategy_option : str | None= None

Extra options appended to the BEST command line, e.g. to override options set by the workflow

Examples: '-low never'
user_defined_rotation_start : float | None= None

Start of the rotation range in degrees, given together with user_defined_rotation_range

Examples: 0.0
user_defined_rotation_range : float | None= None

Rotation range in degrees

Examples: 360.0

DataPortalUploadModel#

Fields:
gallery_paths : list[str]
online_paths : list[str]
data_portal_metadata : dict

SendEmail#

Send an email, optionally with attachments, to users of the ICAT session

Identifier:
ewoksdrac.tasks.mail.send.SendEmail
Task type:
class
Inputs:
session_id* : str

A unique identifier for the ICAT session. It is used as a token to identify the user

Examples: 'xfthscs-234234sdfsd-fsfsd21'
callback : pydantic.networks.HttpUrl | None= None

A web endpoint to be called upon task completion or status updates. Usually a call to icat+

Examples: 'https://icatplus.esrf.fr/callback'
subject* : str

Subject of the email, a Jinja2 template rendered with the context

Examples:
  • ('MX report of investigation {{ investigation_id '
     '}}')
    
template* : str

Name of the packaged Jinja2 template of the HTML body, without the ‘.html.j2’ extension

Examples: 'mx_report'
context : dict[str, Any]

Variables available to the subject and body templates, usually the context output of the previous task

Examples:
  • {'generated_at': '2026-10-14 10:00:00',
     'investigation_id': 12345}
    
attachments : list[pathlib.Path]

Paths of the files to attach to the email. A single path is also accepted

Examples:
  • ['/data/visitor/mx1234/reports/mx_report_12345.csv']
    
  • '/data/visitor/mx1234/reports/mx_report_12345.csv'
    
delete_attachments : bool= False

Delete the attachments, and their directory when it is left empty, once the email is sent or failed. For temporary files such as generated reports

Examples: True

MXReport#

Generate the MX report for an experiment session and output its file path

Identifier:
ewoksdrac.tasks.report.mx.MXReport
Task type:
class
Inputs:
session_id* : str

A unique identifier for the ICAT session. It is used as a token to identify the user

Examples: 'xfthscs-234234sdfsd-fsfsd21'
callback : pydantic.networks.HttpUrl | None= None

A web endpoint to be called upon task completion or status updates. Usually a call to icat+

Examples: 'https://icatplus.esrf.fr/callback'
investigation_id* : int

The id of the investigation (experiment session) this task operates on

Examples: 12345
Outputs:
session_id : str

The session_id input, passed on to the next task of the workflow

Examples: 'xfthscs-234234sdfsd-fsfsd21'
callback : str | None

The callback input, passed on to the next task of the workflow

Examples: 'https://icatplus.esrf.fr/callback'
report_file : pathlib.Path

Path of the generated report

Examples: '/tmp/mx_report_abcd1234/mx_report_12345.csv'
context : dict[str, Any]

Information about the report, for the email templates

Examples:
  • {'generated_at': '2026-10-14 10:00:00',
     'investigation_id': 12345}
    

AverageIntegration#

Average a series of 1d integrated patterns

Input names: nxdata_url : url to stored integrated data. Normally it’s stored in the PROCESSED_DATA scan file, example scan_file.h5::16.1/eiger_integrate/integrated

Optional input names: lima_name: name of the detector device. For example: “eiger” scan_nb: number of the scan external_output_filename: external file where to write the diffmap nexus process (usually it’s the PROCESSED_DATA scan file) output_filename: file where to write a link to the diffmap nexus process (usually it’s the PROCESSED_DATA master file of collection) nxprocess_name: name of the nexus process. If not provided, will be set to “<lima_name>_average” integration_options: dictionary to write as a configuration group reference:str: name of the standard sample to compare. For example: “hydrocerussite” do_average:bool: if False, skip this process

  • nxdata_url: where to read (integrated_data)

  • external_output_filename: where to save the diffmap

  • output_filename: where to link the diffmap

Identifier:
ewoksid13.tasks.average.AverageIntegration
Task type:
class
Inputs:
nxdata_url*
do_average
external_output_filename
lima_name
nxprocess_name
output_filename
reference
scan_nb
Outputs:
nxdata_url

CreateDiffMapFile#

Creates a DiffMap NexusProcess compliant with pyFAI-diffmap/view API after an already integrated dataset

Input names: nxdata_url : url to stored integrated data. Normally it’s stored in the PROCESSED_DATA scan file, example scan_file.h5::16.1/eiger_integrate/integrated

Optional input names: lima_name: name of the detector device. For example: “eiger” master_filename: RAW_DATA master filename, kmap information may be stored here scan_nb: number of the scan external_output_filename: external file where to write the diffmap nexus process (usually it’s the PROCESSED_DATA scan file) output_filename: file where to write a link to the diffmap nexus process (usually it’s the PROCESSED_DATA master file of collection) nxprocess_name: name of the nexus process. If not provided, will be set to “<lima_name>_diffmap” integration_options: dictionary to write as a configuration group x_nb_points: number of points along the x direction. If not provided, will be searched as kmap paramaters in master_filename y_nb_points: number of points along the y direction. If not provided, will be searched as kmap paramaters in master_filename do_diffmap: if False, skip this process

  • nxdata_url: where to read (integrated_data)

  • external_output_filename: where to save the diffmap

  • output_filename: where to link the diffmap

Identifier:
ewoksid13.tasks.diffmap.CreateDiffMapFile
Task type:
class
Inputs:
nxdata_url*
dark_value
do_diffmap
external_output_filename
integration_options
lima_name
master_filename
normalization_counter
nxprocess_name
output_filename
save_img
scan_memory_url
scan_nb
x_nb_points
y_nb_points
Outputs:
filename_img
nxdata_url

StackToEdf#

Convert a pyFAI diffmap to an edf stack

Identifier:
ewoksid13.tasks.edf.StackToEdf
Task type:
class
Inputs:
do_stackedf
external_output_filename
nxdata_url
Outputs:
nxdata_url

CalibrateEnergy#

Two-point linear calibration from pixel -> energy for each ROI.

Inputs

spectra : list[np.ndarray] One 1D spectrum per ROI. kb_px : list[float] | np.ndarray Pixel index of the Kβ reference for each ROI. vtc_px : list[float] | np.ndarray Pixel index of the VTC reference for each ROI. e_kb : float Known energy of the Kβ line (eV). e_vtc : float Known energy of the VTC line (eV).

Outputs

energies : list[np.ndarray] Energy axis per ROI (same length as its spectrum). spectra : list[np.ndarray] Pass-through of the input spectra (pipeline convenience). slope : np.ndarray ΔE / Δpixel per ROI. intercept : np.ndarray Intercept per ROI so that E = slope * x + intercept.

Identifier:
ewoksxes.tasks.calibrate_energy.CalibrateEnergy
Task type:
class
Inputs:
e_kb*
e_vtc*
kb_px*
spectra*
vtc_px*
Outputs:
energies
intercept
slope
spectra

CombineSpectra#

Optionally normalize spectra, then interpolate each onto a common energy axis and sum them.

Inputs

  • energies: list of 1D energy arrays (or lists), one per spectrum

  • spectra: list of 1D spectra (same length as energies)

  • energy_range: (emin, emax) -> the range of the FINAL output energy axis

  • n_points: int >= 2 -> number of points on the FINAL output energy axis

Optional

  • normalize: bool (default False). When True, each spectrum is normalized by its integral over ‘norm_range’ before interpolation/summing.

  • norm_range: (emin, emax) normalization window (required when normalize=True)

Outputs

  • energy: np.ndarray of length n_points, spanning [emin, emax]

  • summed_spectrum: np.ndarray of same length, sum of all interpolated spectra

Identifier:
ewoksxes.tasks.combine_spectra.CombineSpectra
Task type:
class
Inputs:
energies*
energy_range*
n_points*
spectra*
norm_range
normalize
Outputs:
energy
summed_spectrum

ComputeFlatAndMask#

Compute flat-field and detect gap bands automatically from the 2D fit residuals.

Pipeline:

  1. Evaluate fitted surface S = poly2d(x,y; coeffs).

  2. Build a base invalid mask:

    • image <= min_intensity OR ~finite OR S <= min_fitted

  3. Residual ratio R = image / S on valid base pixels; elsewhere treat as 0.

  4. Candidate bad pixels = base_invalid OR (R <= ratio_threshold).

  5. Gap detection (bands):

    • per-column bad fraction; mark columns >= column_fraction_threshold as gaps.

    • optional per-row bad fraction for horizontal bands.

    • optional dilation by ‘gap_expand’ px.

  6. Final valid mask = NOT(gap_bands) AND NOT(base_invalid)

  7. Flat:

    • if invert: flat = S / image on valid pixels (else flat = image / S)

    • fill invalid pixels with 1.0 (so correction leaves them unchanged; mask will zero them later).

    • optional clipping.

Outputs:

  • flat (float32, finite)

  • mask (float32, 1 valid / 0 invalid). Gaps are 0 in the mask.

Identifier:
ewoksxes.tasks.compute_flat_and_mask.ComputeFlatAndMask
Task type:
class
Inputs:
coeffs*
image*
clip_flat
column_fraction_threshold
detect_columns
detect_rows
gap_expand
invert
min_fitted
min_intensity
ratio_threshold
row_fraction_threshold
Outputs:
flat
mask

ComputeROI#

Extract mean 1D spectra for each ROI.

roi_list can be:

  • [(y1, y2), (y1, y2), …] for full-width horizontal stripes

  • [(y1, y2, x1, x2), …] for rectangular ROIs

For each ROI: roi = image_corrected[y1:y2, x1:x2] spectra = mean over axis=0 (vertical collapse)

The result is a list of 1D spectra.

Identifier:
ewoksxes.tasks.compute_roi.ComputeROI
Task type:
class
Inputs:
image_corrected*
roi_list*
Outputs:
spectra

FitPolynomial2D#

Fit a 2D cubic polynomial (16 coefficients) to a flatfield-like image.

  • Intended for XES von Hamos detectors (gapped columns).

  • Zeros (dead/gap pixels) can be excluded from the fit.

Inputs

image : 2D float array degree : int (default=3) # only cubic supported mask_zeros : bool (default=True)

Output

coeffs : (16,) float64

Identifier:
ewoksxes.tasks.fit_polynomial_2d.FitPolynomial2D
Task type:
class
Inputs:
image*
degree
mask_zeros
Outputs:
coeffs

FlatFieldCorrection#

Apply flat-field and (optionally) mask corrections to the raw image, then normalize by I0.

Supported file formats:

  • Flat-field: .edf, .tif, .tiff, .npy

  • Mask: .edf, .tif, .tiff, .msk, .npy

If no mask is provided, a mask of ones is used.

Correction: corrected = ((image * flat) * mask) / i0

i0 is a scalar (incident flux) used to normalize the result. If omitted, defaults to 1.

Identifier:
ewoksxes.tasks.flat_field_correction.FlatFieldCorrection
Task type:
class
Inputs:
flat_field_path*
image*
i0
mask_path
Outputs:
image_corrected

LoadRawDataAverage#

Load raw detector data from a Bliss scan data URL.

The input bliss_scan_data_url must be of the form:

/full/path/to/sample_dataset.h5::scan.1/measurement/detector

Where: - /full/path/to/sample_dataset.h5 is the HDF5 file. - scan.1/measurement/detector is the internal HDF5 dataset path.

The task loads the dataset. If the dataset is 3D (multiple frames), it averages along the first dimension to produce a 2D image.

Identifier:
ewoksxes.tasks.load_raw_data.LoadRawDataAverage
Task type:
class
Inputs:
bliss_scan_data_url*
Outputs:
image

SaveFlatAndMask#

Save flat and mask to disk in requested formats (‘npy’, ‘edf’).

Outputs:

  • flat_paths: dict format->path

  • mask_paths: dict format->path

Identifier:
ewoksxes.tasks.save_flat_and_mask.SaveFlatAndMask
Task type:
class
Inputs:
basename*
flat*
mask*
output_dir*
formats
Outputs:
flat_paths
mask_paths

SaveSpectrum#

Save a combined spectrum as a 2-column ASCII .dat file with metadata headers.

Inputs

  • energy : 1D array-like (length N)

  • summed_spectrum : 1D array-like (length N)

  • output_path : str, destination path; ‘.dat’ is appended if missing

Optional

  • metadata : dict -> extra key/value pairs written as ‘# key: value’

  • fmt : str -> numpy.savetxt format, e.g. ‘%.6f %.6e’ (default)

  • delimiter : str -> column delimiter (default ‘ ‘)

  • encoding : str -> file encoding (default ‘utf-8’)

  • column_names: (str, str) -> names for columns (default: (‘energy’, ‘intensity’))

  • units : (str, str) -> units for columns (default: (‘eV’, ‘a.u.’))

Output

  • path : str -> the actual written file path

Identifier:
ewoksxes.tasks.save_spectrum.SaveSpectrum
Task type:
class
Inputs:
energy*
output_path*
summed_spectrum*
column_names
delimiter
encoding
fmt
metadata
units
Outputs:
path