-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adapt hardware objects from mocked beamline to YAML #998
adapt hardware objects from mocked beamline to YAML #998
Commits on Aug 28, 2024
-
make HWR.beamline.acquisition_limit_values work again
Add a 'acquisition_limit_values' proxy attribute to the Beamline HWOBJ. This way the limits can be accessed with: HWR.beamline.acquisition_limit_values This is how MXCuBE-web reads the limits. Let's support this style for a while, for backward compability reason.
Configuration menu - View commit details
-
Copy full SHA for 9c2ee9a - Browse repository at this point
Copy the full SHA 9c2ee9aView commit details -
port AbstractDetector to use get_property()
Update AbstractDetector class to access it's 'beam' setting with get_property(). Replaces self["beam"] expression, as it does not work when YAML config file is used.
Configuration menu - View commit details
-
Copy full SHA for e574f97 - Browse repository at this point
Copy the full SHA e574f97View commit details -
port beam releated HWOBJS to work with YAML
Change code implementing Beam and Slits HWOBJs to work both with YAML and XML configure files. Add 'name' named attribute to __init__(), as it's required when loading from YAML. Renamed '_aperture' and '_slits' attributes to 'aperture' and 'slits', as this is the new style for attaching sub-HWOBJs. Added a backward compability hack, so that 'aperture' and 'slits' get populated when loading from XML configure file.
Configuration menu - View commit details
-
Copy full SHA for 94f3790 - Browse repository at this point
Copy the full SHA 94f3790View commit details -
make some diffractometer related HWOBJs work with YAML
Drop proxy attributes 'kappa' and 'kappa_phi' from GenericDiffractometer class. These interfere with attaching of sub-HWOBJs for diffractometer HWOBJ. Add named parameter 'name' to DiffractometerMockup.__init__(). This parameter is required when loading HWOBJ from YAML configuration file.
Configuration menu - View commit details
-
Copy full SHA for afed8c5 - Browse repository at this point
Copy the full SHA afed8c5View commit details -
make some sample changer related HWOBJs work with YAML
Make it possible to create SampleChangerMockup and AbstractSampleChanger derived HWOBJs with ClassName(name=foo) expressions. This is the expression used when loading from a YAML configuration file.
Configuration menu - View commit details
-
Copy full SHA for 5a37c97 - Browse repository at this point
Copy the full SHA 5a37c97View commit details -
remove proxy 'camera' attribute on SampleView HWOBJs
The 'camera' attribute is now automagically set from the 'objects' settings in YAML/XML configure file.
Configuration menu - View commit details
-
Copy full SHA for d3b2fa2 - Browse repository at this point
Copy the full SHA d3b2fa2View commit details -
refactor initialization code of MDCameraMockup
The 'image_name' configuration property is not available in _init() method. Move set-up of 'static' attributes into __init__() method. Move set-up that requires access to configuration properties into init() method.
Configuration menu - View commit details
-
Copy full SHA for 70ae556 - Browse repository at this point
Copy the full SHA 70ae556View commit details -
make BeamlineActions HWOBJs work with YAML
Make it possible to create BeamlineActions derived HWOBJs with ClassName(name=foo) expressions. This is the expression used when loading from a YAML configuration file.
Configuration menu - View commit details
-
Copy full SHA for fb089dd - Browse repository at this point
Copy the full SHA fb089ddView commit details -
add detector_distance attribute to detector mockup HWOBJ
When loading DetectorMockup hardware object from YAML configuration file, you'll get a warning if there is no 'detector_distance' attribute.
Configuration menu - View commit details
-
Copy full SHA for 2987c68 - Browse repository at this point
Copy the full SHA 2987c68View commit details