Skip to content

Commit

Permalink
handle negative eigenvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlab committed Dec 4, 2023
1 parent 55b913c commit 746d26f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/napatrackmater/Trackmate.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pathlib import Path
import concurrent
from .clustering import Clustering

from lightning import Trainer

class TrackMate:
def __init__(
Expand Down Expand Up @@ -59,6 +59,7 @@ def __init__(
self.center = center
self.compute_with_autoencoder = compute_with_autoencoder
self.latent_features = latent_features
self.pretrainer = Trainer(accelerator=self.accelerator, devices=self.devices)
if image is not None:
self.image = image.astype(np.uint8)
else:
Expand Down
1 change: 0 additions & 1 deletion src/napatrackmater/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def _latent_computer(self, i, dim):
def _create_cluster_labels(self):

ndim = len(self.label_image.shape)
self.pretrainer = Trainer(accelerator=self.accelerator, devices=self.devices)
if ndim == 2:

labels, centroids, clouds, marching_cube_points = _label_cluster(
Expand Down

0 comments on commit 746d26f

Please sign in to comment.