Skip to content

Commit ed8e24b

Browse files
committed
Added return type annotations for create_pv_population and lnlikelihood.
1 parent b793f2f commit ed8e24b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exoiris/tslpf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def flux_model(self, pv):
586586
transit_models[i][:, :, :] *= baseline_models[i][:, :, newaxis]
587587
return transit_models
588588

589-
def create_pv_population(self, npop: int = 50):
589+
def create_pv_population(self, npop: int = 50) -> ndarray:
590590
""" Crate a parameter vector population.
591591
Parameters
592592
----------
@@ -604,7 +604,7 @@ def set_radius_ratio_limits(self, kmin, kmax):
604604
for ipb in range(self.nk):
605605
self.set_prior(f'k_{ipb + 1:03d}', 'UP', kmin, kmax)
606606

607-
def lnlikelihood(self, pv):
607+
def lnlikelihood(self, pv) -> ndarray | float :
608608
"""Log likelihood for parameter vector pv.
609609
610610
Parameters

0 commit comments

Comments
 (0)