Skip to content

Commit

Permalink
fix(api): update (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
TLAIDI committed Aug 1, 2023
1 parent a2f0d23 commit 72bf5ca
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 @@ -294,7 +294,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 @@ -1221,7 +1221,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 @@ -412,7 +412,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 @@ -852,7 +852,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 72bf5ca

Please sign in to comment.