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 #1361 from DiamondLightSource/1343_fix_v9.2.0
Browse files Browse the repository at this point in the history
Hotfixes for v9.2.0
  • Loading branch information
DominicOram authored May 16, 2024
2 parents 0869a3c + bde57f8 commit c93404a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ install_requires =
xarray
doct
databroker
dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git
dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@370f549f5471e3477606afec3469707c79da532c
pydantic<2.0 # See https://github.com/DiamondLightSource/hyperion/issues/774
scipy
pyzmq
Expand Down
2 changes: 1 addition & 1 deletion src/hyperion/parameters/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def visit_directory(self) -> Path:

@property
def snapshot_directory(self) -> Path:
return self.visit_directory / "snapshots"
return Path(self.storage_directory) / "snapshots"

@property
def num_images(self) -> int:
Expand Down
2 changes: 1 addition & 1 deletion src/hyperion/parameters/gridscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def detector_params(self):
omega_increment=0,
num_images_per_trigger=1,
num_triggers=self.num_images,
use_roi_mode=False,
use_roi_mode=self.use_roi_mode,
det_dist_to_beam_converter_path=self.det_dist_to_beam_converter_path,
trigger_mode=self.trigger_mode,
beam_xy_converter=DetectorDistanceToBeamXYConverter(
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/parameters/test_parameter_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def test_pin_then_xray(self):
},
"experiment_params": {
"transmission_fraction": self.transmission,
"snapshot_dir": "/tmp/dls/i03/data/2024/cm66666-6/snapshots",
"snapshot_dir": f"{self.directory}snapshots",
"detector_distance": self.detector_distance_mm,
"exposure_time": self.exposure_time_s,
"omega_start": self.omega_start,
Expand Down

0 comments on commit c93404a

Please sign in to comment.