How to use the oscpy.parser.time_to_timetag function in oscpy

To help you get started, we’ve selected a few oscpy 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 kivy / oscpy / tests / test_parser.py View on Github external
def test_timetag():
    assert time_to_timetag(None) == (0, 1)
    assert time_to_timetag(0)[1] == 0
    assert time_to_timetag(30155831.26845886) == (2239144631, 1153022032)
    assert timetag_to_time(time_to_timetag(30155831.26845886)) == approx(30155831.26845886)  # noqa
github kivy / oscpy / tests / test_parser.py View on Github external
def test_timetag():
    assert time_to_timetag(None) == (0, 1)
    assert time_to_timetag(0)[1] == 0
    assert time_to_timetag(30155831.26845886) == (2239144631, 1153022032)
    assert timetag_to_time(time_to_timetag(30155831.26845886)) == approx(30155831.26845886)  # noqa
github kivy / oscpy / tests / test_parser.py View on Github external
def test_timetag():
    assert time_to_timetag(None) == (0, 1)
    assert time_to_timetag(0)[1] == 0
    assert time_to_timetag(30155831.26845886) == (2239144631, 1153022032)
    assert timetag_to_time(time_to_timetag(30155831.26845886)) == approx(30155831.26845886)  # noqa
github kivy / oscpy / tests / test_parser.py View on Github external
def test_timetag():
    assert time_to_timetag(None) == (0, 1)
    assert time_to_timetag(0)[1] == 0
    assert time_to_timetag(30155831.26845886) == (2239144631, 1153022032)
    assert timetag_to_time(time_to_timetag(30155831.26845886)) == approx(30155831.26845886)  # noqa