Method: RTKIT::DataSet#print
- Defined in:
- lib/rtkit/data_set.rb
#print ⇒ Object
Prints the nested structure of patient - study - series - images that have been loaded to the dataset instance.
207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
# File 'lib/rtkit/data_set.rb', line 207 def print @patients.each do |p| puts p.name p.studies.each do |st| puts " #{st.uid}" st.series.each do |se| puts " #{se.modality}" if se.images puts " (#{se.images.length} images)" end end end end end |