Skip to content

Commit

Permalink
fix: solve function docstring signature
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrcia committed Jul 31, 2024
1 parent b622feb commit e92392c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/notebooks/tutorials/analytical-ir.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"metadata": {},
"source": [
"```{note}\n",
"The [core.solve](nuance.core.solve) function returns a function that computes the depth of a transt given its epoch and duration, it has the signature `function(epoch, duration, period=None, depth=None) -> (log_likelihood, weights, variance)`. When the `depth` parameter is set, the function computes the depth of a transit **injected** with this `depth`. Usually `depth=None`, as this feature is only useful for injection-recovery estimates.\n",
"The [core.solve](nuance.core.solve) function returns a function that computes the depth of a transt given its epoch and duration, it has the signature `function(epoch, duration, period=None, depth=None) -> (depth, depth_variance, log_likelihood)`. When the `depth` parameter is set, the function computes the depth of a transit **injected** with this `depth`. Usually `depth=None`, as this feature is only useful for injection-recovery estimates.\n",
"```"
]
},
Expand Down
2 changes: 1 addition & 1 deletion nuance/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def solve(time, flux, gp=None, X=None, model=None):
callable
function that computes the log likelihood of data assuming it is drawn from a
Gaussian Process with a mean linear model. Signature is:
:code:`function(epoch, duration, period=None) -> (log_likelihood, weights, variance)`
``function(epoch, duration, period=None) -> (depth, depth_variance, log_likelihood)``
"""

X, gp, model = check_default(time, X, gp, model)
Expand Down

0 comments on commit e92392c

Please sign in to comment.