Skip to content

Commit

Permalink
fix(api): update (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
TLAIDI authored and laurent-laporte-pro committed Sep 12, 2023
1 parent c7ab476 commit 028bfc2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion antarest/study/common/studystorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def export_study_flat(
path_study: source path.
dst_path: destination path.
outputs: list of outputs to keep.
output_src_path: list of source outputs path
output_src_path: list output path
output_list_filter:list of outputs to keep
"""
raise NotImplementedError()
2 changes: 1 addition & 1 deletion antarest/study/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ def export_study_flat(
storage = self.storage_service.get_storage(study)
if isinstance(study, RawStudy):
if study.archived:
storage.unarchive(study)
storage.unarchived(study)
try:
return storage.export_study_flat(
path_study=path_study,
Expand Down
2 changes: 1 addition & 1 deletion antarest/study/storage/rawstudy/raw_study_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def archive(self, study: RawStudy) -> Path:
self.cache.invalidate(study.id)
return new_study_path

def unarchived(self, study: RawStudy) -> None:
def unarchive(self, study: RawStudy) -> None:
with open(
self.get_archive_path(study),
"rb",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def _generate(
else:
path_study = Path(parent_study.path)
if parent_study.archived:
self.raw_study_service.unarchived(parent_study)
self.raw_study_service.unarchive(parent_study)
try:
self.raw_study_service.export_study_flat(
path_study=path_study,
Expand Down

0 comments on commit 028bfc2

Please sign in to comment.