Skip to content

ENH: Enable compression with Gunzip interface #3472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 16, 2022
Prev Previous commit
Next Next commit
TST: Add test for gzip compression
  • Loading branch information
ghisvail committed May 13, 2022
commit 3b61513a1e6d0e68c231ce0a4d37c3b5512254de
4 changes: 4 additions & 0 deletions nipype/algorithms/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ class Gunzip(BaseInterface):
>>> res = gunzip.run()
>>> res.outputs.out_file # doctest: +ELLIPSIS
'.../tpms_msk.nii'
>>> gunzip = Gunzip(in_file='tpms_msk.nii', compress=True)
>>> res = gunzip.run()
>>> res.outputs.out_file # doctest: +ELLIPSIS
'.../tpms_msk.nii.gz'

.. testcleanup::

Expand Down