From d56bbca1c90dd44435c0ed32629d50a5669f1d06 Mon Sep 17 00:00:00 2001 From: Sayantan108 Date: Wed, 10 Mar 2021 20:38:32 +0530 Subject: [PATCH] Fix issue #215:test_old and test_utils fails test from pytest --- orbitdeterminator/doppler/__init__.py | 0 orbitdeterminator/doppler/archive/__init__.py | 0 orbitdeterminator/doppler/archive/test_old.py | 2 +- orbitdeterminator/doppler/archive/utils_astro.py | 2 +- orbitdeterminator/doppler/tests/__init__.py | 0 5 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 orbitdeterminator/doppler/__init__.py create mode 100644 orbitdeterminator/doppler/archive/__init__.py create mode 100644 orbitdeterminator/doppler/tests/__init__.py diff --git a/orbitdeterminator/doppler/__init__.py b/orbitdeterminator/doppler/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/orbitdeterminator/doppler/archive/__init__.py b/orbitdeterminator/doppler/archive/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/orbitdeterminator/doppler/archive/test_old.py b/orbitdeterminator/doppler/archive/test_old.py index 5b94f205..b3a0b605 100644 --- a/orbitdeterminator/doppler/archive/test_old.py +++ b/orbitdeterminator/doppler/archive/test_old.py @@ -1,7 +1,7 @@ import unittest import numpy as np -from orbdet.archive.utils_astro import * +from .utils_astro import * class TestTransformations(unittest.TestCase): """ Unit test for coordinate system transofrmations. diff --git a/orbitdeterminator/doppler/archive/utils_astro.py b/orbitdeterminator/doppler/archive/utils_astro.py index 44b883ef..c514bc40 100644 --- a/orbitdeterminator/doppler/archive/utils_astro.py +++ b/orbitdeterminator/doppler/archive/utils_astro.py @@ -1,7 +1,7 @@ import numpy as np from math import fmod, pi, floor, sqrt -from orbdet.utils.constants import * +from orbitdeterminator.doppler.utils.constants import * # def get_jd(date): # """ Obtain Julian Day given date. diff --git a/orbitdeterminator/doppler/tests/__init__.py b/orbitdeterminator/doppler/tests/__init__.py new file mode 100644 index 00000000..e69de29b