Skip to content

Commit

Permalink
Fix mypy issue, update version number in config
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Aug 29, 2024
1 parent f9a4859 commit 70c7b38
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/config.template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2",
"version": "1.3",
"general": {
"metadata": {
"github_repository": "tum-esm/em27-metadata-storage",
Expand Down
4 changes: 2 additions & 2 deletions docs/components/config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ const CONFIG_SCHEMA: any = {
"description": "A pydantic model describing the config file schema.",
"properties": {
"version": {
"const": "1.2",
"const": "1.3",
"description": "Version of the retrieval pipeline which is compatible with this config file. Retrievals done with any version `1.x` will produce the same output files as retrievals done with version `1.0`. But higher version numbers might use a different config file structure and produce more output files.",
"enum": [
"1.2"
"1.3"
],
"title": "Version",
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

```json
{
"version": "1.2",
"version": "1.3",
"general": {
"metadata": {
"github_repository": "tum-esm/em27-metadata-storage",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/guides/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Template:

```json
{
"version": "1.2",
"version": "1.3",
"general": {
"metadata": {
"github_repository": "tum-esm/em27-metadata-storage",
Expand Down
4 changes: 3 additions & 1 deletion src/profiles/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def run() -> None:

for variant in ["GGG2014", "GGG2020"]:
os.makedirs(
os.path.join(config.general.data.atmospheric_profiles, variant),
os.path.join(
config.general.data.atmospheric_profiles.root, variant
),
exist_ok=True
)

Expand Down
2 changes: 1 addition & 1 deletion src/types/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class ExportTargetConfig(pydantic.BaseModel):
class Config(pydantic.BaseModel):
"""A pydantic model describing the config file schema."""

version: Literal["1.2"] = pydantic.Field(
version: Literal["1.3"] = pydantic.Field(
...,
description=
"Version of the retrieval pipeline which is compatible with this config file. Retrievals done with any version `1.x` will produce the same output files as retrievals done with version `1.0`. But higher version numbers might use a different config file structure and produce more output files."
Expand Down

0 comments on commit 70c7b38

Please sign in to comment.