Open dzenanz opened 1 year ago
This piece of code: https://github.com/Project-MONAI/SlicerMONAIViz/blob/27c6fa84d373b9be30b01251c59ea28cfc1bb370/MONAIViz/MONAIViz.py#L440-L445 could be refactored to use this: https://github.com/Project-MONAI/SlicerMONAIViz/blob/27c6fa84d373b9be30b01251c59ea28cfc1bb370/MONAIViz/MONAIVizLib/utils.py#L46 That should make it more reliable and future proof.
This piece of code: https://github.com/Project-MONAI/SlicerMONAIViz/blob/27c6fa84d373b9be30b01251c59ea28cfc1bb370/MONAIViz/MONAIViz.py#L440-L445 could be refactored to use this: https://github.com/Project-MONAI/SlicerMONAIViz/blob/27c6fa84d373b9be30b01251c59ea28cfc1bb370/MONAIViz/MONAIVizLib/utils.py#L46 That should make it more reliable and future proof.