diff --git a/openairclim/calc_cont.py b/openairclim/calc_cont.py index 91b0d3a..16c2ecb 100644 --- a/openairclim/calc_cont.py +++ b/openairclim/calc_cont.py @@ -1,10 +1,12 @@ """ Calculates the contrail response. - -_author_: Liam Megill -_email_: liam.megill@dlr.de """ +__author__ = "Liam Megill" +__email__ = "liam.megill@dlr.de" +__license__ = "Apache License 2.0" + + import numpy as np import xarray as xr from openairclim.interpolate_time import apply_evolution diff --git a/utils/create_test_data.py b/utils/create_test_data.py index 0880f04..fa15d0c 100644 --- a/utils/create_test_data.py +++ b/utils/create_test_data.py @@ -2,9 +2,14 @@ Creates data objects for testing """ +import sys +import os import numpy as np import xarray as xr -from .create_artificial_inventories import ArtificialInventory + +SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) +sys.path.append(os.path.dirname(SCRIPT_DIR)) +from utils.create_artificial_inventories import ArtificialInventory def create_test_conc_resp(): diff --git a/utils/create_test_files.py b/utils/create_test_files.py index 3abfad4..b86eb2f 100644 --- a/utils/create_test_files.py +++ b/utils/create_test_files.py @@ -1,7 +1,11 @@ """Create files for testing purposes""" +import sys import os -from .create_test_data import create_test_inv, create_test_rf_resp +SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) +sys.path.append(os.path.dirname(SCRIPT_DIR)) + +from utils.create_test_data import create_test_inv, create_test_rf_resp # CONSTANTS