Skip to content

Commit

Permalink
Updated config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Gruzinov committed Dec 13, 2024
1 parent 7370cb6 commit b171999
Show file tree
Hide file tree
Showing 74 changed files with 4,378 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mxcubecore/configuration/desy_p11/backlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

<device class="P11BackLight">
<username>BackLight</username>

<tangoname>p11/register/eh.o.3.05</tangoname>

<open_time>8</open_time>
<close_time>4</close_time>

<channel type="tango" name="value" polling="500">value</channel>

</device>
8 changes: 8 additions & 0 deletions mxcubecore/configuration/desy_p11/beam-mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<object class="BeamMockup">
<device hwrid="/diff-aperture-mockup" role="aperture"/>
<device hwrid="/slits-mockup" role="slits"/>
<beam_position>340,256</beam_position>
<beam_divergence_horizontal>12.0</beam_divergence_horizontal>
<beam_divergence_vertical>12.0</beam_divergence_vertical>
</object>

12 changes: 12 additions & 0 deletions mxcubecore/configuration/desy_p11/beam.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<object class="P11Beam">
<device hwrid="/diff-aperture-mockup" role="aperture"/>
<device hwrid="/slits-mockup" role="slits"/>

<channel type="tango" tangoname="p11/energy/1" name="beamsize" polling="500">BeamSize</channel>
<channel type="tango" tangoname="p11/energy/1" name="state" polling="500">State</channel>

<beam_divergence_vertical>0.05</beam_divergence_vertical>
<beam_divergence_horizontal>0.05</beam_divergence_horizontal>
<definer_type>"mirror"</definer_type>
</object>

6 changes: 6 additions & 0 deletions mxcubecore/configuration/desy_p11/beamline-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<object class="BeamlineTestMockup">

<available_tests>["example_one", "example_two"]</available_tests>
<startup_tests>["example_one"]</startup_tests>

</object>
122 changes: 122 additions & 0 deletions mxcubecore/configuration/desy_p11/beamline_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# The class to initialise, and init parameters
_initialise_class:

Check warning on line 2 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

2:1 [document-start] missing document start "---"
class: mxcubecore.HardwareObjects.Beamline.Beamline

Check failure on line 3 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

3:5 [indentation] wrong indentation: expected 2 but found 4
# Further key-value pairs here will be passed to the class init
# mode: devel

# objects
#
# Eventually all objects should use the yaml config system like Beamline,
# but for now we can leave them as xml
#
# NBNB some objects that do not currently have their own config files
# would need those added (e.g. the centring methods)
#
_objects:
# The !!o0map and the lines starting with '- ' give you an *ordered* dictionary
# And thus a reproducible loading order
!!omap

Check failure on line 18 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

18:5 [indentation] wrong indentation: expected 2 but found 4
# The values are the file paths to the configuration file for the
# object, relative to the configuration file path(s)
#
# NB - the order is *NOT* arbitrary, as signal connnections are set
# on one object that require the other to be already loaded.
#
# Hardware:
- session: session.xml

Check failure on line 26 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

26:5 [indentation] wrong indentation: expected 2 but found 4
- machine_info: mach-info.xml
- transmission: transmission.xml
- energy: energy.xml
- beam: beam.xml
- flux: flux.xml
- detector: eiger.xml
- resolution: resolution.xml
- hutch_interlock: door-interlock.xml
- safety_shutter: shutter-eh.xml
- fast_shutter: fast-shutter.xml
- sample_changer: sample-changer.xml
# - sample_changer: sc-mockup.xml
# NBNB TODO remove plate_manipulater and treat as another smaple changer
# - plate_manipulator: plate-manipulator-mockup.xml
- diffractometer: nanodiff.xml
- sample_view: sample-view.xml
- lims: lims.xml
- queue_manager: queue.xml
- queue_model: queue-model.xml
# Procedures:
- collect: mxcollect.xml
#- xrf_spectrum: xrf-spectrum-mockup.xml

Check warning on line 48 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

48:6 [comments] missing starting space in comment
- energy_scan: energyscan-mockup.xml
# - imaging: xray-imaging.xml # Only in EMBL as of 201907

Check warning on line 50 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

50:1 [comments-indentation] comment not indented like content
#- gphl_workflow: gphl-workflow.xml

Check warning on line 51 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

51:6 [comments] missing starting space in comment
#- gphl_connection: gphl-setup.xml

Check warning on line 52 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

52:6 [comments] missing starting space in comment
# - centring: centring.xml
# Analysis:
- offline_processing: offline-processing-mockup.xml
- online_processing: online-processing-mockup.xml
- characterisation: characterisation.xml
# - beam_realign: # Skipped - optional
# Non-object attributes:
advanced_methods:
- MeshScan
- XrayCentering
tunable_wavelength: true
disable_num_passes: false
run_online_processing: false
run_number: 1

default_acquisition_parameters:
default:

Check failure on line 69 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

69:5 [indentation] wrong indentation: expected 2 but found 4
# Default values, also used for standard acquisition.
# Values not given in other dictionaries are taken from here
exp_time: 0.01 # (s) exposure time

Check failure on line 72 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

72:9 [indentation] wrong indentation: expected 6 but found 8
osc_start: 0.0 # (degrees) Only used if no current angle found
osc_range: 0.1 # (degrees)
num_passes: 1 # (int)
first_image: 1 # (int)
overlap: 0
num_images: 3600 # (int)
# detector_binning_mode: 1 # Removed as not in practice used.
inverse_beam: false # (bool)
take_dark_current: true # (bool)
skip_existing_images: true # (bool)
take_snapshots: false # (bool)

helical:
# Defaults for helical scan. Missing values are taken from default
num_images: 100

Check failure on line 87 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

87:9 [indentation] wrong indentation: expected 6 but found 8

characterisation:
# Defaults for chareacterisation. Missing values are taken from default
exp_time: 0.05

Check failure on line 91 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

91:9 [indentation] wrong indentation: expected 6 but found 8
osc_start: 0.0
osc_range: 1.0
opt_sad: False

Check warning on line 94 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

94:18 [truthy] truthy value should be one of [false, true]
account_rad_damage: True

Check warning on line 95 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

95:29 [truthy] truthy value should be one of [false, true]
strategy_complexity: 0
max_crystal_vd:im: 1.0
min_crystal_vdim: 1.0
max_crystal_vphi: 1.0
min_crystal_vphi: 1.0

advanced:
# Defaults for 'advanced' acquisition. Missing values are taken from default
osc_range: 0.5

Check failure on line 104 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

104:9 [indentation] wrong indentation: expected 6 but found 8
num_images: 100

acquisition_limit_values:
exposure_time: # (s)

Check failure on line 108 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

108:5 [indentation] wrong indentation: expected 2 but found 4
- 0.007

Check failure on line 109 in mxcubecore/configuration/desy_p11/beamline_config.yml

View workflow job for this annotation

GitHub Actions / pre-commit

109:9 [indentation] wrong indentation: expected 6 but found 8
- 6000.0
osc_range: # (degrees)
- -1000
- 1000
number_of_images: # (int)
- 1
- 99999
# kappa: # (degrees)
# - 0.0
# - 180.0
# kappa_phi: # (degrees)
# - 0.0
# - 360.0
10 changes: 10 additions & 0 deletions mxcubecore/configuration/desy_p11/beamstop.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<device class="P11BeamStop">
<username>BeamStop</username>
<motorlist>bstopx</motorlist>

<object role="bstopx" href="/bstopx" />

<delta_bstopx>1</delta_bstopx>

<values>{"in": {"bstopx": 27000}, "out": {"bstopx": 69000}}</values>
</device>
14 changes: 14 additions & 0 deletions mxcubecore/configuration/desy_p11/beamstop_bcp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<device class="P11BeamStop">
<username>BeamStop</username>
<motorlist>bstopx, bstopy, bstopz</motorlist>

<object role="bstopx" href="/bstopx" />
<object role="bstopy" href="/bstopy" />
<object role="bstopz" href="/bstopz" />

<delta_bstopx>1</delta_bstopx>
<delta_bstopy>100</delta_bstopy>
<delta_bstopz>100</delta_bstopz>

<values>{"in": {"bstopx": 27000, "bstopy": -136, "bstopz": -135}, "out": {"bstopx": 69000, "bstopy": -136, "bstopz": -135}}</values>
</device>
9 changes: 9 additions & 0 deletions mxcubecore/configuration/desy_p11/bstopx.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<device class="TangoMotor">
<actuator_name>bstopx</actuator_name>
<username>BeamStop X</username>

<tangoname>p11/motor/eh.3.09</tangoname>

<command type="tango" name="stopAxis">StopMove</command>
<channel type="tango" name="axisState" polling="500">State</channel>
</device>
9 changes: 9 additions & 0 deletions mxcubecore/configuration/desy_p11/bstopy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<device class="TangoMotor">
<actuator_name>bstopy</actuator_name>
<username>BeamStop Y</username>

<tangoname>p11/piezomotor/eh.4.09</tangoname>

<command type="tango" name="stopAxis">Stop</command>
<channel type="tango" name="axisState" polling="500">State</channel>
</device>
9 changes: 9 additions & 0 deletions mxcubecore/configuration/desy_p11/bstopz.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<device class="TangoMotor">
<actuator_name>bstopz</actuator_name>
<username>BeamStop Z</username>

<tangoname>p11/piezomotor/eh.4.10</tangoname>

<command type="tango" name="stopAxis">Stop</command>
<channel type="tango" name="axisState" polling="500">State</channel>
</device>
5 changes: 5 additions & 0 deletions mxcubecore/configuration/desy_p11/characterisation-mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<object class="EDNACharacterisationMockup">
<!-- Path to script that launches edna -->
<edna_command>PATH_TO_EDNA_LAUNCH_SCRIPT</edna_command>
<edna_default_file>edna_defaults.xml</edna_default_file>
</object>
5 changes: 5 additions & 0 deletions mxcubecore/configuration/desy_p11/characterisation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<object class="P11EDNACharacterisation">
<!-- Path to script that launches edna -->
<edna_command>echo "================ ////////////EDNA IS LAUNCHED//////////////=========="</edna_command>
<edna_default_file>/gpfs/local/shared/MXCuBE/P11/configuration/edna_defaults.xml</edna_default_file>
</object>
14 changes: 14 additions & 0 deletions mxcubecore/configuration/desy_p11/collimator.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<object class="P11Collimator">
<username>Collimator</username>
<motorlist>collimy, collimz</motorlist>

<object role="collimatory" href="/collimy" />
<object role="collimatorz" href="/collimz" />


<delta_collimatory>5</delta_collimatory>
<delta_collimatorz>5</delta_collimatorz>

<values>{"up": {"collimatory": -855, "collimatorz": 9264}, "down": {"collimatory": -829, "collimatorz": -12000}}</values>

</object>
10 changes: 10 additions & 0 deletions mxcubecore/configuration/desy_p11/collimy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<device class="TangoMotor">
<actuator_name>collimy</actuator_name>
<username>Collimator Y</username>

<tangoname>p11/piezomotor/eh.4.05</tangoname>
<tolerance>5</tolerance>

<command type="tango" name="stopAxis">Stop</command>
<channel type="tango" name="axisState" polling="500">State</channel>
</device>
10 changes: 10 additions & 0 deletions mxcubecore/configuration/desy_p11/collimz.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<device class="TangoMotor">
<actuator_name>collimz</actuator_name>
<username>Collimator Z</username>

<tangoname>p11/piezomotor/eh.4.06</tangoname>
<tolerance>5</tolerance>

<command type="tango" name="stopAxis">Stop</command>
<channel type="tango" name="axisState" polling="500">State</channel>
</device>
5 changes: 5 additions & 0 deletions mxcubecore/configuration/desy_p11/data-analysis-mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<object class="EDNACharacterisationMockup">
<!-- Path to script that launches edna -->
<edna_command>PATH_TO_EDNA_LAUNCH_SCRIPT</edna_command>
<edna_default_file>edna_defaults.xml</edna_default_file>
</object>
16 changes: 16 additions & 0 deletions mxcubecore/configuration/desy_p11/detector-cover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

<device class="P11DetectorCover">
<username>Detector Cover</username>


<tangoname>p11/detectortower/1</tangoname>
<command_timeout>4</command_timeout>

<simulation>0</simulation>

<command type="tango" name="cmdOpen">ShieldDown</command>
<command type="tango" name="cmdClose">ShieldUp</command>
<channel type="tango" name="chanStateOpen" polling="500">ShieldIsDown</channel>
<channel type="tango" name="chanStateClosed" polling="500">ShieldIsUp</channel>

</device>
22 changes: 22 additions & 0 deletions mxcubecore/configuration/desy_p11/detector-distance.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<device class="P11DetectorDistance">
<actuator_name>detdist</actuator_name>
<username>Detector distance</username>

<tangoname>p11/detectortower/1</tangoname>

<channel type="tango" name="axisState" polling="500">State</channel>
<channel type="tango" name="axisPosition" polling="500">DetectorDistance</channel>

<channel type="tango" name="axisMinValue" polling="500">DetectorDistanceMin</channel>
<channel type="tango" name="axisMaxValue" polling="500">DetectorDistanceMax</channel>

<channel type="tango" name="interlockState" polling="500">InterlockSet</channel>

<command type="tango" name="stopAxis">Stop</command>

<channel type="tango" name="DistanceLaser" polling="500">DetectorDistanceLaser</channel>



</device>

15 changes: 15 additions & 0 deletions mxcubecore/configuration/desy_p11/detector-mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<object class = "DetectorMockup">
<tempThreshold>33.5</tempThreshold>
<humidityThreshold>20.0</humidityThreshold>
<tolerance>0.2</tolerance>
<type>eiger</type>
<model>16M</model>
<manufacturer>DECTRIS</manufacturer>
<px>0.075</px>
<py>0.075</py>
<width>4150</width>
<height>4271</height>
<hasShutterless>True</hasShutterless>
<fileSuffix>h5</fileSuffix>
<object hwrid="/detector-distance" role="detector_distance"/>
</object>
2 changes: 2 additions & 0 deletions mxcubecore/configuration/desy_p11/diff-aperture-mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<device class="ApertureMockup">
</device>
3 changes: 3 additions & 0 deletions mxcubecore/configuration/desy_p11/diff-kappa-mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<device class="MotorMockup">
<actuator_name>Kappa</actuator_name>
</device>
3 changes: 3 additions & 0 deletions mxcubecore/configuration/desy_p11/diff-kappaphi-mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<device class="MotorMockup">
<actuator_name>Phi</actuator_name>
</device>
3 changes: 3 additions & 0 deletions mxcubecore/configuration/desy_p11/door-interlock-mockup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<device class = "P11DoorInterlock">
</device>

6 changes: 6 additions & 0 deletions mxcubecore/configuration/desy_p11/door-interlock.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<object class = "P11DoorInterlock">

<unlockEH_url>https://ics.desy.de//tineinterface/?action=write&amp;deviceName=G11_2_AbrkIntrlk</unlockEH_url>

</object>

Loading

0 comments on commit b171999

Please sign in to comment.