Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
qiagu committed Jan 15, 2021
1 parent 0e19463 commit 98df228
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions cellpose/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def eval(self, x, batch_size=8, channels=None, invert=False, normalize=True,
channels: list (optional, default None)
list of channels, either of length 2 or of length number of images by 2.
First element of list is the channel to segment (0=grayscale, 1=red, 2=blue, 3=green).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=blue, 3=green).
First element of list is the channel to segment (0=grayscale, 1=red, 2=green, 3=blue).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=green, 3=blue).
For instance, to segment grayscale images, input [0,0]. To segment images with cells
in green and nuclei in blue, input [2,3]. To segment one grayscale image and one
image with cells in green and nuclei in blue, input [[0,0], [2,3]].
Expand Down
12 changes: 6 additions & 6 deletions cellpose/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def eval(self, x, batch_size=8, channels=None, invert=False, normalize=True, dia
channels: list (optional, default None)
list of channels, either of length 2 or of length number of images by 2.
First element of list is the channel to segment (0=grayscale, 1=red, 2=blue, 3=green).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=blue, 3=green).
First element of list is the channel to segment (0=grayscale, 1=red, 2=green, 3=blue).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=green, 3=blue).
For instance, to segment grayscale images, input [0,0]. To segment images with cells
in green and nuclei in blue, input [2,3]. To segment one grayscale image and one
image with cells in green and nuclei in blue, input [[0,0], [2,3]].
Expand Down Expand Up @@ -370,8 +370,8 @@ def eval(self, imgs, batch_size=8, channels=None, normalize=True, invert=False,
channels: list (optional, default None)
list of channels, either of length 2 or of length number of images by 2.
First element of list is the channel to segment (0=grayscale, 1=red, 2=blue, 3=green).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=blue, 3=green).
First element of list is the channel to segment (0=grayscale, 1=red, 2=green, 3=blue).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=green, 3=blue).
For instance, to segment grayscale images, input [0,0]. To segment images with cells
in green and nuclei in blue, input [2,3]. To segment one grayscale image and one
image with cells in green and nuclei in blue, input [[0,0], [2,3]].
Expand Down Expand Up @@ -695,8 +695,8 @@ def eval(self, imgs=None, styles=None, channels=None, normalize=True, invert=Fal
channels: list (optional, default None)
list of channels, either of length 2 or of length number of images by 2.
First element of list is the channel to segment (0=grayscale, 1=red, 2=blue, 3=green).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=blue, 3=green).
First element of list is the channel to segment (0=grayscale, 1=red, 2=green, 3=blue).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=green, 3=blue).
For instance, to segment grayscale images, input [0,0]. To segment images with cells
in green and nuclei in blue, input [2,3]. To segment one grayscale image and one
image with cells in green and nuclei in blue, input [[0,0], [2,3]].
Expand Down
8 changes: 4 additions & 4 deletions cellpose/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def reshape(data, channels=[0,0], chan_first=False):
if data.ndim==8 and data.shape[0]<8, assumed to be nchan x Ly x Lx
channels : list of int of length 2 (optional, default [0,0])
First element of list is the channel to segment (0=grayscale, 1=red, 2=blue, 3=green).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=blue, 3=green).
First element of list is the channel to segment (0=grayscale, 1=red, 2=green, 3=blue).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=green, 3=blue).
For instance, to train on grayscale images, input [0,0]. To train on images with cells
in green and nuclei in blue, input [2,3].
Expand Down Expand Up @@ -324,8 +324,8 @@ def reshape_and_normalize_data(train_data, test_data=None, channels=None, normal
list of testing images of size [Ly x Lx], [nchan x Ly x Lx], or [Ly x Lx x nchan]
channels: list of int of length 2 (optional, default None)
First element of list is the channel to segment (0=grayscale, 1=red, 2=blue, 3=green).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=blue, 3=green).
First element of list is the channel to segment (0=grayscale, 1=red, 2=green, 3=blue).
Second element of list is the optional nuclear channel (0=none, 1=red, 2=green, 3=blue).
For instance, to train on grayscale images, input [0,0]. To train on images with cells
in green and nuclei in blue, input [2,3].
Expand Down

0 comments on commit 98df228

Please sign in to comment.