How to use the decorator.pixel_to_coordinate function in decorator

To help you get started, we’ve selected a few decorator 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 Jammy2211 / PyAutoLens / auto_lens / test_decorator.py View on Github external
def test__pixel_to_coordinate(self):
        assert decorator.pixel_to_coordinate(-5, 0.1, 0) == -5
        assert decorator.pixel_to_coordinate(-5, 0.1, 100) == 5
        assert decorator.pixel_to_coordinate(-5, 0.1, 50) == 0
github Jammy2211 / PyAutoLens / auto_lens / test_decorator.py View on Github external
def test__pixel_to_coordinate(self):
        assert decorator.pixel_to_coordinate(-5, 0.1, 0) == -5
        assert decorator.pixel_to_coordinate(-5, 0.1, 100) == 5
        assert decorator.pixel_to_coordinate(-5, 0.1, 50) == 0
github Jammy2211 / PyAutoLens / auto_lens / test_decorator.py View on Github external
def test__pixel_to_coordinate(self):
        assert decorator.pixel_to_coordinate(-5, 0.1, 0) == -5
        assert decorator.pixel_to_coordinate(-5, 0.1, 100) == 5
        assert decorator.pixel_to_coordinate(-5, 0.1, 50) == 0