Extracting useful metadata for validating load requests versus model output submissions #10
annakrystalli
started this conversation in
Ideas
Replies: 1 comment
-
This all looks good to me. In instances where no data are found for a particular query, I think I'd vote for returning a data frame with zero rows. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the
hubmeta
files will be used for both validating requests to load data as well as validating model output submissions, I just wanted to clarify I've understood the different requirements (which affect the level of parsing of metadata) in each case and outline some limitations I can foresee:Validating load data requests
origin_date
,location
,horizon
and outputtype
andtype_id
will return data and searching the hub is the only way to extract such data availability. Is this a correct understanding and is that a problem? Do we just return No data found which is easy but not so helpful for the user?Validating model output submissions
Here required and optional become important and contents of submissions need to be validated separately against required (for which entries must be present) and optional (for which entries must match the optional values.
In any case, I'm thinking of writing smaller helper functions to extract individual argument values in different formats (flat for data loading validation vs semi structured with
optional
&required
fields for submission validation) and appendingunit
andformat
metadata as attributes where available.Here's an example:
Created on 2022-10-03 with reprex v2.0.2
Thoughts welcome!
Beta Was this translation helpful? Give feedback.
All reactions