-
Notifications
You must be signed in to change notification settings - Fork 8
[Issue 182] Update epi_df
examples, check additional_metadata
type at construction
#183
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
Conversation
epi_df
examples, check additional_metadata
type at constructionepi_df
examples, check additional_metadata
type at construction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything here looks good.
As I read this though, I think the epi_df
and as_epi_df
documentation should be more specific. A tbl_ts
is converted so that additional keys go as other_keys = xxx
. I think we should mention this somewhere.
If someone wants to make an epi_df
to use with epipredict
that correctly uses those keys, they MUST be called other_keys
or they'll be ignored.
If |
@dajmcdon Good suggestions - I'm thinking of adding a blurb in the
^ To be clear, we would just add some documentation to make this clear to the user? i.e., not "strictly" enforce it in the "throw an error if the specification is wrong" sense? I do agree with @brookslogan's suggestion of having |
I agree that So, if I call |
@dajmcdon Gotcha. I just pushed up changes to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. @brookslogan?
Requests/questions [actually these may just be separate issues as well --- if we put them in other Issues then think this is good to go]:
A few lingering thoughts which probably belong in separate issues:
|
Migrating the notes above to other issues, so this is good to go! |
Thanks @brookslogan! Yes I'll close 182. |
Addresses #182
Changes:
new_epi_df
examples so that (i)additional_metadata
argument is typelist
instead ofvector
and (ii) there is an example with multipleother_keys
new_epi_df
to ensureadditional_metadata
is alist
I checked in
epipredict
for calls toas_epi_df
and alladditional_metadata
arguments there arelists
so this change will not breakepipredict
. Afaik there aren't any dependencies onepiprocess
other thanepipredict
.