from dexp.processing.backends.cupy_backend import CupyBackend
from dexp.processing.backends.numpy_backend import NumpyBackend
from dexp.processing.color.demo.demo_time_stamp import demo_time_stamp


def test_time_stamp_numpy():
    with NumpyBackend():
        _test_time_stamp()


def test_time_stamp_cupy():
    try:
        with CupyBackend():
            _test_time_stamp()
    except ModuleNotFoundError:
        print("Cupy module not found! Test passes nevertheless!")


def _test_time_stamp():
    demo_time_stamp(display=False)

fee14589c76354723aefb6098c9ec96c40031baa
<mask token>

<mask token>


def test_time_stamp_cupy():
    try:
        with CupyBackend():
            _test_time_stamp()
    except ModuleNotFoundError:
        print('Cupy module not found! Test passes nevertheless!')


def _test_time_stamp():
    demo_time_stamp(display=False)

<mask token>


def test_time_stamp_numpy():
    with NumpyBackend():
        _test_time_stamp()


def test_time_stamp_cupy():
    try:
        with CupyBackend():
            _test_time_stamp()
    except ModuleNotFoundError:
        print('Cupy module not found! Test passes nevertheless!')


def _test_time_stamp():
    demo_time_stamp(display=False)

from dexp.processing.backends.cupy_backend import CupyBackend
from dexp.processing.backends.numpy_backend import NumpyBackend
from dexp.processing.color.demo.demo_time_stamp import demo_time_stamp


def test_time_stamp_numpy():
    with NumpyBackend():
        _test_time_stamp()


def test_time_stamp_cupy():
    try:
        with CupyBackend():
            _test_time_stamp()
    except ModuleNotFoundError:
        print('Cupy module not found! Test passes nevertheless!')


def _test_time_stamp():
    demo_time_stamp(display=False)

from dexp.processing.backends.cupy_backend import CupyBackend
from dexp.processing.backends.numpy_backend import NumpyBackend
from dexp.processing.color.demo.demo_time_stamp import demo_time_stamp


def test_time_stamp_numpy():
    with NumpyBackend():
        _test_time_stamp()


def test_time_stamp_cupy():
    try:
        with CupyBackend():
            _test_time_stamp()
    except ModuleNotFoundError:
        print("Cupy module not found! Test passes nevertheless!")


def _test_time_stamp():
    demo_time_stamp(display=False)
