Skip to content

Commit

Permalink
fixed typo in energy_scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathyhjj committed Apr 29, 2024
1 parent 2f0ddd9 commit 3f62861
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/haven/plans/energy_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,16 @@ def energy_scan(
energies = np.asarray(energies)
energies += E0
# Todo: sort the energies and exposure times by the energy
...
# Prepare the positioners list with associated energies and exposures
scan_args = [(motor, energies) for motor in energy_signals]
scan_args += [(motor, exposure) for motor in time_signals]
scan_args = [item for items in scan_args for item in items]
# Add some extra metadata
config = load_config()
md_ = {"edge": E0_str, "E0": E0}
for positioner in energy_positioners:
for signals in energy_signals:
try:
md_["d_spacing"] = positioner.d_spacing.get()
md_["d_spacing"] = signals.d_spacing.get()
except AttributeError:
continue
else:
Expand Down

0 comments on commit 3f62861

Please sign in to comment.