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

Add quotes to value of date key for DiskUsage plugin in webviz-full-demo.yml #69

Open
sigurdp opened this issue Jan 31, 2021 · 0 comments

Comments

@sigurdp
Copy link

sigurdp commented Jan 31, 2021

The YAML parser currently used in webviz-config, PyYAML, has a lot of built-in magic when parsing date values. This magic causes the value of the date key for the DiskUsage plugin in webviz-full-demo.yml to be interpreted incorrectly.

- title: Disk usage
content:
- DiskUsage:
scratch_dir: ../.
date: 2020-07-11 # Date only necessary if you want an explicit date.

PyYAML ends up parsing 2020-07-11 as a datetime.date. This is not the expected input to the DiskUsage plugin which expects a string input. Until we either patch PyYaml or switch YAML parser, keys such as this should be enclosed in quotes.

Related to this issue in webviz-config: equinor/webviz-config#396

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

1 participant