Skip to content

get_bbox_IJK Bug#147

Open
dominicferreira wants to merge 1 commit intoarcadelab:mainfrom
dominicferreira:get_bbox_IJK_fix
Open

get_bbox_IJK Bug#147
dominicferreira wants to merge 1 commit intoarcadelab:mainfrom
dominicferreira:get_bbox_IJK_fix

Conversation

@dominicferreira
Copy link
Copy Markdown

get_bbox_IJK() assumes legacy material format and will raise error on the self.materials.values() call.

Update function with new format, and keep legacy support.

get_bbox_IJK() assumes legacy material format and will raise error on the self.materials.values() call.

Update function with new format, and keep legacy support.
@dominicferreira
Copy link
Copy Markdown
Author

There are a few places in the Volume class now where there is a conflict in the expected materials type as mentioned above.

Examples:

  • Volume.get_bbox_IJK()
  • Volume.crop()
  • Volume.save()

In v1.1.3 materials was Union[Dict[str, np.ndarray], but v1.2 > it's Tuple[Dict[str, int], np.ndarray]].

Should these instances be updated to Tuple[Dict[str, int], np.ndarray]] or should both types be supported as suggested in this PR?

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

Successfully merging this pull request may close these issues.

1 participant