Skip to content

Can't open .raw file in Ubuntu, but in Windows works. #27

@TommasoBendinelli

Description

@TommasoBendinelli

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions