IMCtermite
IMCtermite copied to clipboard
Can't open .raw file in Ubuntu, but in Windows works.
Hi there,
In Windows the following code snippet works without any error:
import IMCtermite
def main():
imcraw = IMCtermite.imctermite(b"/export/home/scratch/P31424_500h.raw")
if __name__ == '__main__':
main()
However in Ubuntu, I get the following error:
Traceback (most recent call last):
File "/local/user/toolsr64/linux64_u22_python310/usr/local/lib/python3.10/pdb.py", line 1732, in main
pdb._runscript(mainpyfile)
File "/local/user/toolsr64/linux64_u22_python310/usr/local/lib/python3.10/pdb.py", line 1592, in _runscript
self.run(statement)
File "/local/user/toolsr64/linux64_u22_python310/usr/local/lib/python3.10/bdb.py", line 597, in run
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
File "/csem/divr/users/tbe/repo/3dmoco/test.py", line 9, in <module>
main()
File "/csem/divr/users/tbe/repo/3dmoco/test.py", line 4, in main
imcraw = IMCtermite.imctermite(b"/export/home/scratch/P31424_500h.raw")
File "IMCtermite.pyx", line 26, in IMCtermite.imctermite.__cinit__
RuntimeError: size mismatch between subbuffer (208004) and datatype (52001*8)
Do you have any idea about the issue?