Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #56 from BodenmillerGroup/fix-zip-64
Browse files Browse the repository at this point in the history
FIX: #52
  • Loading branch information
plankter authored Jul 1, 2019
2 parents a6daec1 + 6b7aa6b commit 7b0800b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
author = 'Vito Zanotelli'

# The short X.Y version
version = '1.0.2'
version = '1.0.3'
# The full version, including alpha/beta/rc tags
release = '1.0.2'
release = '1.0.3'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion imctools/scripts/convertfolder2imcfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def convert_folder2imcfolder(fol, out_folder, dozip=True):
"""
if fol.endswith(ZIP_FILENDING):
tmpdir = temporarydirectory.TemporaryDirectory()
with zipfile.ZipFile(fol) as zipf:
with zipfile.ZipFile(fol, allowZip64=True) as zipf:
zipf.extractall(tmpdir.name)
in_fol = tmpdir.name
istmp = True
Expand Down
6 changes: 3 additions & 3 deletions imctools/scripts/imc2tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def save_imc_to_tiff(imc_acquisition, acquisition='all', tifftype='ome',

if outpath is None:
outpath = os.path.split(imc_acquisition)[0]

if zip_filetype is None:
zip_filetype = ''

Expand Down Expand Up @@ -98,7 +98,7 @@ def convert_imcfolders2tiff(folders, output_folder, common_filepart=None,
fn.endswith(ZIP_FILENDING)):
txtname = os.path.join(fol, fn)
try:
save_imc_to_tiff(txtname,
save_imc_to_tiff(txtname,
outpath=output_folder, **kwargs)
except:
failed_images.append(txtname)
Expand All @@ -116,7 +116,7 @@ def convert_imczip2tiff(zipfn, output_folder, common_filepart=None, **kwargs):
if common_filepart is None:
common_filepart = ''
with temporarydirectory.TemporaryDirectory() as tempdir:
with zipfile.ZipFile(zipfn) as zipf:
with zipfile.ZipFile(zipfn, allowZip64=True) as zipf:
for fn in zipf.namelist():
if (common_filepart in fn) & fn.endswith(IMC_FILENDINGS):
zipf.extract(fn, tempdir)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "imctools"
version = "1.0.2"
version = "1.0.3"
description = "Tools to handle IMC data"
license = "LICENSE"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='imctools',
version='1.0.2',
version='1.0.3',
description='Tools to handle IMC data',
long_description=readme,
author='Vito Zanotelli',
Expand Down

0 comments on commit 7b0800b

Please sign in to comment.