Skip to content

Commit

Permalink
fix : tweak default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ltroussellier committed Jan 30, 2025
1 parent f8555e2 commit 8ba2636
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
19 changes: 14 additions & 5 deletions src/esgvoc/core/service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,28 @@ def load_settings() -> ServiceSettings:
else:
default_settings = ServiceSettings(
universe=UniverseSettings(
github_repo="https://github.com/ESPRI-Mod/mip-cmor-tables",
branch="uni_proj_ld",
local_path=".cache/repos/mip-cmor-tables",
github_repo="https://github.com/WCRP-CMIP/WCRP-universe",
branch="esgvoc",
local_path=".cache/repos/WCRP-universe",
db_path=".cache/dbs/universe.sqlite"
),
projects={"cmip6plus":ProjectSettings(
project_name="CMIP6Plus_CVs",
github_repo="https://github.com/ESPRI-Mod/CMIP6Plus_CVs",
branch="uni_proj_ld",
github_repo="https://github.com/WCRP-CMIP/CMIP6Plus_CVs",
branch="esgvoc",
local_path=".cache/repos/CMIP6Plus_CVs",
db_path=".cache/dbs/cmip6plus.sqlite"
)
},
projects={"cmip6":ProjectSettings(
project_name="CMIP6_CVs",
github_repo="https://github.com/WCRP-CMIP/CMIP6_CVs",
branch="esgvoc",
local_path=".cache/repos/CMIP6_CVs",
db_path=".cache/dbs/cmip6.sqlite"
)
}


)

Expand Down
25 changes: 11 additions & 14 deletions src/esgvoc/core/service/settings_default.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@

# [[projects]]
# project_name = "TestProject"
# github_repo = "XXX"
# branch = "XXX"
# local_path = "XXX"
# db_path = "./cache/dbs/XXXX.sqlite"

[[projects]]
project_name = "cmip6"
github_repo = "https://github.com/WCRP-CMIP/CMIP6_CVs"
branch = "esgvoc"
local_path = ".cache/repos/CMIP6_CVs"
db_path = ".cache/dbs/cmip6.sqlite"
[[projects]]
project_name = "cmip6plus"
github_repo = "https://github.com/ESPRI-Mod/CMIP6Plus_CVs"
branch = "uni_proj_ld"
github_repo = "https://github.com/WCRP-CMIP/CMIP6Plus_CVs"
branch = "esgvoc"
local_path = ".cache/repos/CMIP6Plus_CVs"
db_path = ".cache/dbs/cmip6plus.sqlite"

[universe]
github_repo = "https://github.com/ESPRI-Mod/mip-cmor-tables"
branch = "uni_proj_ld"
local_path = ".cache/repos/mip-cmor-tables"
github_repo = "https://github.com/WCRP-CMIP/WCRP-universe"
branch = "esgvoc"
local_path = ".cache/repos/WCRP-universe"
db_path = ".cache/dbs/universe.sqlite"

0 comments on commit 8ba2636

Please sign in to comment.