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
When attempting to use the "Add Region" feature from the bottom of the region segmentation plugin, an error occurs only when loading the project in the atlas space. The error is reported when trying to run the "Analyze Regions" or "Summarize Volumes" functions. The log error files indicate a ValueError: operands could not be broadcast together with shapes. This might happen if the layers were not generated in the atlas space and were exported from another source.
To Reproduce
Import the project into the atlas space. Import a different layer with a threshold generated outside the atlas space. Try to run "Analyze Regions" after clicking the "Add" button for the external layer.
Expected behaviour
Generation of output files, summarize regions and volumes. As in sample space.
Log file
See attached error file
Additional context
The same issue does not occur if the threshold is generated over layers that were already generated from files existing in the atlas space, which is logical. Alternatively, I can include both approaches in the documentation, so it will be clear that this is not a bug.
I think this last option of specifying how to proceed in case adding from the atlas space is the option. Maybe if trying to add from a region that is not atlas space we just need to include a window advising the layer is not in the atlas space. I will include this details in the documentation. logErrorFile_AtlasSpace.txt logErrorFile_AtlasSpace.txt
The text was updated successfully, but these errors were encountered:
This is correct. Points 1 and 2 work without any issues. Point 3, on the other hand, does not work (as it shouldn't), but we can address this by implementing a window that displays a message indicating the need to move to the correct space. I will include this information in the documentation to ensure clarity.
Great, thanks for the clarification. The plugin should warn users about this so that they don't get a cryptic error message (and so they don't spend ages segmenting data in the wrong coordinate space)! I'll add something.
Describe the bug
When attempting to use the "Add Region" feature from the bottom of the region segmentation plugin, an error occurs only when loading the project in the atlas space. The error is reported when trying to run the "Analyze Regions" or "Summarize Volumes" functions. The log error files indicate a ValueError: operands could not be broadcast together with shapes. This might happen if the layers were not generated in the atlas space and were exported from another source.
To Reproduce
Import the project into the atlas space. Import a different layer with a threshold generated outside the atlas space. Try to run "Analyze Regions" after clicking the "Add" button for the external layer.
Expected behaviour
Generation of output files, summarize regions and volumes. As in sample space.
Log file
See attached error file
Additional context
The same issue does not occur if the threshold is generated over layers that were already generated from files existing in the atlas space, which is logical. Alternatively, I can include both approaches in the documentation, so it will be clear that this is not a bug.
I think this last option of specifying how to proceed in case adding from the atlas space is the option. Maybe if trying to add from a region that is not atlas space we just need to include a window advising the layer is not in the atlas space. I will include this details in the documentation.
logErrorFile_AtlasSpace.txt
logErrorFile_AtlasSpace.txt
The text was updated successfully, but these errors were encountered: