Skip to content

Commit

Permalink
fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Dec 14, 2017
1 parent d93cecf commit 0ad8aa6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/spec2nexus/plugins/spec_common_spec2nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ class SPEC_Epoch(ControlLineHandler):
def process(self, buf, scan, *args, **kws):
header = SpecDataFileHeader(buf, parent=scan)
line = buf.splitlines()[0].strip()
header.epoch = int(strip_first_word(line))
if line.find(".") > -1:
header.epoch = float(strip_first_word(line))
else:
header.epoch = int(strip_first_word(line))
header.interpret() # parse the full header
scan.headers.append(header)

Expand Down

0 comments on commit 0ad8aa6

Please sign in to comment.