Skip to content
New issue

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

Error when importing DICOM #890

Open
TheManDK opened this issue Jan 31, 2025 · 3 comments
Open

Error when importing DICOM #890

TheManDK opened this issue Jan 31, 2025 · 3 comments

Comments

@TheManDK
Copy link

Version 3.1.1

When trying to import a DICOM set I see the following in the terminal while the app is frozen:

RAM_FREE= 37472051200 RAM_TOTAL= 68650508288 Traceback (most recent call last): File "invesalius\gui\import_panel.py", line 170, in OnClickOk File "invesalius\gui\import_panel.py", line 191, in LoadDicom File "Lib\site-packages\pubsub\core\publisher.py", line 216, in sendMessage File "Lib\site-packages\pubsub\core\topicobj.py", line 452, in publish File "Lib\site-packages\pubsub\core\topicobj.py", line 482, in __sendMessage File "Lib\site-packages\pubsub\core\listener.py", line 237, in __call__ File "invesalius\control.py", line 745, in OnOpenDicomGroup File "invesalius\control.py", line 817, in OpenDicomGroup File "invesalius\data\imagedata_utils.py", line 658, in dcm2memmap ValueError: could not broadcast input array from shape (256,196) into shape (196,256)

@tfmoraes
Copy link
Member

@TheManDK
Copy link
Author

Tried with the nightly build with same result

>>>> [<invesalius.reader.dicom_grouper.PatientGroup object at 0x0000011AB7FB2790>] RAM_FREE= 33468309504 RAM_TOTAL= 68650508288 Traceback (most recent call last): File "invesalius\gui\import_panel.py", line 174, in OnClickOk File "invesalius\gui\import_panel.py", line 194, in LoadDicom File "invesalius\pubsub\pub.py", line 74, in sendMessage File "pubsub\core\publisher.py", line 216, in sendMessage File "pubsub\core\topicobj.py", line 452, in publish File "pubsub\core\topicobj.py", line 482, in __sendMessage File "pubsub\core\listener.py", line 237, in __call__ File "invesalius\control.py", line 948, in OnOpenDicomGroup File "invesalius\control.py", line 1029, in OpenDicomGroup File "invesalius\data\imagedata_utils.py", line 449, in dcm2memmap ValueError: could not broadcast input array from shape (256,196) into shape (196,256)

@HossamSaberX
Copy link

Greetings. I am willing to contribute to this project. At first, I am trying to replicate the error, but I can't. Can you send me a minimal sample set to get that error or at least give the results of this command for a couple of files by replacing the file.dcm with the actual names?

dcmdump file.dcm | grep -E "Rows|Columns|Orientation|Position"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants