Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Sep 17, 2023
2 parents e12f3f0 + 9b982db commit e44befd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ab_plugin_scenariolink/scenarios list/list.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
generator;generator version;creation date;model;scenario;source database;Zenodo record ID
premise;1.6.8;2023-09-16;remind;SSP2-Base;ecoinvent 3.9;"8351309"
premise;1.6.8;2023-09-16;remind;SSP2-Base;ecoinvent 3.9 cutoff;"8351309"
premise;1.6.9;2023-09-17;remind;SSP2-Base;ecoinvent 3.9 cutoff;"8353132"
2 changes: 2 additions & 0 deletions ab_plugin_scenariolink/tables/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def get_datapackage_from_record(self, dp_name: str) -> None:
dp_name (str): The name of the datapackage to retrieve.
"""
dp = download_files_from_zenodo(dp_name)
self.include = None
self.sync_with_package(dp)

def get_datapackage_from_disk(self) -> None:
Expand All @@ -133,6 +134,7 @@ def get_datapackage_from_disk(self) -> None:
)
print('file selected from path:', path)
dp = package_from_path(path)
self.include = None
self.sync_with_package(dp)

def sync_with_package(self, dp):
Expand Down

0 comments on commit e44befd

Please sign in to comment.