Skip to content

Commit cb55793

Browse files
Merge pull request #66 from DiamondLightSource/moving-from-120-1-to-p51
Moving from 120 1 to p51
2 parents 455e78a + 799889a commit cb55793

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Plans to use at spectroscopy beamlines at DLS
99

10-
Currently the `scan_runner` tool is available to run some tests scans in I20-1's turbo slits.
10+
Currently the `scan_runner` tool is available to run some tests scans in p51's turbo slits.
1111

1212
In order to run the scans you'll first need to install the repository into a virtual environment:
1313

@@ -18,10 +18,10 @@ pip install --upgrade pip
1818
pip install -e .
1919
```
2020

21-
It's important to remember that due to network isolation, in order to run the scans you'll need to access a machine that's currently connected to I20-1's network. This can be done by:
21+
It's important to remember that due to network isolation, in order to run the scans you'll need to access a machine that's currently connected to p51's network. This can be done by:
2222

2323
```bash
24-
ssh i20-1-ws002
24+
ssh p51-ws002
2525
```
2626

2727
if you already have the environment installed you can just source otherwise you'll need to install it (steps above).

scan_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import typer
44
from bluesky import RunEngine
5-
from dodal.beamlines.i20_1 import panda, turbo_slit
5+
from dodal.beamlines.p51 import panda, turbo_slit
66
from ophyd_async.plan_stubs import ensure_connected
77

8-
from spectroscopy_bluesky.i20_1.plans.direct_turbo_slit_movement import (
8+
from spectroscopy_bluesky.p51.plans.direct_turbo_slit_movement import (
99
fly_sweep_both_ways,
1010
seq_non_linear,
1111
seq_table,

src/spectroscopy_bluesky/common/panda_data_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ def get_frame(self, frame_index):
103103
return self.all_data[frame_index]
104104

105105

106-
panda_socket = DataSocket("bl20j-ts-panda-02", 8889)
106+
panda_socket = DataSocket("bl51p-ts-panda-02", 8889)
107107
panda_socket.connect()
File renamed without changes.
File renamed without changes.

src/spectroscopy_bluesky/i20_1/devices/alignment_stage.py renamed to src/spectroscopy_bluesky/p51/devices/alignment_stage.py

File renamed without changes.

src/spectroscopy_bluesky/i20_1/layouts/pcomp_auto_reset.yaml renamed to src/spectroscopy_bluesky/p51/layouts/pcomp_auto_reset.yaml

File renamed without changes.
File renamed without changes.
File renamed without changes.

src/spectroscopy_bluesky/i20_1/plans/direct_turbo_slit_movement.py renamed to src/spectroscopy_bluesky/p51/plans/direct_turbo_slit_movement.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from aioca import caput
99
from bluesky.utils import MsgGenerator
10-
from dodal.beamlines.i20_1 import turbo_slit_pmac
10+
from dodal.beamlines.p51 import turbo_slit_pmac
1111
from dodal.common.coordination import inject
1212
from dodal.plan_stubs.data_session import attach_data_session_metadata_decorator
1313
from numpy.typing import NDArray
@@ -80,7 +80,7 @@ async def kickoff(self) -> None:
8080
await wait_for_value(self.pcomp.active, True, timeout=1)
8181

8282
async def prepare(self, value: PcompInfo) -> None:
83-
await caput("BL20J-EA-PANDA-02:SRGATE1:FORCE_RST", "1", wait=True)
83+
await caput("BL51P-EA-PANDA-02:SRGATE1:FORCE_RST", "1", wait=True)
8484
await asyncio.gather(
8585
self.pcomp.start.set(value.start_postion),
8686
self.pcomp.width.set(value.pulse_width),
@@ -119,7 +119,7 @@ def get_pcomp_info(width, start_pos, direction_of_sweep: PandaPcompDirection, nu
119119
return panda_pcomp_info
120120

121121

122-
def setup_trajectory_scan_pvs(prefix: str = "BL20J-MO-STEP-06"):
122+
def setup_trajectory_scan_pvs(prefix: str = "BL51P-MO-STEP-06"):
123123
"""
124124
Set PV values on trajectory scan controller needed for scan to work
125125
(axis label to X, and profile name to PMAC6CS3)
@@ -557,12 +557,12 @@ def inner_plan():
557557

558558

559559
def plan_store_settings(panda: HDFPanda, name: str):
560-
provider = YamlSettingsProvider("./src/spectroscopy_bluesky/i20_1/layouts")
560+
provider = YamlSettingsProvider("./src/spectroscopy_bluesky/p51/layouts")
561561
yield from store_settings(provider, name, panda)
562562

563563

564564
def plan_restore_settings(panda: HDFPanda, name: str):
565565
print(f"\nrestoring {name} layout\n")
566-
provider = YamlSettingsProvider("./src/spectroscopy_bluesky/i20_1/layouts")
566+
provider = YamlSettingsProvider("./src/spectroscopy_bluesky/p51/layouts")
567567
settings = yield from retrieve_settings(provider, name, panda)
568568
yield from apply_panda_settings(settings)

0 commit comments

Comments
 (0)