Skip to content

Commit

Permalink
GITC-4719 Use float to allow reading of large MRF sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroberts committed Aug 8, 2023
1 parent 9869320 commit bf2a0f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mrf_apps/mrf_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@
sizeElem = rasterElem.getElementsByTagName('Size')[0]
sizeAttrs = dict(sizeElem.attributes.items())

mrf_x = int(sizeAttrs['x'])
mrf_y = int(sizeAttrs['y'])
mrf_x = float(sizeAttrs['x'])
mrf_y = float(sizeAttrs['y'])

if 'z' in sizeAttrs:
mrf_z = int(sizeAttrs['z'])
mrf_z = float(sizeAttrs['z'])

if len(rasterElem.getElementsByTagName('Compression')):
compressionElem = rasterElem.getElementsByTagName('Compression')[0]
Expand Down

0 comments on commit bf2a0f7

Please sign in to comment.