Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Jan 26, 2024
1 parent bac23a9 commit 6e30c4c
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 28 deletions.
7 changes: 4 additions & 3 deletions docs/gallery/3D_stack.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from polartoolkit import maps, fetch, regions, utils\n",
"import pooch\n",
"\n",
"# set Python's logging level to get information\n",
"import logging\n",
"import pooch\n",
"\n",
"from polartoolkit import fetch, maps, regions\n",
"\n",
"logging.getLogger().setLevel(logging.INFO)"
]
},
Expand Down
2 changes: 1 addition & 1 deletion docs/gallery/basic_map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from polartoolkit import maps, fetch, regions, utils"
"from polartoolkit import fetch, maps, regions"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/gallery/extend_pygmt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from polartoolkit import maps, fetch"
"from polartoolkit import fetch, maps"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/gallery/mask_from_shp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from polartoolkit import maps, fetch, utils, regions\n",
"import pyogrio"
"import pyogrio\n",
"from polartoolkit import fetch, maps, regions, utils"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/gallery/profile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from polartoolkit import profile, fetch"
"from polartoolkit import fetch, profile"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/gallery/profile_with_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from polartoolkit import profile, fetch"
"from polartoolkit import fetch, profile"
]
},
{
Expand Down
7 changes: 4 additions & 3 deletions docs/gallery/setting_projection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from polartoolkit import fetch, utils, regions, maps\n",
"import pygmt\n",
"\n",
"# set Python's logging level to get information\n",
"import logging\n",
"\n",
"import pygmt\n",
"from polartoolkit import fetch, maps, utils\n",
"\n",
"logging.getLogger().setLevel(logging.INFO)"
]
},
Expand Down
4 changes: 2 additions & 2 deletions docs/gallery/subplot_layout.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"%%capture\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"from polartoolkit import fetch, utils, maps, regions, profile\n",
"import pygmt"
"import pygmt\n",
"from polartoolkit import fetch, maps, regions, utils"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/gallery/subplots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from polartoolkit import maps, fetch"
"from polartoolkit import fetch, maps"
]
},
{
Expand Down
9 changes: 5 additions & 4 deletions docs/tutorial/fetch_walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
"%%capture\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"from polartoolkit import fetch, regions, maps, utils\n",
"import pyogrio\n",
"\n",
"# set Python's logging level to get information\n",
"import logging\n",
"\n",
"import pyogrio\n",
"from polartoolkit import fetch, maps, regions, utils\n",
"\n",
"logging.getLogger().setLevel(logging.INFO)"
]
},
Expand Down Expand Up @@ -84,7 +85,7 @@
}
],
"source": [
"print(\"\\n\".join(fetch.get_fetches()))c"
"print(\"\\n\".join(fetch.get_fetches()))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/profile_walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"%%capture\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"from polartoolkit import profile, fetch, maps, utils"
"from polartoolkit import fetch, profile, utils"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/tutorial/regions_walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
"%%capture\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"from polartoolkit import maps, regions, fetch, maps, utils\n",
"from statistics import mean"
"from statistics import mean\n",
"\n",
"from polartoolkit import fetch, maps, regions, utils"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/utils_walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"%%capture\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"from polartoolkit import fetch, regions, maps, utils"
"from polartoolkit import fetch, maps, regions, utils"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/antarctic_plots/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
import xarray as xr
import zarr
from dotenv import load_dotenv
from pyproj import Transformer

# import polartoolkit.fetch as fetch
from polartoolkit import ( # pylint: disable=import-self
fetch, # noqa: PLW0406
regions,
utils,
)
from pyproj import Transformer

# import polartoolkit.regions as regions
# import polartoolkit.utils as utils
Expand Down
1 change: 0 additions & 1 deletion src/antarctic_plots/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import pandas as pd
import verde as vd

from polartoolkit import ( # pylint: disable=import-self
maps,
regions, # noqa: PLW0406
Expand Down
2 changes: 1 addition & 1 deletion src/antarctic_plots/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
import verde as vd
import xarray as xr
from nptyping import NDArray
from pyproj import Transformer

# import polartoolkit.fetch as fetch
from polartoolkit import fetch, maps
from pyproj import Transformer

# import polartoolkit.maps as maps

Expand Down
1 change: 0 additions & 1 deletion tests/test_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def test_():
import pytest
from dotenv import load_dotenv
from geopandas.testing import assert_geodataframe_equal

from polartoolkit import fetch, regions, utils

load_dotenv()
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import pytest
import verde as vd
import xarray as xr

from polartoolkit import regions, utils


Expand Down

0 comments on commit 6e30c4c

Please sign in to comment.