Skip to content

Commit

Permalink
Update of relative links to utils files
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Megill committed Nov 6, 2024
1 parent b54a505 commit 9ee2d58
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
8 changes: 5 additions & 3 deletions openairclim/calc_cont.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"""
Calculates the contrail response.
_author_: Liam Megill
_email_: [email protected]
"""

__author__ = "Liam Megill"
__email__ = "[email protected]"
__license__ = "Apache License 2.0"


import numpy as np
import xarray as xr
from openairclim.interpolate_time import apply_evolution
Expand Down
7 changes: 6 additions & 1 deletion utils/create_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
6 changes: 5 additions & 1 deletion utils/create_test_files.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9ee2d58

Please sign in to comment.