Skip to content

Commit

Permalink
fix: switch module import style
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Dec 10, 2023
1 parent 0405ad3 commit c61552a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/antarctic_plots/fetch.py
Expand Up @@ -31,8 +31,12 @@
from dotenv import load_dotenv
from pyproj import Transformer

# import antarctic_plots.fetch as fetch
from antarctic_plots import fetch, regions, utils # noqa: PLW0406

# import antarctic_plots.regions as regions
# import antarctic_plots.utils as utils

load_dotenv()


Expand Down
6 changes: 4 additions & 2 deletions src/antarctic_plots/maps.py
Expand Up @@ -21,8 +21,12 @@
import verde as vd
import xarray as xr

# import antarctic_plots.fetch as fetch
from antarctic_plots import fetch, regions, utils

# import antarctic_plots.regions as regions
# import antarctic_plots.utils as utils

try:
from IPython.display import display
except ImportError:
Expand Down Expand Up @@ -94,8 +98,6 @@ def basemap(
fig_width=fig_width,
)

fig_width = typing.cast(float, fig_width)

# initialize figure or shift for new subplot
if origin_shift == "initialize":
fig = pygmt.Figure()
Expand Down
4 changes: 4 additions & 0 deletions src/antarctic_plots/profile.py
Expand Up @@ -18,8 +18,12 @@
import verde as vd
import xarray as xr

# import antarctic_plots.fetch as fetch
from antarctic_plots import fetch, maps, utils

# import antarctic_plots.maps as maps
# import antarctic_plots.utils as utils

try:
from IPython.display import display
except ImportError:
Expand Down
4 changes: 4 additions & 0 deletions src/antarctic_plots/regions.py
Expand Up @@ -18,6 +18,10 @@

from antarctic_plots import maps, regions, utils # noqa: PLW0406

# import antarctic_plots.maps as maps
# import antarctic_plots.regions as regions
# import antarctic_plots.utils as utils

try:
import ipyleaflet
except ImportError:
Expand Down
3 changes: 3 additions & 0 deletions src/antarctic_plots/utils.py
Expand Up @@ -23,8 +23,11 @@
from nptyping import NDArray
from pyproj import Transformer

# import antarctic_plots.fetch as fetch
from antarctic_plots import fetch, maps

# import antarctic_plots.maps as maps

if typing.TYPE_CHECKING:
import geopandas as gpd

Expand Down

0 comments on commit c61552a

Please sign in to comment.