Skip to content

Commit

Permalink
change absolute import of pycomlink to relative import (#119)
Browse files Browse the repository at this point in the history
Switch to relative imports to make using pycomlink as git submodule possible
  • Loading branch information
cchwala committed Apr 24, 2023
1 parent ff2d879 commit a0295ba
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pycomlink/io/cmlh5_to_xarray.py
@@ -1,7 +1,7 @@
import h5py
import xarray as xr
from tqdm import tqdm
from pycomlink.spatial.helper import haversine
from .. spatial.helper import haversine


def read_cmlh5_file_to_xarray(filename):
Expand Down
3 changes: 1 addition & 2 deletions pycomlink/io/examples.py
@@ -1,8 +1,7 @@
import pkg_resources
from os import path


from pycomlink.io.cmlh5_to_xarray import read_cmlh5_file_to_xarray
from .. io.cmlh5_to_xarray import read_cmlh5_file_to_xarray


def get_example_data_path():
Expand Down
2 changes: 1 addition & 1 deletion pycomlink/processing/wet_antenna.py
Expand Up @@ -16,7 +16,7 @@
import scipy.interpolate
from numba import jit

from pycomlink.processing import k_R_relation
from . import k_R_relation
from .xarray_wrapper import xarray_apply_along_time_dim


Expand Down
3 changes: 1 addition & 2 deletions pycomlink/processing/wet_dry/nearby_wetdry.py
@@ -1,8 +1,7 @@
import xarray as xr
import numpy as np
from tqdm import tqdm
import pycomlink.spatial.helper as spatial

from ... spatial import helper as spatial

def calc_distance_between_cml_endpoints(
cml_ids,
Expand Down
3 changes: 1 addition & 2 deletions pycomlink/validation/stats.py
Expand Up @@ -2,8 +2,7 @@
from collections import namedtuple
import numpy as np

from pycomlink.util.maintenance import deprecated

from .. util.maintenance import deprecated

class WetDryError(
namedtuple(
Expand Down
5 changes: 2 additions & 3 deletions pycomlink/validation/validator.py
Expand Up @@ -8,9 +8,8 @@
import matplotlib.pyplot as plt
from shapely.geometry import LineString, Polygon

import pycomlink.spatial.grid_intersection as grid_intersection
from pycomlink.util.maintenance import deprecated

from .. spatial import grid_intersection
from .. util.maintenance import deprecated

class Validator(object):
def __init__(self):
Expand Down

0 comments on commit a0295ba

Please sign in to comment.