Opened 4 years ago

Last modified 9 months ago

#477 new enhancement

allow user defined models to set there own html markup on units

Reported by: pkienzle Owned by:
Priority: minor Milestone: SasView Next Release +1
Component: SasView Keywords:
Cc: Work Package: SasModels Infrastructure

Description (last modified by butler)

Currently if you want to do something fancy like $\Ohm{-1}$ for the units in the documentation you need to modify generate.py and add an entry to the RST_UNITS map, converting the GUI form name 1/ohm that is stored in the parameter definition to the appropriate markup in html file.

We can extend the unit definition field so that it contains "units|markup", and parse it into two different properties when the model is loaded, one for the GUI and one for the documentation.

This only matters for third-party models; for now we can update generate.py as needed.

Change History (2)

comment:1 Changed 4 years ago by butler

  • Type changed from defect to enhancement
  • Work Package changed from SasModels New Model to SasModels Redesign

comment:2 Changed 9 months ago by butler

  • Description modified (diff)
  • Work Package changed from SasModels Redesign to SasModels Infrastructure
Note: See TracTickets for help on using tickets.