Skip to content

Populate function, first part.

Diogo Figueirinhas requested to merge populateFunction into develop

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_.info file to read off and update DataSet'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.

Merge request reports