Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add units to <epiparameter> class and database #391

Merged
merged 8 commits into from
Oct 9, 2024
Merged

Add units to <epiparameter> class and database #391

merged 8 commits into from
Oct 9, 2024

Conversation

joshwlambert
Copy link
Member

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.

@joshwlambert joshwlambert merged commit 30e10f1 into main Oct 9, 2024
9 checks passed
@joshwlambert joshwlambert deleted the units branch October 9, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add units to parameter entries in the database and to <epiparameter> object
1 participant