How to use the phoebe.parameters.parameters.ConstraintParameter function in phoebe

To help you get started, we’ve selected a few phoebe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def t0_perpass_to_supconj(t0_perpass, period, ecc, per0, dpdt, dperdt, t0):
    return ConstraintParameter(t0_perpass._bundle, "t0_perpass_to_supconj({}, {}, {}, {}, {}, {}, {})".format(_get_expr(t0_perpass), _get_expr(period), _get_expr(ecc), _get_expr(per0), _get_expr(dpdt), _get_expr(dperdt), _get_expr(t0)))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def ecosw2per0(ecc, ecosw):
    return ConstraintParameter(ecc._bundle, "ecosw2per0({}, {})".format(_get_expr(ecc), _get_expr(ecosw)))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def _times_to_phases(times, period, dpdt, t0, t0_supconj, t0_perpass, t0_ref):
    return ConstraintParameter(times._bundle, "times_to_phases({}, {}, {}, {}, {}, {}, {})".format(_get_expr(times), _get_expr(period), _get_expr(dpdt), _get_expr(t0), _get_expr(t0_supconj), _get_expr(t0_perpass), _get_expr(t0_ref)))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def arcsin(param):
    """
    Allows using the arcsin function in a constraint

    Arguments
    ------------
    * `param` ()

    Returns
    ---------
    * ()
    """
    return ConstraintParameter(param._bundle, "arcsin({})".format(_get_expr(param)))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def roche_fillout_factor_to_pot(q, fillout_factor):
    return ConstraintParameter(q._bundle, "fillout_factor_to_pot({}, {})".format(_get_expr(q), _get_expr(fillout_factor)))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def pot_to_requiv_contact(pot, q, sma, compno=1):
    return ConstraintParameter(pot._bundle, "pot_to_requiv_contact({}, {}, {}, {})".format(_get_expr(pot), _get_expr(q), _get_expr(sma), compno))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def roche_pot_to_fillout_factor(q, pot):
    return ConstraintParameter(q._bundle, "pot_to_fillout_factor({}, {})".format(_get_expr(q), _get_expr(pot)))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def ecosw2ecc(ecosw, per0):
    """
    TODO: add documentation
    """
    return ConstraintParameter(ecosw._bundle, "ecosw2ecc({}, {})".format(_get_expr(ecosw), _get_expr(per0)))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def roche_requiv_contact_L23(q, sma, compno=1):
    return ConstraintParameter(q._bundle, "requiv_contact_L23(%s, %d)" % (", ".join(["{%s}" % (param.uniquetwig if hasattr(param, 'uniquetwig') else param.expr) for param in (q, sma)]), compno))
github phoebe-project / phoebe2 / phoebe / parameters / constraint.py View on Github external
def roche_requiv_L1(q, syncpar, ecc, sma, incl_star, long_an_star, incl_orb, long_an_orb, compno=1):
    return ConstraintParameter(q._bundle, "requiv_L1(%s, %d)" % (", ".join(["{%s}" % (param.uniquetwig if hasattr(param, 'uniquetwig') else param.expr) for param in (q, syncpar, ecc, sma, incl_star, long_an_star, incl_orb, long_an_orb)]), compno))