Skip to content

Commit

Permalink
refactor(storage-service): remove duplicate code in `abstract_storage…
Browse files Browse the repository at this point in the history
…_service.py`
  • Loading branch information
mabw-rte committed Oct 24, 2024
1 parent 2f2ca59 commit 02f3d17
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions antarest/study/storage/abstract_storage_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@ def export_study(self, metadata: T, target: Path, outputs: bool = True) -> Path:
self.export_study_flat(metadata, tmp_study_path, outputs)
stopwatch = StopWatch()
archive_dir(tmp_study_path, target, archive_format=ArchiveFormat.SEVEN_ZIP)
with py7zr.SevenZipFile(target, "w") as szf:
szf.writeall(tmp_study_path, arcname="")
stopwatch.log_elapsed(lambda x: logger.info(f"Study {path_study} exported (7zip mode) in {x}s"))
return target

Expand Down

0 comments on commit 02f3d17

Please sign in to comment.