From 85da83e5837f1eaccb43d3cece917a55cee05936 Mon Sep 17 00:00:00 2001 From: Jonathan Daniel Date: Tue, 12 Jan 2021 17:49:19 +0200 Subject: [PATCH 01/13] FIX: Added a few missing commas to deprecations Backports gh-991 --- nibabel/gifti/gifti.py | 6 +++--- nibabel/volumeutils.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nibabel/gifti/gifti.py b/nibabel/gifti/gifti.py index 0f509eaa9d..879b63083d 100644 --- a/nibabel/gifti/gifti.py +++ b/nibabel/gifti/gifti.py @@ -43,7 +43,7 @@ def from_dict(klass, data_dict): @deprecate_with_version( 'get_metadata method deprecated. ' - "Use the metadata property instead." + "Use the metadata property instead.", '2.1', '4.0') def get_metadata(self): return self.metadata @@ -155,7 +155,7 @@ def __init__(self, key=0, red=None, green=None, blue=None, alpha=None): @deprecate_with_version( 'get_rgba method deprecated. ' - "Use the rgba property instead." + "Use the rgba property instead.", '2.1', '4.0') def get_rgba(self): return self.rgba @@ -523,7 +523,7 @@ def print_summary(self): @deprecate_with_version( 'get_metadata method deprecated. ' - "Use the metadata property instead." + "Use the metadata property instead.", '2.1', '4.0') def get_metadata(self): return self.meta.metadata diff --git a/nibabel/volumeutils.py b/nibabel/volumeutils.py index 7547a12b31..327706b626 100644 --- a/nibabel/volumeutils.py +++ b/nibabel/volumeutils.py @@ -1551,7 +1551,7 @@ class BinOpener(Opener): __doc__ = Opener.__doc__ @deprecate_with_version('BinOpener class deprecated. ' - "Please use Opener class instead." + "Please use Opener class instead.", '2.1', '4.0') def __init__(self, *args, **kwargs): return super(BinOpener, self).__init__(*args, **kwargs) From f65aaa3eabffa73419c0252de635585516e3739f Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Thu, 4 Feb 2021 17:14:17 +0000 Subject: [PATCH 02/13] DOC: fix grammar of headings in CoC The document says: ``` ... ``` but later the headings become imperatives: ``` ``` Imperatives changed to adjectives. Backport of gh-996 --- .github/CODE_OF_CONDUCT.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index b3e73ac8c8..a872f9dce0 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -30,7 +30,7 @@ implementation of methods, on finding technical solutions, establishing best pra otherwise. We are accepting of all who wish to take part in our activities, fostering an environment where anyone can participate and everyone can make a difference. -#### Be collaborative! +#### Collaborative Our work will be used by other people, and in turn we will depend on the work of others. When we make something for the benefit of others, we are willing to explain to others how it works, so that @@ -38,7 +38,7 @@ they can build on the work to make it even better. We are willing to provide con on the work of others and accept criticism of our own work, as the experiences and skill sets of other members contribute to the whole of our efforts. -#### Be inquisitive! +#### Inquisitive Nobody knows everything! Asking questions early avoids many problems later, so questions are encouraged, though they may be directed to the appropriate forum. Those who are asked should be @@ -51,7 +51,7 @@ efforts of others, keeping in mind that often-times the labor was completed simp the community. We are attentive in our communications, whether in person or online, and we are tactful when approaching differing views. -#### Be careful in the words that you choose: +#### Careful in the words we choose We value courtesy, kindness and inclusiveness in all our interactions. Therefore, we take responsibility for our own speech. In particular, we avoid: @@ -66,7 +66,7 @@ responsibility for our own speech. In particular, we avoid: * Repeated harassment of others. In general, if someone asks you to stop, then stop. * Advocating for, or encouraging, any of the above behaviour. -#### Try to be concise in communication +#### Concise Keep in mind that what you write once will be read by many others. Writing a short email means people can understand the conversation as efficiently as possible. Even short emails should always From 295a79b33903bc00209f26c1364c266369f6ef4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Tue, 27 Apr 2021 10:29:41 +0200 Subject: [PATCH 03/13] Require setuptools, nibabel/tests/test_init.py, nibabel/__init__.py, nibabel/testing/__init__.py import pkg_resources Backport of gh-1009 --- min-requirements.txt | 1 + requirements.txt | 1 + setup.cfg | 1 + 3 files changed, 3 insertions(+) diff --git a/min-requirements.txt b/min-requirements.txt index 811270d582..a78a74b00e 100644 --- a/min-requirements.txt +++ b/min-requirements.txt @@ -1,3 +1,4 @@ # Auto-generated by tools/update_requirements.py numpy ==1.14 packaging ==14.3 +setuptools diff --git a/requirements.txt b/requirements.txt index 06e3bf4989..6d8b066ad2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ # Auto-generated by tools/update_requirements.py numpy >=1.14 packaging >=14.3 +setuptools diff --git a/setup.cfg b/setup.cfg index a8bb725a6f..c8b7c10c8e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,6 +32,7 @@ python_requires = >=3.6 install_requires = numpy >=1.14 packaging >=14.3 + setuptools zip_safe = False packages = find: From f436b732e9dad33d52edbc4a75681251f70f15f6 Mon Sep 17 00:00:00 2001 From: Lea Waller Date: Thu, 5 Aug 2021 07:34:20 +0200 Subject: [PATCH 04/13] Fix #1035 unclosed file warning in `GiftiImage` - Change as proposed by @effigies Test for `ResourceWarning` in `GiftiImage` Backport of gh-1038 --- nibabel/gifti/gifti.py | 4 ++-- nibabel/gifti/tests/test_gifti.py | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/nibabel/gifti/gifti.py b/nibabel/gifti/gifti.py index 879b63083d..370e76e8f7 100644 --- a/nibabel/gifti/gifti.py +++ b/nibabel/gifti/gifti.py @@ -877,8 +877,8 @@ def to_file_map(self, file_map=None): """ if file_map is None: file_map = self.file_map - f = file_map['image'].get_prepare_fileobj('wb') - f.write(self.to_xml()) + with file_map['image'].get_prepare_fileobj('wb') as f: + f.write(self.to_xml()) @classmethod def from_file_map(klass, file_map, buffer_size=35000000): diff --git a/nibabel/gifti/tests/test_gifti.py b/nibabel/gifti/tests/test_gifti.py index 2d60482c59..ffdb113cf3 100644 --- a/nibabel/gifti/tests/test_gifti.py +++ b/nibabel/gifti/tests/test_gifti.py @@ -6,6 +6,8 @@ import numpy as np +from nibabel.tmpdirs import InTemporaryDirectory + from ... import load from .. import (GiftiImage, GiftiDataArray, GiftiLabel, GiftiLabelTable, GiftiMetaData, GiftiNVPairs, @@ -40,7 +42,7 @@ def test_agg_data(): assert_array_equal(surf_gii_img.agg_data('pointset'), point_data) assert_array_equal(surf_gii_img.agg_data('triangle'), triangle_data) - assert_array_equal(func_gii_img.agg_data('time series'), func_data) + assert_array_equal(func_gii_img.agg_data('time series'), func_data) assert_array_equal(shape_gii_img.agg_data('shape'), shape_data) assert surf_gii_img.agg_data('time series') == () @@ -443,3 +445,11 @@ def test_darray_dtype_coercion_failures(): da_copy = gii_copy.darrays[0] assert np.dtype(da_copy.data.dtype) == np.dtype(darray_dtype) assert_array_equal(da_copy.data, da.data) + + +def test_gifti_file_close(): + gii = load(test_data('gifti', 'ascii.gii')) + with pytest.WarningsRecorder() as record: + with InTemporaryDirectory(): + gii.to_filename('test.gii') + assert not any(isinstance(r.message, ResourceWarning) for r in record.list) From 1fc2affb5019be8015b3716278156437508d592e Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 22 Aug 2021 08:36:28 +0300 Subject: [PATCH 05/13] FIX: LGTM error: Illegal raise Illegal class 'int' raised; will result in a TypeError being raised instead. Backport of gh-1048 --- nibabel/cmdline/dicomfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nibabel/cmdline/dicomfs.py b/nibabel/cmdline/dicomfs.py index 6e53be103b..e091a6de41 100644 --- a/nibabel/cmdline/dicomfs.py +++ b/nibabel/cmdline/dicomfs.py @@ -172,9 +172,9 @@ def open(self, path, flags): elif isinstance(matched_path, tuple): self.fhs[i] = matched_path[1]() else: - raise -errno.EFTYPE + return -errno.EFTYPE return FileHandle(i) - raise -errno.ENFILE + return -errno.ENFILE # not done def read(self, path, size, offset, fh): From 35a02574740b7af746d0f4afbe7f6c81c80be3c6 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 9 Aug 2021 20:20:19 +0200 Subject: [PATCH 06/13] FIX: LGTM alerts FIX: LGTM error: Special method has incorrect signature Too few parameters for special method __getitem__, which has 1 parameter, but should have 2, in class FileBasedImage. https://lgtm.com/rules/7850093/ FIX: LGTM warning: Unnecessary 'else' clause in loop This 'for' statement has a redundant 'else' as no 'break' is present in the body. https://lgtm.com/rules/5980098/ FIX: LGTM warning: Variable defined multiple times This assignment to 'patient_info' is unnecessary as it is redefined here before this value is used. https://lgtm.com/rules/1800095/ FIX: LGTM recommendations: Unused import Import of '...' is not used. https://lgtm.com/rules/6770079/ Backport of gh-1043 --- nibabel/cifti2/cifti2.py | 3 +-- nibabel/cmdline/dicomfs.py | 2 +- nibabel/filebasedimages.py | 2 +- nibabel/pydicom_compat.py | 1 - nisext/py3builder.py | 3 --- setup.py | 1 - tools/make_tarball.py | 2 -- tools/mpkg_wrapper.py | 2 -- 8 files changed, 3 insertions(+), 13 deletions(-) diff --git a/nibabel/cifti2/cifti2.py b/nibabel/cifti2/cifti2.py index 0b2b7f2a9a..948fe0d0d0 100644 --- a/nibabel/cifti2/cifti2.py +++ b/nibabel/cifti2/cifti2.py @@ -1156,8 +1156,7 @@ def get_index_map(self, index): a2md = self._get_indices_from_mim(v) if index in a2md: return v - else: - raise Cifti2HeaderError("Index not mapped") + raise Cifti2HeaderError("Index not mapped") def _validate_new_mim(self, value): if value.applies_to_matrix_dimension is None: diff --git a/nibabel/cmdline/dicomfs.py b/nibabel/cmdline/dicomfs.py index e091a6de41..d4c9d8ff1f 100644 --- a/nibabel/cmdline/dicomfs.py +++ b/nibabel/cmdline/dicomfs.py @@ -71,7 +71,7 @@ def get_paths(self): for study in dft.get_studies(self.dicom_path, self.followlinks): pd = paths.setdefault(study.patient_name_or_uid(), {}) patient_info = 'patient information\n' - patient_info = f'name: {study.patient_name}\n' + patient_info += f'name: {study.patient_name}\n' patient_info += f'ID: {study.patient_id}\n' patient_info += f'birth date: {study.patient_birth_date}\n' patient_info += f'sex: {study.patient_sex}\n' diff --git a/nibabel/filebasedimages.py b/nibabel/filebasedimages.py index 006b70d615..4af36cb04f 100644 --- a/nibabel/filebasedimages.py +++ b/nibabel/filebasedimages.py @@ -202,7 +202,7 @@ def __init__(self, header=None, extra=None, file_map=None): def header(self): return self._header - def __getitem__(self): + def __getitem__(self, key): """ No slicing or dictionary interface for images """ raise TypeError("Cannot slice image objects.") diff --git a/nibabel/pydicom_compat.py b/nibabel/pydicom_compat.py index c0b2f57532..5f827e2bbf 100644 --- a/nibabel/pydicom_compat.py +++ b/nibabel/pydicom_compat.py @@ -23,7 +23,6 @@ # Module has (apparently) unused imports; stop flake8 complaining # flake8: noqa -import numpy as np from .deprecated import deprecate_with_version have_dicom = True diff --git a/nisext/py3builder.py b/nisext/py3builder.py index 4f82a8cfb2..7bcaf2348c 100644 --- a/nisext/py3builder.py +++ b/nisext/py3builder.py @@ -1,9 +1,6 @@ """ distutils utilities for porting to python 3 within 2-compatible tree """ -import sys -import re - try: from distutils.command.build_py import build_py_2to3 except ImportError: diff --git a/setup.py b/setup.py index 9c281a032c..29fb3642da 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,6 @@ """Build helper.""" import sys -import os from setuptools import setup import versioneer diff --git a/tools/make_tarball.py b/tools/make_tarball.py index 149837aaf5..afbde3d48d 100755 --- a/tools/make_tarball.py +++ b/tools/make_tarball.py @@ -4,8 +4,6 @@ import commands import os -import sys -import shutil from toollib import * diff --git a/tools/mpkg_wrapper.py b/tools/mpkg_wrapper.py index ad956696c8..17f39041dc 100644 --- a/tools/mpkg_wrapper.py +++ b/tools/mpkg_wrapper.py @@ -16,8 +16,6 @@ __docformat__ = 'restructuredtext' import sys -import setuptools -import bdist_mpkg def main(): del sys.argv[0] From 298ac810e0c44568e83ee6f492e16e0ecd576f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anibal=20S=C3=B3lon?= Date: Thu, 16 Sep 2021 14:50:33 -0500 Subject: [PATCH 07/13] FIX: Suggest nibabel.save() on calls to deprecated giftiio.write() Backport of gh-1055 --- nibabel/gifti/giftiio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nibabel/gifti/giftiio.py b/nibabel/gifti/giftiio.py index 73c19450ad..46219e8c1d 100644 --- a/nibabel/gifti/giftiio.py +++ b/nibabel/gifti/giftiio.py @@ -34,7 +34,7 @@ def read(filename): @deprecate_with_version('giftiio.write function deprecated. ' - "Use nibabel.load() instead.", + "Use nibabel.save() instead.", '2.1', '4.0') def write(image, filename): """ Save the current image to a new file From 51e60384ba0c8bb24a26dddde7be8a15f6ae8c82 Mon Sep 17 00:00:00 2001 From: Andrew Van Date: Thu, 30 Sep 2021 12:05:40 -0500 Subject: [PATCH 08/13] FIX: Reshape CIFTI-2 affines to 4x4 when encoded as row-major sequence fix cifti2 transform loading without newlines add test for space separated affine Backport of gh-1059 --- nibabel/cifti2/parse_cifti2.py | 3 ++- nibabel/cifti2/tests/test_cifti2io_header.py | 5 +++++ nibabel/tests/data/row_major.dconn.nii | Bin 0 -> 1888 bytes 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 nibabel/tests/data/row_major.dconn.nii diff --git a/nibabel/cifti2/parse_cifti2.py b/nibabel/cifti2/parse_cifti2.py index 3257000856..4421632cea 100644 --- a/nibabel/cifti2/parse_cifti2.py +++ b/nibabel/cifti2/parse_cifti2.py @@ -538,7 +538,8 @@ def flush_chardata(self): # conversion to numpy array c = BytesIO(data.strip().encode('utf-8')) transform = self.struct_state[-1] - transform.matrix = np.loadtxt(c, dtype=np.float64) + matrix = np.loadtxt(c, dtype=np.float64) + transform.matrix = matrix.reshape(4, 4) c.close() elif self.write_to == 'Label': diff --git a/nibabel/cifti2/tests/test_cifti2io_header.py b/nibabel/cifti2/tests/test_cifti2io_header.py index df4fe10fcd..6d59dfd75b 100644 --- a/nibabel/cifti2/tests/test_cifti2io_header.py +++ b/nibabel/cifti2/tests/test_cifti2io_header.py @@ -41,6 +41,11 @@ datafiles = [DATA_FILE2, DATA_FILE3, DATA_FILE4, DATA_FILE5, DATA_FILE6] +def test_space_separated_affine(): + img = ci.Cifti2Image.from_filename( + pjoin(NIBABEL_TEST_DATA, "row_major.dconn.nii")) + + def test_read_nifti2(): # Error trying to read a CIFTI-2 image from a NIfTI2-only image. filemap = ci.Cifti2Image.make_file_map() diff --git a/nibabel/tests/data/row_major.dconn.nii b/nibabel/tests/data/row_major.dconn.nii new file mode 100644 index 0000000000000000000000000000000000000000..a2aa2afd1e8220f53edc89b6006e7582018501db GIT binary patch literal 1888 zcmb1PVqnPAHe%rAlHw9zP+(wVfB;4UG#6AJM#I!Yg$Ym}>>&z>r!TM~8wt~gEH=s} zB?NYIGcY*k=jFMi<`t*n&JdoXphXkbHVo2%DQCs|RTbDN4*MPRlRKO)LSr1LCZ({EE~Zs9QX} zyi4*UBBK<1Q%h2dTq_Fl^HTFlY?XA4mF$cZ41iGA(8wG}fjCemh@)#}0hTpTFtpJp z))H92fgGj}@ddJwQ&D1Oo^O6iY7Qu*QY-w^(uz}oZUM##nD3ll3UZo>k^)!}a_E5r z3le%^{t=*XQvjP5TvAk;TvA#D59Z*Ipit+K&>+`%XaArOV2Jy;x`m(z8d?C^nOQ2B z8Y`F>E0`NV8D{1RrY0Z}U@(9gApf9*DzeA)5k5l}Mu?*N7wAD`|C&+Nzd@ev9z=N< z>^+c&;r=uQdl(oNUN06PwYHvmpf&)?bJ1;c8mM|*aipL*vW1ywPRm$)vhSX z+csSy-G1`jLi?_u-*!RuzwG*7uCaTUnP&frcdwo6zQ?vR_qp5O>^^SyrncN}^4W8C zpF5A*GO4iJS!os8+Z-*izwaPypL)B*RyC`@&iLXMyJMC?_M78sY<5{1*zV-kwaeF0 zv)2r=wqJKi)xPrnGrMCPJoYi$r`s7Uv9r&qb+l`_pl=`f%G!>3)gHSp4F&r@d))0^ xRF~P>zR9(hp6X_Q(B`MzZH@bO*AG0gyMA+y-2z=E`?m*~?0EwM?S-nm?Ewpr!rlM? literal 0 HcmV?d00001 From 906f55d4f8b293d96de21e1501bedfbe158ebcf9 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Mon, 7 Feb 2022 09:50:50 -0500 Subject: [PATCH 09/13] DOC: Update changelog for 3.2.2 --- Changelog | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Changelog b/Changelog index e352b52b44..3bcbb46a98 100644 --- a/Changelog +++ b/Changelog @@ -25,6 +25,36 @@ Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM). References like "pr/298" refer to github pull request numbers. +3.2.2 (Monday 7 February 2022) +================================= + +Bug fix release in the 3.2.x series. + +Bug fixes +--------- +* Reshape CIFTI-2 affines to 4x4 when encoded as row-major sequence (pr/1059) + (Andrew Van, reviewed by CM) +* Suggest nibabel.save() on calls to deprecated giftiio.write() (pr/1055) + (Anibal Solon, reviewed by CM) +* Various bugs and style issues detected by LGTM (pr/1043, pr/1048) + (Dimitri Papadopoulos, reviewed by CM) +* Resolve unclosed file warning in GiftiImage (pr/1038) (Lea Waller, reviewed by CM) +* Fix typos preventing deprecation warnings from being raised (pr/991) + (Jonathan Daniel, reviewed by MB) +* Work around numpy SystemError to maintain expected error types (pr/1051) (CM) +* Use more constrained mock when testing optpkg (pr/983) (CM, reviewed by YOH) + +Maintenance +----------- +* Add setuptools requirement to match usage (pr/1009) + (Tomáš Hrnčiar, reviewed by CM) +* Fix grammar of headings in CoC (pr/996) (MB, reviewed by CM, Ariel Rokem) +* Set minimum pydicom to 1.0.0 (pr/1050) (CM) +* Submit coverage to codecov via pinned PyPI package (pr/1008) (CM) +* Upgrade versioneer to 0.19 (pr/967) (CM) +* Migrate to GitHub actions (pr/972) (CM, reviewed by Serge Koudoro) + + 3.2.1 (Saturday 28 November 2020) ================================= From 668cbeaaa27e7ca7a99e1695ed639accf2b9c5c9 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Mon, 7 Feb 2022 09:54:52 -0500 Subject: [PATCH 10/13] MNT: Update mailmap, zenodo --- .mailmap | 3 ++- .zenodo.json | 25 ++++++++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.mailmap b/.mailmap index d7f7b6f4f3..f1a7753360 100644 --- a/.mailmap +++ b/.mailmap @@ -26,7 +26,8 @@ Christopher J. Markiewicz Christopher J. Markiewicz CindeeM Cindee Madison cindeem Demian Wassermann Demian Wassermann -Dimitri Papadopoulos Orfanos Dimitri Papadopoulos +Dimitri Papadopoulos Orfanos +Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Eric Larson Eric89GXL Eric Larson larsoner Fernando Pérez-García Fernando diff --git a/.zenodo.json b/.zenodo.json index a53025928c..572f05d12e 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -141,10 +141,10 @@ "orcid": "0000-0001-9791-4404" }, { - "name": "Lepp\u00e4kangas, Jaakko" + "name": "S\u00f3lon, Anibal" }, { - "name": "S\u00f3lon, Anibal" + "name": "Lepp\u00e4kangas, Jaakko" }, { "name": "van den Bosch, Jasper J.F." @@ -228,6 +228,11 @@ { "name": "St-Jean, Samuel" }, + { + "affiliation": "CEA", + "name": "Papadopoulos Orfanos, Dimitri", + "orcid": "0000-0002-1242-8990" + }, { "name": "Panfilov, Egor", "orcid": "0000-0002-2500-6375" @@ -286,6 +291,9 @@ { "name": "Baratz, Zvi" }, + { + "name": "Van, Andrew" + }, { "affiliation": "Hospital for Sick Children", "name": "Darwin, Benjamin C" @@ -298,11 +306,6 @@ { "name": "Gauthier, Carl" }, - { - "affiliation": "CEA", - "name": "Papadopoulos Orfanos, Dimitri", - "orcid": "0000-0002-1242-8990" - }, { "name": "Solovey, Igor" }, @@ -326,6 +329,11 @@ "affiliation": "National Technical University of Athens, Greece", "name": "Raktivan, Konstantinos" }, + { + "affiliation": "Charite Universitatsmedizin Berlin, Germany", + "name": "Waller, Lea", + "orcid": "0000-0002-3239-6957" + }, { "name": "Cal\u00e1bkov\u00e1, Mark\u00e9ta" }, @@ -346,6 +354,9 @@ { "name": "Roos, Thomas" }, + { + "name": "Hrn\u010diar, Tom\u00e1\u0161" + }, { "affiliation": "National Institute of Mental Health and Neuro-Sciences, India", "name": "Reddam, Venkateswara Reddy", From 599dd9ecab6d6ca4c0616a9c4917c5e394e31215 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Mon, 7 Feb 2022 09:57:04 -0500 Subject: [PATCH 11/13] DOC: Update copyright year --- doc/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 1fe335f63f..6155d0bc3b 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -92,7 +92,7 @@ # General information about the project. project = u'NiBabel' -copyright = f"2006-2020, {metadata['maintainer']} <{metadata['author_email']}>" +copyright = f"2006-2022, {metadata['maintainer']} <{metadata['author_email']}>" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the From 7f7661d610920a48084e663224c20d6da6fa6aa8 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Mon, 7 Feb 2022 10:08:55 -0500 Subject: [PATCH 12/13] =?UTF-8?q?DOC:=20Add=20Lea,=20Tom=C3=A1=C5=A1=20and?= =?UTF-8?q?=20Andrew=20to=20contributor=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/source/index.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/source/index.rst b/doc/source/index.rst index 1bbc0baf15..4e1821cae8 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -114,6 +114,9 @@ contributed code and discussion (in rough order of appearance): * Markéta Calábková * Carl Gauthier * Julian Klug +* Lea Waller +* Tomáš Hrnčiar +* Andrew Van License reprise =============== From 96e122935541f7e7c54d8296080631aceb85be1e Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Mon, 7 Feb 2022 11:31:18 -0500 Subject: [PATCH 13/13] MNT: Pin pytest<7 for python 3.6 --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index c8b7c10c8e..b88ca8702a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -59,6 +59,7 @@ style = test = coverage pytest !=5.3.4 + pytest <7 ; python_version == "3.6" pytest-cov pytest-doctestplus !=0.9.0 all =