write to_respilens() function#41
Merged
Merged
Conversation
…respilens()` function
…t_fcast()` output)
Contributor
|
I have a few comments for the current code as following. I provided my suggestions below instead of changing Cy or Emily's code in case you think your versions work better for the Respilens requirements.
I will look at the |
was uncalled in the script at time of removal
Contributor
Author
|
Final version:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
to_respilens(hubdata)Parameter:
hubdataobject ($hubdataof output ofget_fcast()function; a named list), which contains:model_out_tbl, a tibble with model forecast data in Hubverse formatoracle_output, a tibble of corresponding ground truth dataReturns:
<loc>.jsonstructure per location in input model data, and a singlemetadata.jsonstructure to describe the data load.<loc>.jsoncan be drag'n'dropped into MyRespiLens for visualization.Assumptions/Notes:
output_typeof forecast data will bequantile,pmf, orsample.sampleentries will be filtered out;quantileandpmfwill be loaded into the JSON. If there is anotheroutput_typeoutside of these 3, the script will fail with an unscripted error.jsonvalidate)hubdatais the Hubverse oracle output stylemodel_out_tblandoracle_outputhave correct data types when they are loaded into the function.jsonfiles for use within MyRespiLensloc_dataobject (all locations present inmodel_out_tblneed to be inloc_data)Resolves issue #40