Skip to content

Commit

Permalink
Fix typos in comments
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Felder <alessandrofelder@users.noreply.github.com>
  • Loading branch information
dstansby and alessandrofelder committed May 12, 2022
1 parent c3f2af7 commit a780842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion btrack/napari/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def reader_function(path: PathLike) -> List[LayerDataTuple]:
(data, metadata, layer_type), where data is a numpy array, metadata is
a dict of keyword arguments for the corresponding viewer.add_* method
in napari, and layer_type is a lower-case string naming the type of
layer. Both "meta", and "layer_type" are optional. napari will default
layer. Both "metadata" and "layer_type" are optional. napari will default
to layer_type=="image" if not provided
"""
# handle both a string and a list of strings
Expand Down
4 changes: 2 additions & 2 deletions tests/napari/test_reader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

# Only run tests is napari is installed
# Only run tests if napari is installed
napari_reader = pytest.importorskip("btrack.napari.reader")


Expand All @@ -11,6 +11,6 @@ def test_reader(hdf5_file_path):
tracks = reader(hdf5_file_path)
assert isinstance(tracks, list)
# TODO: update the HDF file so that it has some tracks that can be read.
# For now this just checks that the reader can read an emtpy HDF5 file
# For now this just checks that the reader can read an empty HDF5 file
# with no tracks in it
assert len(tracks) == 0

0 comments on commit a780842

Please sign in to comment.