Skip to content

Commit

Permalink
fix: tiled address, and multidim
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Dec 12, 2023
1 parent c52cd40 commit f9ad0b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bmm_agents/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,12 @@ def unpack_run(self, run):

def measurement_plan(self, relative_point: ArrayLike) -> Tuple[str, List, dict]:
"""Works from relative points"""
element_positions = self.element_origins + relative_point
args = [
self.sample_position_motors[0],
*(self.element_origins[:, 0] + relative_point),
*element_positions[:, 0],
self.sample_position_motors[1],
*self.element_origins[:, 1],
*element_positions[:, 1],
*self.element_det_positions,
]

Expand Down Expand Up @@ -265,10 +266,10 @@ def get_beamline_objects() -> dict:
kafka_consumer=kafka_consumer,
kafka_producer=kafka_producer,
tiled_data_node=tiled.client.from_uri(
f"https://tiled.nsls2.bnl.gov/api/v1/node/metadata/{beamline_tla}/raw"
f"https://tiled.nsls2.bnl.gov/api/v1/metadata/{beamline_tla}/raw"
),
tiled_agent_node=tiled.client.from_uri(
f"https://tiled.nsls2.bnl.gov/api/v1/node/metadata/{beamline_tla}/bluesky_sandbox"
f"https://tiled.nsls2.bnl.gov/api/v1/metadata/{beamline_tla}/bluesky_sandbox"
),
qserver=qs,
)

0 comments on commit f9ad0b7

Please sign in to comment.