Skip to content

Commit

Permalink
Added the warn_only member to RTStruct class
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhack47 authored and asim-shrestha committed Jan 8, 2023
1 parent 02ec808 commit 6c6f24a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rt_utils/rtstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ class RTStruct:
Wrapper class to facilitate appending and extracting ROI's within an RTStruct
"""

def __init__(self, series_data, ds: FileDataset, ROIGenerationAlgorithm=0):
def __init__(self, series_data, ds: FileDataset, ROIGenerationAlgorithm=0, warn_only: bool = False):
self.series_data = series_data
self.ds = ds
self.warn_only = warn_only
self.frame_of_reference_uid = ds.ReferencedFrameOfReferenceSequence[
-1
].FrameOfReferenceUID # Use last strucitured set ROI
Expand Down

0 comments on commit 6c6f24a

Please sign in to comment.