コード例 #1
0
def mechanics_printing(**kwargs):

    # mechanics_printing has slightly different functionality in 0.7.5 but
    # shouldn't fundamentally need a deprecation warning so we do this
    # little wrapper that gives the warning that things have changed.

    # TODO : Remove this warning in the release after SymPy 0.7.5

    # The message is only printed if this function is called with no args,
    # as was the previous only way to call it.

    def dict_is_empty(D):
        for k in D:
            return False
        return True

    if dict_is_empty(kwargs):
        msg = (
            "See the doc string for slight changes to this function: "
            "keyword args may be needed for the desired effect. "
            "Otherwise use sympy.physics.vector.init_vprinting directly."
        )
        SymPyDeprecationWarning(filldedent(msg)).warn()

    init_vprinting(**kwargs)
コード例 #2
0
ファイル: functions.py プロジェクト: WeilerWebServices/SymPy
def mechanics_printing(**kwargs):
    """
    Initializes time derivative printing for all SymPy objects in
    mechanics module.
    """

    init_vprinting(**kwargs)
コード例 #3
0
ファイル: functions.py プロジェクト: asmeurer/sympy
def mechanics_printing(**kwargs):
    """
    Initializes time derivative printing for all SymPy objects in
    mechanics module.
    """

    init_vprinting(**kwargs)
コード例 #4
0
ファイル: functions.py プロジェクト: Krastanov/sympy
def mechanics_printing(**kwargs):

    # mechanics_printing has slightly different functionality in 0.7.5 but
    # shouldn't fundamentally need a deprecation warning so we do this
    # little wrapper that gives the warning that things have changed.

    # TODO : Remove this warning in the release after SymPy 0.7.5

    # The message is only printed if this function is called with no args,
    # as was the previous only way to call it.

    def dict_is_empty(D):
        for k in D:
            return False
        return True

    if dict_is_empty(kwargs):
        msg = ('See the doc string for slight changes to this function: '
               'keyword args may be needed for the desired effect. '
               'Otherwise use sympy.physics.vector.init_vprinting directly.')
        SymPyDeprecationWarning(filldedent(msg)).warn()

    init_vprinting(**kwargs)
コード例 #5
0
ファイル: functions.py プロジェクト: zhengcheng233/sympy
def mechanics_printing(**kwargs):

    init_vprinting(**kwargs)
コード例 #6
0
ファイル: functions.py プロジェクト: A-turing-machine/sympy
def mechanics_printing(**kwargs):

    init_vprinting(**kwargs)