Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion wt5/wt5_event_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,12 @@ def stop(self, doc):

# transform (axes make filling harder than it needs to be)
try:
motor_axes = self.start_doc["motors"][: len(self.scan_shape["primary"])]
# axes default to non-redundant variables when possible
# TODO apply this only when using grid plan?
motor_axes = [x+"_points" if x+"_points" in self.data["primary"].variable_names else x for x in motor_axes]
self.data["primary"].transform(
*self.start_doc["motors"][: len(self.scan_shape["primary"])],
*motor_axes,
*self.detector_axes["primary"],
)
except KeyError:
Expand Down