Skip to content

Commit

Permalink
Merge pull request #1567 from willend/main
Browse files Browse the repository at this point in the history
Protect against pixel min's arriving in "float"/scientific notation
  • Loading branch information
willend authored Feb 12, 2024
2 parents 53cb312 + 31a6fd2 commit eb708cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/Python/mcdisplay/mantid_xml/mcdisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,7 @@ def __init__(self, det_line_lst):
self.ymax = l[3]
self.nx = l[4]
self.ny = l[5]
self.pixelmin = l[6]

self.pixelmin = str(int(float(l[6])))

class MantidBananaDetector:
def __init__(self, det_line_lst):
Expand All @@ -511,7 +510,7 @@ def __init__(self, det_line_lst):
self.ymax = l[4]
self.nt = l[5]
self.ny = l[6]
self.pixelmin = l[7]
self.pixelmin = str(int(float(l[7])))


def debug_load_instr(filename):
Expand Down

0 comments on commit eb708cb

Please sign in to comment.