Skip to content

Commit

Permalink
fix(models): mark apparently unused sample sites
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Sep 13, 2024
1 parent 1bb5b24 commit 4684551
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/pyrovelocity/models/_velocity_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ def u_scale(self):
def s_scale(self):
return self._pyrosample_helper(0.1)

# TODO: remove unused
@PyroSample
def u_inf(self):
return self._pyrosample_helper(0.1)

# TODO: remove unused
@PyroSample
def s_inf(self):
return self._pyrosample_helper(0.1)
Expand All @@ -179,14 +181,17 @@ def s_inf(self):
def dt_switching(self):
return self._pyrosample_helper(1.0)

# TODO: remove unused
@PyroSample
def gene_offset(self):
return Normal(self.zero, self.one)

# TODO: remove unused
@PyroSample
def t_scale(self):
return Normal(self.zero, self.one * 0.1)

# TODO: remove unused
@PyroSample
def latent_time(self):
if self.shared_time & self.plate_size == 2:
Expand All @@ -198,6 +203,7 @@ def latent_time(self):
.to_event(1)
)

# TODO: remove unused
@PyroSample
def cell_time(self):
if self.plate_size == 2 and self.shared_time:
Expand All @@ -208,12 +214,13 @@ def cell_time(self):
def _pyrosample_helper(self, scale: float):
if self.plate_size == 2:
return LogNormal(self.zero, self.one * scale)
return (
LogNormal(self.zero, self.one * 0.1)
.expand((self.num_genes,))
.to_event(1)
.mask(False)
)
else:
return (
LogNormal(self.zero, self.one * 0.1)
.expand((self.num_genes,))
.to_event(1)
.mask(False)
)

@beartype
def get_likelihood(
Expand Down

0 comments on commit 4684551

Please sign in to comment.