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

Binary source combined with xallarap #92

Open
22 of 23 tasks
rpoleski opened this issue Jul 24, 2023 · 3 comments
Open
22 of 23 tasks

Binary source combined with xallarap #92

rpoleski opened this issue Jul 24, 2023 · 3 comments

Comments

@rpoleski
Copy link
Owner

rpoleski commented Jul 24, 2023

Task to be done to have a model with binary source and their full orbital motion (BSPL_xallarap branch):

  • make sure .n_sources for xallarap models depends on whether q_source is defined or not
  • second source trajectory - shift by 180 in xi_u and change xi_semimajor_axis
  • ModelParameters._update_sources() - update and add calls to it
  • source mass ratio in ModelParameters
  • limit source mass ratio to > 0.
  • ModelParameters.source_2_parameters
  • make sure q_source cannot be mixed with, e.g., t_0_X
  • Currently the xallarap parameters of each source are not obtained directly (like, e.g., t_0_1) - do we want that? xi_a_2 is problematic. After discussion with @jenniferyee : No. We should give proper documentation only.
  • tests for FS case - code changed in commit 053a760
  • Model.get_trajectory() (see also issue #94)
  • check all calls to Trajectory()
  • ModelParameters.xallarap_reference_position - define it in a standard way (including docstring)
  • ModelParameters.xallarap_reference_position - unit tests
  • print xallarap reference position while printing ModelParameters
  • properly print q_source
  • test Model.plot_trajectory()
  • test that printing parameters of both sources separately gives the same reference position
  • proper error message for mm.ModelParameters({'t_0': 1, 'u_0': 2, 't_E': 3, 'q_source': 1})
  • proper error message for xallarap parameters with rho_2 but without q_soruce
  • parameter_names.pdf
  • coverage of added code - modelparameters.py line 327
  • flake8, version number, sphinx, README.md

After merge:

  • Example 16 - add new parameters to _set_default_parameters() and _check_fixed_parameters()
@rpoleski
Copy link
Owner Author

@jenniferyee What should be the parameter name for source mass-ratio? Possibilities I can think about:

  1. q_source
  2. q_xi
  3. xi_q
  4. something else?

@jenniferyee
Copy link
Collaborator

jenniferyee commented Jul 24, 2023 via email

@rpoleski
Copy link
Owner Author

Notes for myself on Trajectory:

  • FitData.get_dataset_trajectory - called twice in that file for gradient calculation; that function should be written more consistently
  • MagnificationCurve.trajectory - called only in that file; is MagnificationCurve only for a single source?
  • Model.get_trajectory - called only in FitData.get_dataset_trajectory listed above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants