Populate function, first part.
Adding automated search to dataset.Populate()
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_.infofile to read off and updateDataSet's attributes. - if the file above is not found, it looks for
[name]_1_.xmlto 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.