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

Error: file missing metadata_standard_version #1

Open
lzachmann opened this issue Apr 17, 2021 · 2 comments
Open

Error: file missing metadata_standard_version #1

lzachmann opened this issue Apr 17, 2021 · 2 comments

Comments

@lzachmann
Copy link

Hey @rqthomas, is it okay to post issues here? Happy to wait until this package is more developed to chime in. Or I can create a pull / merge request if you like? Trying to get the write_metadata_eml() function to work and hitting a couple of speed bumps.

Just a couple of quick observations....

  1. A call to basename() might be nice here forecast_file_name_base <- tools::file_path_sans_ext(tools::file_path_sans_ext(basename(forecast_file))) if folks are caching forecast files in subdirectories as opposed to the project root;
  2. num_variables still needs to be defined in the control flow for if ("statistic" %in% names(forecast))

Even with the above patches made I'm still hitting an error

Error: file missing metadata_standard_version

Not quite sure how deeply I wanted to dive into the EML package to sort that one out, and figured you might know the solution off hand.

Again, sorry if reporting here is not what is desired. Happy to delete this and engage offline too.

@rqthomas
Copy link
Contributor

Hi @lzachmann Reporting here is great, especially because it signals to others to contribute as well. My class that is using the package to contribute forecasts discovered the metadata_standard_version bug last week and it should be fixed in the latest commit. Try reinstalling and reloading. Go ahead and create pull request for the others and I can look them over to integrate.

@lzachmann
Copy link
Author

Thanks @rqthomas I can try to create that pull request this evening, or tomorrow. Your fix for the metadata_standard_version is working. The only other hangup at the moment appears to be that EFIstandards::forecast_validator() doesn't appear to accept the MCMC type propagation of initial condition uncertainty: Error: 'initial_conditions' Invalid uncertainty <propagation> <type> 'MCMC'. When I arbitrarily changed type to ensemble in the initial_conditions block of the metadata template as a test, everything worked.

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

No branches or pull requests

2 participants