Skip to content

Commit c069475

Browse files
committed
Updated Reqs
1 parent dce8483 commit c069475

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ ipython==8.12.3
6161
isoduration==20.11.0
6262
jedi==0.19.1
6363
Jinja2==3.1.4
64+
joblib==1.5.0
6465
json5==0.9.17
6566
jsonpointer==2.4
6667
jsonschema==4.21.1
@@ -157,6 +158,7 @@ rfc3986-validator==0.1.1
157158
rich==13.9.4
158159
rpds-py==0.18.0
159160
scikit-image==0.25.2
161+
scikit-learn==1.6.1
160162
scipy==1.13.0
161163
seaborn==0.13.2
162164
Send2Trash==1.8.2
@@ -179,6 +181,7 @@ stack-data==0.6.3
179181
superqt==0.7.1
180182
tabulate==0.9.0
181183
terminado==0.18.0
184+
threadpoolctl==3.6.0
182185
tifffile==2024.2.12
183186
tinycss2==1.2.1
184187
tokenize-rt==5.2.0

src/HelperFunctions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ def make_datarray_spot(
184184
dataarray = stack
185185
else:
186186
da = stack
187-
dataarray = np.hstack([dataarray, da])
187+
if dataarray is not None:
188+
dataarray = np.hstack([dataarray, da])
189+
else:
190+
dataarray = da
188191
if dataarray is not None:
189192
dataarray = np.asarray(np.matrix(np.squeeze(dataarray)).transpose())
190193
if len(dataarray.shape) > 1:

src/RASPRoutines.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -672,20 +672,21 @@ def _analysis_loop(
672672
cell_sigma2=self.cell_sigma2,
673673
d=self.d,
674674
)
675-
IO.save_analysis(
676-
to_save,
677-
to_save_largeobjects,
678-
analysis_directory,
679-
imtype,
680-
protein_string,
681-
cell_string,
682-
files,
683-
i,
684-
z_planes,
685-
lo_mask,
686-
cell_mask=cell_mask if cell_analysis else None,
687-
one_savefile=one_savefile,
688-
)
675+
if to_save is not None:
676+
IO.save_analysis(
677+
to_save,
678+
to_save_largeobjects,
679+
analysis_directory,
680+
imtype,
681+
protein_string,
682+
cell_string,
683+
files,
684+
i,
685+
z_planes,
686+
lo_mask,
687+
cell_mask=cell_mask if cell_analysis else None,
688+
one_savefile=one_savefile,
689+
)
689690

690691
start = time.time()
691692

0 commit comments

Comments
 (0)