Skip to content

"Scale" requires units in constructor (Units MR 2)

Mikhail Svechnikov requested to merge units02 into main

Main changes:

  1. Units are stored not in the name of Scale, but in separate variable.
  2. Scale requires units to be passed in constructor. Units are also explicitly passed in few example files.
  3. axisLabel() and axisName() are separated, units are not included to name.
  4. Renames: plottableScale --> convertedScale && plottableFrame --> convertedFrame. This is because such conversions are needed not only for plotting, but also for internal purposes.

Does point 2 in the list:

  1. Create common unit types for core and GUI
  2. Accept and store units in Scale
  3. Pass units from GUI
  4. Restore units conversion functions depending on instrument/detector type
  5. Restore units combo box
  6. Restore units conversion for loaded data
  7. Restore xml backward compatibility with v20.x
Edited by Mikhail Svechnikov

Merge request reports

Loading