Skip to content

Commit

Permalink
style(import): consistently use relative imports (#1330)
Browse files Browse the repository at this point in the history
* Convert line endings to UNIX; remove BOM
* Use relative imports
  • Loading branch information
mwtoews authored Jan 21, 2022
1 parent eecd1ad commit 16b84e8
Show file tree
Hide file tree
Showing 23 changed files with 5,149 additions and 5,147 deletions.
4 changes: 2 additions & 2 deletions flopy/discretization/unstructuredgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def plot(self, **kwargs):
lc : matplotlib.collections.LineCollection
"""
from flopy.plot import PlotMapView
from ..plot import PlotMapView

layer = 0
if "layer" in kwargs:
Expand Down Expand Up @@ -837,7 +837,7 @@ def ncpl_from_ihc(ihc, iac):
number of cells per plottable layer
"""
from flopy.utils.gridgen import get_ia_from_iac
from ..utils.gridgen import get_ia_from_iac

valid = False
ia = get_ia_from_iac(iac)
Expand Down
2 changes: 1 addition & 1 deletion flopy/discretization/vertexgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def plot(self, **kwargs):
lc : matplotlib.collections.LineCollection
"""
from flopy.plot import PlotMapView
from ..plot import PlotMapView

mm = PlotMapView(modelgrid=self)
return mm.plot_grid(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion flopy/export/shapefile_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def get_spatialreference(epsg, text="esriwkt"):
url : str
"""
from flopy.utils.flopy_io import get_url_text
from ..utils.flopy_io import get_url_text

epsg_categories = (
"epsg",
Expand Down
Loading

0 comments on commit 16b84e8

Please sign in to comment.