-
Notifications
You must be signed in to change notification settings - Fork 0
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
[traits.build workflow] Add "time" category of traits, in addition to "categorical" and "numeric"? #87
Comments
dataset_test
picks up time values as unallowed
I've previously thought about having a separate trait category for The specific test you referenced searches for But a separate problem with the @dfalster what do you think? Is it a |
- Fixes #49 - Add test for substituting a time value - Update context categories for `metadata_add_contexts` - Convert context values to character type, preventing time data types from converting weirdly when converted to yaml in `write_metadata` - Remove "time" values from `dataset_test` checks of allowable categorical values - Add a note to the user when time data types get reformatted - Partial solution to #87 where substitutions for time variables (e.g. `flowering_time`, `fruiting_time`) fail `dataset_test`
Currently
dataset_test
fails when substitutions for time variables (e.g.flowering_time
,fruiting_time
) exist, because of this line looking for whether values are found within the trait definitions.I can think of several easy ways to fix this: if the values only contain "n" and "y" then you don't check for the trait definitions (implemented here).
This made me think about this line in
process.R
which specifically codes for the traitsflowering_time
andfruiting_time
. But this isn't very generalisable to other databases if they want to make their own time traits. I wonder if it's worth making a new "time" category of traits, in addition to "categorical" and "numeric". What do you think @ehwenk?The text was updated successfully, but these errors were encountered: