Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi authored and romainsacchi committed Apr 11, 2024
1 parent 7980ed1 commit 4d685a6
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 398 deletions.
6 changes: 3 additions & 3 deletions pathways/data_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def validate_scenario_data(dataframe: pd.DataFrame) -> bool:
- year: integer
- value: float
:param resource: Datapackage resource.
:param dataframe: pandas DataFrame containing the scenario data.
:return: True if the data is valid, False otherwise.
"""

Expand All @@ -106,7 +106,7 @@ def validate_scenario_data(dataframe: pd.DataFrame) -> bool:
return True


def validate_mapping(resource: datapackage.Resource, dataframe: pd.DataFrame):
def validate_mapping(resource: datapackage.Resource):
"""
Validates the mapping between scenario variables and LCA datasets.
The mapping must be a YAML file.
Expand All @@ -116,7 +116,7 @@ def validate_mapping(resource: datapackage.Resource, dataframe: pd.DataFrame):
dataset: string
scenario variable: string
:param filepath: relative path to the mapping file.
:param resource: datapackage.Resource
:return: boolean
"""

Expand Down
Loading

0 comments on commit 4d685a6

Please sign in to comment.