Skip to content

Commit

Permalink
Protect against pixel min's arriving in "float"/scientific notation
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Feb 12, 2024
1 parent d7c0b8d commit 31a6fd2
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 31a6fd2

Please sign in to comment.