We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! Looks like the read_mib.py module is broken in version 0.14.18.
-> Version 0.14.17:
datacube = py4DSTEM.import_file("data_scan64x64.mib", scan=(64,64))
Loads data without errors.
-> Version 0.14.18:
Error:
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[3], [line 1](vscode-notebook-cell:?execution_count=3&line=1) ----> [1](vscode-notebook-cell:?execution_count=3&line=1) datacube = py4DSTEM.import_file("data_scan64x64.mib", scan=(64,64)) File c:\Users\AL282703\AppData\Local\miniforge3\envs\nt4dstem\Lib\site-packages\py4DSTEM\io\importfile.py:90, in import_file(filepath, mem, binfactor, filetype, **kwargs) [87](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/importfile.py:87) # elif filetype == "kitware_counted": [88](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/importfile.py:88) # data = read_kitware_counted(filepath, mem, binfactor, metadata=metadata, **kwargs) [89](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/importfile.py:89) elif filetype == "mib": ---> [90](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/importfile.py:90) data = load_mib(filepath, mem=mem, binfactor=binfactor, **kwargs) [91](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/importfile.py:91) elif filetype == "arina": [92](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/importfile.py:92) from py4DSTEM.io.filereaders import read_arina File c:\Users\AL282703\AppData\Local\miniforge3\envs\nt4dstem\Lib\site-packages\py4DSTEM\io\filereaders\read_mib.py:81, in load_mib(file_path, mem, binfactor, reshape, scan) [78](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/filereaders/read_mib.py:78) print("Data type not supported as MIB reader") [80](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/filereaders/read_mib.py:80) if reshape: ---> [81](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/filereaders/read_mib.py:81) data = data.reshape(scan[0], scan[1], width, height) [82](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/filereaders/read_mib.py:82) else: [83](file:///C:/Users/AL282703/AppData/Local/miniforge3/envs/nt4dstem/Lib/site-packages/py4DSTEM/io/filereaders/read_mib.py:83) data = data[:, None, :, :] TypeError: 'NoneType' object is not subscriptable
I can work with version 0.14.17 right now, but that might be a problem in the future. Maybe this is fixed in version 0.14.19? Could you take a look?
Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
Looks like the read_mib.py module is broken in version 0.14.18.
-> Version 0.14.17:
Loads data without errors.
-> Version 0.14.18:
Error:
I can work with version 0.14.17 right now, but that might be a problem in the future. Maybe this is fixed in version 0.14.19? Could you take a look?
Thanks!
The text was updated successfully, but these errors were encountered: