Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(import): consistently use relative imports #1330

Merged
merged 2 commits into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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