Skip to content

Conversation

@dominicferreira
Copy link

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
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