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 746d26f commit 25d5210
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/napatrackmater/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from lightning import Trainer
from typing import List
from tqdm import tqdm
from .Trackmate import TrackMate

class PointCloudDataset(Dataset):
def __init__(self, clouds: List[PyntCloud], center=True, scale_z=1.0, scale_xy=1.0):
Expand All @@ -41,7 +42,7 @@ def __getitem__(self, idx):
return point_cloud


class Clustering:
class Clustering(TrackMate):
def __init__(
self,
accelerator: str,
Expand All @@ -59,6 +60,7 @@ def __init__(
center=True,
compute_with_autoencoder=True,
):
super().__init__(None, None, None, None, None, None, None, None, seg_image=label_image, autoencoder_model=model)

self.accelerator = accelerator
self.devices = devices
Expand Down

0 comments on commit 25d5210

Please sign in to comment.