mxcubecore.HardwareObjects.EMBL.EMBLOfflineProcessing#

Classes

EMBLOfflineProcessing(name)

Hwobj assembles input xml and launches EDNAproc autoprocessing

class mxcubecore.HardwareObjects.EMBL.EMBLOfflineProcessing.EMBLOfflineProcessing(name)[source]#

Bases: HardwareObject

Hwobj assembles input xml and launches EDNAproc autoprocessing

autoproc_procedure(process_event, params_dict, frame_number, run_processing=True)[source]#

Main autoprocessing procedure. At the beginning correct event (defined in xml) is found. If the event is executable then accordingly to the event type (image, after) then the sequence is executed: Implemented tasks:

  • afterMain autoprocessing procedure
    1. Input file is generated with create_autoproc_input Input file has a name template “edna-autoproc-input-%Y%m%d_%H%M%S.xml”.

    2. Then it waits for XDS.INP directory and if it exists then creates input file

    3. edna_autoprocessing.sh script is executed with parameters: - arg1 : generated xml file - arg2 : process dir

    4. script executes EDNA EDPluginControlEDNAproc

  • imageThumbnail generation for first and last image
    1. No input file is generated

    2. edna_thumbnails.sh script is executed with parameters: - arg1 : image base dir (place where thumb

      will be generated)

      • arg2 : file name

Parameters:
  • process_event (str) – processing type (after, before, image)

  • params_dict (dict) – collection parameters

  • frame_number (int) – frame number

  • run_processing (bool) – True = run processing or False = create just input file

create_autoproc_input(event, params)[source]#

Creates processing input xml

Parameters:
  • event (str) – processing type (after, before, image)

  • params (dict) – collection parameters

execute_autoprocessing(process_event, params_dict, frame_number, run_processing=True)[source]#

Method called from collection hwobj after successfull collection.

Parameters:
  • process_event (str) – processing type (after, before, image)

  • params_dict (dict) – collection parameters

  • frame_number (int) – frame number

  • run_processing (bool) – True = run processing or False = create just input file

init()[source]#

Hardware object init.