Skip to content

Commit

Permalink
Rename dimension_path to definition_path
Browse files Browse the repository at this point in the history
  • Loading branch information
phackstock committed Jul 24, 2023
1 parent 343c87b commit 4480fdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nomenclature/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ class CodeListConfig(BaseModel):
repository_dimension_path: Optional[Path]

@root_validator()
def set_repository_definition_path(cls, v):
def set_repository_dimension_path(cls, v):
if (
v.get("repository") is not None
and v.get("repository_definition_path") is None
and v.get("repository_dimension_path") is None
):
v["repository_definition_path"] = f"definitions/{v['dimension']}"
v["repository_dimension_path"] = f"definitions/{v['dimension']}"
return v


Expand Down
2 changes: 1 addition & 1 deletion tests/data/general-config-definitions/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ region:
country: true
variable:
repository: common-definitions
path: definitions / variable
repository_dimension_path: definitions/variable

0 comments on commit 4480fdc

Please sign in to comment.