Skip to content

Commit

Permalink
Merge pull request #1033 from BCDA-APS/1032-write_new_scan_header
Browse files Browse the repository at this point in the history
SpecWriterCallback2: assign write_new_scan_header in constructor
  • Loading branch information
prjemian authored Oct 29, 2024
2 parents f476399 + 88e9e7a commit 11a9707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apstools/callbacks/spec_file_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ def __init__(self, *args, **kwargs):
self.file_epoch = None
self.spec_filename = None
self.write_new_file_header = True
self.write_new_scan_header = False

def descriptor(self, doc):
"""
Expand Down Expand Up @@ -887,7 +888,6 @@ def newfile(self, filename=None, scan_id=None, RE=None):
self.spec_epoch = int(time.time()) # ! no roundup here!!!
self.spec_host = socket.gethostname() or "localhost"
self.spec_user = getpass.getuser() or "BlueskyUser"
self.write_new_header = True # don't write the file yet

# backwards-compatibility
if isinstance(scan_id, bool):
Expand Down

0 comments on commit 11a9707

Please sign in to comment.