You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Runing the command meshio info file.inp --input-format abaqus fails with the following error:
Traceback (most recent call last):
File "C:\Users\jeffr\anaconda3\envs\meshing\Scripts\meshio-script.py", line 9, in <module>
sys.exit(main())
^^^^^^
File "C:\Users\jeffr\anaconda3\envs\meshing\Lib\site-packages\meshio\_cli\_main.py", line 52, in main
return args.func(args)
^^^^^^^^^^^^^^^
File "C:\Users\jeffr\anaconda3\envs\meshing\Lib\site-packages\meshio\_cli\_info.py", line 21, in info
mesh = read(args.infile, file_format=args.input_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jeffr\anaconda3\envs\meshing\Lib\site-packages\meshio\_helpers.py", line 71, in read
return _read_file(Path(filename), file_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jeffr\anaconda3\envs\meshing\Lib\site-packages\meshio\_helpers.py", line 103, in _read_file
return reader_map[file_format](str(path))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jeffr\anaconda3\envs\meshing\Lib\site-packages\meshio\abaqus\_abaqus.py", line 106, in read
out = read_buffer(f)
^^^^^^^^^^^^^^
File "C:\Users\jeffr\anaconda3\envs\meshing\Lib\site-packages\meshio\abaqus\_abaqus.py", line 154, in read_buffer
[point_ids[point_id] for point_id in set_ids], dtype="int32"
~~~~~~~~~^^^^^^^^^^
KeyError: 18879
What I can tell you is that this node definitely exists, and is definitely in the .inp file.
To Reproduce
I cannot provide the Abaqus file because of NDAs. I can provide information about it on request.
I figured out the source of the issue. The Abaqus parser doesn't support multiple node blocks as it's currently written. I might try to write a quick fix and make a pull request.
Describe the bug
Runing the command
meshio info file.inp --input-format abaqus
fails with the following error:What I can tell you is that this node definitely exists, and is definitely in the .inp file.
To Reproduce
I cannot provide the Abaqus file because of NDAs. I can provide information about it on request.
Diagnose
Result of
pip freeze
:The text was updated successfully, but these errors were encountered: