Skip to content

Commit

Permalink
Update end_of_run_export.py
Browse files Browse the repository at this point in the history
Fix stupid typo
  • Loading branch information
cjtitus authored Nov 1, 2024
1 parent d52496e commit 3db88fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion end_of_run_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def export_all_streams(uid, beamline_acronym="ucal"):
cycle = run.start.get('cycle', None)
if proposal is None or cycle is None:
raise ValueError("Proposal Metadata not Loaded")
visit_date = datetime.datetime.from_isoformat(run.start.get('start_datetime', datetime.datetime.today().isoformat()))
visit_date = datetime.datetime.fromisoformat(run.start.get('start_datetime', datetime.datetime.today().isoformat()))
visit_dir = visit_date.strftime("%Y%m%d_export")
if is_commissioning:
export_path = f"/nsls2/data/sst/proposals/commissioning/pass-{proposal}/"
Expand Down

0 comments on commit 3db88fd

Please sign in to comment.