Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exposure time support for jktebop backend #702

Closed

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Feb 15, 2023

This implements support for exposure times via fti_oversample in the jktebop alternate backend.

TODO:

  • decide whether this should be in a bugfix (in which case needs API docs stating when it became available) or the next 2.5 release (in which case would need to be rebased)
  • use filters instead of twigs (probably requires refactor in compute.py so that all backends that support exposure time can pull in those parameters)
  • remove commented code
  • test cases

Closes #700

1. To calculate RV semi-amplitude (K), system semi-major-axis was used previously instead of component sma (sma vs. center of mass). Before, any change in the mass ratio had no effect on the modelled rvs.

2. Small left-over discrepancy corrected, as RV amplitude K did not take eccentricity into account. Now includes term 1/(sqrt(1-ecc^2)).
…ameters fti_method, fti_oversample, and exptime.

The implementation uses twigs since b.get_value() would fail in odd ways:
  - Either fails because returns a parameter set with both PHOEBE and JKTEBOP parameters
  - Or fails because jktebop parameters are not found if "compute" or "kind" is specified

For some reason, when compute is instead specified using twigs, it works without any issue.

Uses a try except statement to check if fti_oversample and exptime exists, instead of an if statement. Should probably be improved.

Checked that in this implementation, fti_oversample accurately does not exist for RV curves, meaning it is done on a dataset-by-dataset basis.
@kecnry kecnry linked an issue Feb 16, 2023 that may be closed by this pull request
@kecnry kecnry deleted the branch phoebe-project:bugfix-2.4.11 April 13, 2023 00:07
@kecnry kecnry closed this Apr 13, 2023
@kecnry kecnry reopened this Apr 13, 2023
@kecnry kecnry changed the base branch from bugfix-2.4.10 to bugfix-2.4.11 April 13, 2023 00:13
@kecnry kecnry closed this Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jktebop wrapper support for exposure times
2 participants