Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #848 from DiamondLightSource/847_fix_failing_tests
Browse files Browse the repository at this point in the history
Fix transmission rename for rotation scans
  • Loading branch information
DominicOram authored Aug 3, 2023
2 parents 7710aaf + 0172300 commit c0e792d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions live_test_rotation_params.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"params_version": "2.0.0",
"params_version": "2.1.0",
"artemis_params": {
"beamline": "BL03I",
"insertion_prefix": "SR03I",
Expand Down Expand Up @@ -43,7 +43,7 @@
"test_2",
"test_3"
],
"transmission": 1.0,
"transmission_fraction": 1.0,
"flux": 10.0,
"wavelength": 0.01,
"beam_size_x": 1.0,
Expand Down
4 changes: 2 additions & 2 deletions live_test_rotation_params_move_xyz.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"params_version": "2.0.0",
"params_version": "2.1.0",
"artemis_params": {
"beamline": "BL03I",
"insertion_prefix": "SR03I",
Expand Down Expand Up @@ -43,7 +43,7 @@
"test_2",
"test_3"
],
"transmission": 1.0,
"transmission_fraction": 1.0,
"flux": 10.0,
"wavelength": 0.01,
"beam_size_x": 1.0,
Expand Down
2 changes: 1 addition & 1 deletion src/artemis/experiment_plans/rotation_scan_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def rotation_scan_plan(
f" for {shutter_time_s} s at {speed_for_rotation_deg_s} deg/s"
)

transmission = params.artemis_params.ispyb_params.transmission
transmission = params.artemis_params.ispyb_params.transmission_fraction
yield from setup_sample_environment(
detector_motion, backlight, attenuator, transmission
)
Expand Down
2 changes: 1 addition & 1 deletion src/artemis/external_interaction/ispyb/ispyb_dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _parse_position(
xtal_snapshots_omega_end: Optional[List[str]] = None

@validator("transmission_fraction")
def transmission_not_percentage(cls, transmission_fraction: float):
def _transmission_not_percentage(cls, transmission_fraction: float):
if transmission_fraction > 1:
raise ValueError(
"Transmission_fraction of >1 given. Did you give a percentage instead of a fraction?"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"params_version": "2.0.0",
"params_version": "2.1.0",
"artemis_params": {
"beamline": "BL03S",
"insertion_prefix": "SR03S",
Expand Down Expand Up @@ -43,7 +43,7 @@
"test_2",
"test_3"
],
"transmission": 1.0,
"transmission_fraction": 1.0,
"flux": 10.0,
"wavelength": 0.01,
"beam_size_x": 1.0,
Expand Down

0 comments on commit c0e792d

Please sign in to comment.