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

Converting from definition files to JSON #310

Closed
tsutterley opened this issue Jul 12, 2024 · 0 comments · Fixed by #312
Closed

Converting from definition files to JSON #310

tsutterley opened this issue Jul 12, 2024 · 0 comments · Fixed by #312
Assignees

Comments

@tsutterley
Copy link
Owner

Currently the definition files for loading a (non-default) model use a simple tab-delimited format. To be more machine readable, we could switch to a JSON format.

from this 👇

format      OTIS
name        CATS2008
model_file  CATS2008/hf.CATS2008.out
grid_file   CATS2008/grid_CATS2008
projection  CATS2008
type        z
variable    tide_ocean
reference   https://doi.org/10.15784/601235

to this 👇

{
    "format": "OTIS",
    "name": "CATS2008",
    "model_file": "CATS2008/hf.CATS2008.out",
    "grid_file": "CATS2008/grid_CATS2008",
    "projection": "CATS2008",
    "type": "z",
    "variable": "tide_ocean",
    "reference": "https://doi.org/10.15784/601235"
}

Boolean values, lists and dictionaries could be serialized directly. Should require less maintenance.

@tsutterley tsutterley self-assigned this Jul 12, 2024
@tsutterley tsutterley linked a pull request Jul 15, 2024 that will close this issue
tsutterley added a commit that referenced this issue Jul 16, 2024
* docs: bump `docutils` to latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant