Skip to content

Commit

Permalink
[S1.OSV.retrieve] extract tmp file to memory, not cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed Dec 11, 2023
1 parent 332caff commit f19c683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyroSAR/S1/auxil.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ def retrieve(self, products, pbar=False):
members = tmp.namelist()
target = [x for x in members if re.search(basename, x)][0]
with zf.ZipFile(tmp_path, 'w') as outfile:
outfile.write(filename=tmp.extract(target),
arcname=basename)
outfile.writestr(data=tmp.read(target),
zinfo_or_arcname=basename)
else:
with zf.ZipFile(file=tmp_path,
mode='w',
Expand Down

0 comments on commit f19c683

Please sign in to comment.