This PR resolves #343 by adding units to the <epiparameter> class, in the $metadata element, and adds units to all entries in the {epiparameter} database.
A units argument has been added to create_metadata() .
as_epiparameter() is updated to use units from {epireview} data and store it in an <epiparameter> object.
plot.epiparameter() now uses the parameter unit to print in the x-axis. A new unit test is added for plot.epiparameter() to check the units are being printed on the axis label.
The data_dictionary.json is updated to validate parameter units.
This PR resolves #343 by adding units to the
<epiparameter>
class, in the$metadata
element, and adds units to all entries in the {epiparameter} database.A
units
argument has been added tocreate_metadata()
.as_epiparameter()
is updated to use units from {epireview} data and store it in an<epiparameter>
object.plot.epiparameter()
now uses the parameter unit to print in the x-axis. A new unit test is added forplot.epiparameter()
to check the units are being printed on the axis label.The
data_dictionary.json
is updated to validate parameter units.