Skip to content

Commit

Permalink
Merge pull request #39 from neutrons/3217-3_arReport_fixAttributeError
Browse files Browse the repository at this point in the history
ar_report.py - fix attribute error
  • Loading branch information
peterfpeterson authored Jan 2, 2024
2 parents e5b054d + 01a6212 commit 2266a92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/ar_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,9 @@ def __init__(self, direc, filename):

with h5py.File(self.filename, "r") as handle:
entry = handle.get("entry")
self.timeStart = entry.get("start_time").value[0].decode("utf-8")[:16]
self.timeStop = entry.get("end_time").value[0].decode("utf-8")[:16]

self.timeStart = entry.get("start_time")[0].decode("utf-8")[:16]
self.timeStop = entry.get("end_time")[0].decode("utf-8")[:16]

def __str__(self):
return self.prefix
Expand Down

0 comments on commit 2266a92

Please sign in to comment.