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

Allow dimensionless time units #22

Merged
merged 2 commits into from
Sep 10, 2020
Merged

Conversation

mcflugen
Copy link
Member

This pull request allows dimensionless units (i.e. "", "1", but not "-") to be used as time units for a BMI as returned by get_time_units.

@mcflugen mcflugen merged commit 426ca45 into master Sep 10, 2020
@mcflugen mcflugen deleted the mcflugen/allow-dimensionless-time branch September 10, 2020 15:20
@mdpiper
Copy link
Member

mdpiper commented Sep 10, 2020

@mcflugen Is "-" not accepted by udunits? We used "-" all over the place for a default unspecified time unit.

@mcflugen
Copy link
Member Author

@mdpiper Correct, "-" is not a valid unit. "" or "1" are the symbols to use for dimensionless units. We don't have a way of specifying a generic unit of time.

@mcflugen
Copy link
Member Author

@mdpiper We also don't handle the case of a model that doesn't vary with time and so doesn't have time units at all. Maybe the string, "none"?

@mdpiper
Copy link
Member

mdpiper commented Sep 10, 2020

@mcflugen Yeah, I agree that "none" is a good descriptor for no time units.

I'll note this info in the docs for get_time_units.

mdpiper added a commit to csdms/bmi that referenced this pull request Sep 10, 2020
This reflects a discussion in csdms/bmi-tester#22.

Also changed formatting in the docs to use a monospace font and quotes
around the units to set them off from the text.
mdpiper added a commit to csdms/bmi that referenced this pull request Sep 10, 2020
This reflects a discussion in csdms/bmi-tester#22.

Also changed formatting in the docs to use a monospace font and quotes
around the units to set them off from the text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants