mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-11 00:33:59 +01:00
Fix a bug in multislice where it doesn't work when prevent_alias is set to True
This commit is contained in:
1 parent
2854a872ee
commit
188a685503
6 files changed
+25
-15
No files matched your search
@@ -354,7 +354,11 @@ def get_data(cxi_file, cut_zeroes = True):
|
||||
data[data < 0] = 0
|
||||
|
||||
if 'axes' in cxi_file[pull_from].attrs:
|
||||
axes = str(cxi_file[pull_from].attrs['axes'].decode()).split(':')
|
||||
try:
|
||||
axes = str(cxi_file[pull_from].attrs['axes'].decode()).split(':')
|
||||
except AttributeError as e: # Weird string vs bytes thing, ehhh
|
||||
axes = str(cxi_file[pull_from].attrs['axes']).split(':')
|
||||
|
||||
axes = [axis.strip().lower() for axis in axes]
|
||||
else:
|
||||
axes = None
|
||||
|
||||
Reference in new issue
Block a user