Skip to content

Commit

Permalink
MNT #222 satisfy the test
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Aug 15, 2019
1 parent 399378a commit 987a979
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apstools/filewriters.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ def prepare_scan_contents(self):
# "#MD" is our ad hoc SPEC data tag
lines.append(f"#MD {k} = {v}")

lines.append(f"#P0 ")

lines.append("#N " + str(len(self.data.keys())))
if len(self.data.keys()) > 0:
lines.append("#L " + " ".join(self.data.keys()))
Expand Down Expand Up @@ -492,6 +494,8 @@ def write_header(self):
lines.append(f"#E {self.spec_epoch}")
lines.append(f"#D {datetime.strftime(dt, SPEC_TIME_FORMAT)}")
lines.append(f"#C BlueSky user = {self.spec_user} host = {self.spec_host}")
lines.append(f"#O0 ")
lines.append(f"#o0 ")
lines.append("")

if os.path.exists(self.spec_filename):
Expand Down

0 comments on commit 987a979

Please sign in to comment.