Skip to content

Add units to DataObjects's

Alessandro Maissen requested to merge 74-add-units into master

This MR add an attribute unit to DataObjects', that is displayed in the plots. One can define the unit as follows:

DataReal(name="radius", dim=1, domain=Interval(0, 1), unit="m")
DataReal(name="area", dim=1, domain=Interval(0, 1), unit="m^2")
DataReal(name="some acceleration", domain=Interval(0, 1), unit="m/s^2")

In plots: Screenshot_2023-12-08_at_13.38.21 Screenshot_2023-12-08_at_13.38.10 Screenshot_2023-12-08_at_13.38.02 Screenshot_2023-12-08_at_13.37.57 Screenshot_2023-12-08_at_13.37.49

Merge request reports

Loading