Populate function, first part.
dataset.Populate()
Adding automated search to Note: The work with the Populate() function is not complete, but I thought this part could already be merged.
Populate()
will now:
- search for a
[name]_1_.info
file to read off and updateDataSet
's attributes. - if the file above is not found, it looks for
[name]_1_.xml
to update the attributes. - raises an error is the non of the files is found.
The automated update of the following parameters has yet to be implemented:
- DataSet.dds
- DataSet.axis_position
- DataSet.attenuation_axis_position
- DataSet.reference_plane
For [name]_1_.xml
case DataSet.scan_range also needs to be added.