Skip to content

Commit ce2cb17

Browse files
authored
Merge pull request #1410 from flatironinstitute/fix-docs
Fix docstrings important for seeded initialization
2 parents 3d1f3ed + cf0dd62 commit ce2cb17

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

caiman/source_extraction/cnmf/cnmf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def __init__(self, n_processes, k=5, gSig=[4, 4], gSiz=None, merge_thresh=0.8, p
109109
p: int
110110
order of the autoregressive process used to estimate deconvolution
111111
112-
Ain: ndarray
113-
if know, it is the initial estimate of spatial filters
112+
Ain: np.ndarray
113+
if known, it is the initial estimate of spatial filters. Array must be of type `bool` in 'F' order of shape: [n_pixels, n_components]
114114
115115
ssub: int
116116
downsampleing factor in space

caiman/source_extraction/cnmf/estimates.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def __init__(self, A=None, b=None, C=None, f=None, R=None, dims=None):
3636
3737
Args:
3838
A: scipy.sparse.csc_matrix (dimensions: # of pixels x # components)
39-
set of spatial footprints. Each footprint is represented in a column of A, flattened with order = 'F'
39+
set of spatial footprints. Each footprint is represented in a column of A, flattened with order = 'F'.
40+
Must be a np.ndarray of type `bool` if used for manual seeded initialization.
4041
4142
C: np.ndarray (dimensions: # of components x # of timesteps)
4243
set of temporal traces (each row of C corresponds to a trace)

0 commit comments

Comments
 (0)