Skip to content

Commit

Permalink
Merge pull request #1044 from DimitriPapadopoulos/codespell
Browse files Browse the repository at this point in the history
DOC: Typos found by codespell
  • Loading branch information
effigies authored Aug 9, 2021
2 parents c162e65 + 332b6b1 commit 75af371
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ New features

Bug fixes
---------
* Delay import of h5py until neded (pr/889) (YOH, reviewed by CM)
* Delay import of h5py until needed (pr/889) (YOH, reviewed by CM)

Maintenance
-----------
Expand Down Expand Up @@ -168,7 +168,7 @@ Maintenance
Bug fixes
---------
* Attempt to find versioneer version when building docs (pr/894) (CM)
* Delay import of h5py until neded (backport of pr/889) (YOH, reviewed by CM)
* Delay import of h5py until needed (backport of pr/889) (YOH, reviewed by CM)

Maintenance
-----------
Expand Down Expand Up @@ -252,7 +252,7 @@ API changes and deprecations
----------------------------
* Fully remove deprecated ``checkwarns`` and ``minc`` modules. (pr/852) (CM)
* The ``keep_file_open`` argument to file load operations and ``ArrayProxy``\s
no longer acccepts the value ``"auto"``, raising a ``ValueError``. (pr/852)
no longer accepts the value ``"auto"``, raising a ``ValueError``. (pr/852)
(CM)
* Deprecate ``ArraySequence.data`` in favor of ``ArraySequence.get_data()``,
which will return a copy. ``ArraySequence.data`` now returns a read-only
Expand Down
2 changes: 1 addition & 1 deletion doc/source/devel/biaps/biap_0004.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ wrapping the `DcmMeta` in the Extension API?
Status
------

Resolved. We now have a seperate `DcmMeta` object which inherits from
Resolved. We now have a separate `DcmMeta` object which inherits from
`OrderedDict` and contains all of the functionality previously in
`DcmMetaExtension` except those related to acting as a Nifti1Extension.
The `DcmMetaExtension` now provides just the functionality for being
Expand Down
2 changes: 1 addition & 1 deletion doc/source/devel/biaps/biap_0006.rst
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ which ends up being similar to the `time_axis_index` option above.
.. _BV file format overview: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/382-developer-guide-26-file-formats-overview.html
.. _vmr format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/385-developer-guide-26-the-format-of-vmr-files.html
.. _STC format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/384-developer-guide-26-the-format-of-stc-files.html
.. _VTC format defintion: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/379-users-guide-23-the-format-of-vtc-files.html.
.. _VTC format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/379-users-guide-23-the-format-of-vtc-files.html.
.. _NR-VMP format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/377-users-guide-23-the-format-of-nr-vmp-files.html;
.. _AR-VMP format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/376-users-guide-23-the-format-of-ar-vmp-files.html
.. _SMP format definition: : http://support.brainvoyager.com/automation-aamp-development/23-file-formats/476-the-format-of-smp-files.html.
Expand Down
2 changes: 1 addition & 1 deletion nibabel/gifti/parse_gifti_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def read_data_block(darray, fname, data, mmap):
# mmap=False or np.memmap failed
if newarr is None:
# We can replace this with a call to np.fromfile in numpy>=1.17,
# as an "offset" paramter was added in that version.
# as an "offset" parameter was added in that version.
with open(ext_fname, 'rb') as f:
f.seek(darray.ext_offset)
nbytes = np.prod(darray.dims) * dtype().itemsize
Expand Down
4 changes: 2 additions & 2 deletions nibabel/tests/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_diff_values_array():
assert are_values_different(array([0, inf]), array([inf, 0]))

# we will allow for types to be of different endianness but the
# same in "instnatiation" type and value
# same in "instantiation" type and value
assert not are_values_different(np.array(1, dtype='<i4'), np.array(1, dtype='>i4'))
# but do report difference if instantiation type is different:
assert are_values_different(np.array(1, dtype='<i4'), np.array(1, dtype='<i2'))
assert are_values_different(np.array(1, dtype='<i4'), np.array(1, dtype='<i2'))
4 changes: 2 additions & 2 deletions nibabel/tests/test_loadsave.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_read_img_data():
]
fnames_test += [pathlib.Path(p) for p in fnames_test]
for fname in fnames_test:
# os.path.join doesnt work between str / os.PathLike in py3.5
# os.path.join doesn't work between str / os.PathLike in py3.5
fpath = pjoin(data_path, str(fname))
if isinstance(fname, pathlib.Path):
fpath = pathlib.Path(fpath)
Expand All @@ -56,7 +56,7 @@ def test_read_img_data():
up_fpath = pjoin(tmpdir, str(fname).upper())
if isinstance(fname, pathlib.Path):
up_fpath = pathlib.Path(up_fpath)
# shutil doesnt work with os.PathLike in py3.5
# shutil doesn't work with os.PathLike in py3.5
shutil.copyfile(str(fpath), str(up_fpath))
img = load(up_fpath)
assert_array_equal(img.dataobj, data)
Expand Down

0 comments on commit 75af371

Please sign in to comment.