diff --git a/cupid/build.py b/cupid/build.py index cc60257..336f081 100755 --- a/cupid/build.py +++ b/cupid/build.py @@ -15,11 +15,11 @@ None """ -import click import subprocess import sys -import yaml +import click +import yaml @click.command() @click.argument("config_path", default="config.yml") diff --git a/cupid/clear.py b/cupid/clear.py index 8ec1f86..fe02ece 100755 --- a/cupid/clear.py +++ b/cupid/clear.py @@ -11,7 +11,9 @@ import os import shutil + import click + import cupid.util diff --git a/cupid/read.py b/cupid/read.py index 617bd65..0249f39 100644 --- a/cupid/read.py +++ b/cupid/read.py @@ -7,9 +7,10 @@ intake catalog based on specified criteria. """ -import intake import yaml +import intake + def read_yaml(path_to_yaml): """Read yaml file and return data from loaded yaml file""" diff --git a/cupid/run.py b/cupid/run.py index 536ccc5..4902ba0 100755 --- a/cupid/run.py +++ b/cupid/run.py @@ -24,6 +24,7 @@ import os import warnings + import click import intake import ploomber diff --git a/cupid/timeseries.py b/cupid/timeseries.py index a8793bf..1a61890 100644 --- a/cupid/timeseries.py +++ b/cupid/timeseries.py @@ -7,12 +7,12 @@ # ++++++++++++++++++++++++++++++ import glob -import multiprocessing as mp import os import subprocess from pathlib import Path -import xarray as xr +import multiprocessing as mp +import xarray as xr def call_ncrcat(cmd): """This is an internal function to `create_time_series` diff --git a/cupid/util.py b/cupid/util.py index c8d8991..6cbbfdc 100644 --- a/cupid/util.py +++ b/cupid/util.py @@ -16,8 +16,9 @@ import os import sys -from pathlib import Path import warnings +from pathlib import Path + import jupyter_client import papermill as pm import ploomber diff --git a/docs/conf.py b/docs/conf.py index 7afea9b..9a7c286 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -9,10 +9,11 @@ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -import os -import sys + import datetime +import os import re +import sys sys.path.insert(0, os.path.abspath("../..")) diff --git a/examples/nblibrary/ice/plot_diff.py b/examples/nblibrary/ice/plot_diff.py index b9c6a0c..60ebc6e 100644 --- a/examples/nblibrary/ice/plot_diff.py +++ b/examples/nblibrary/ice/plot_diff.py @@ -1,8 +1,9 @@ -import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.path as mpath from matplotlib.gridspec import GridSpec +import numpy as np + import cartopy.crs as ccrs import cartopy.feature as cfeature diff --git a/examples/nblibrary/ice/vect_diff.py b/examples/nblibrary/ice/vect_diff.py index d373dcc..9a917c6 100644 --- a/examples/nblibrary/ice/vect_diff.py +++ b/examples/nblibrary/ice/vect_diff.py @@ -1,12 +1,13 @@ import numpy as np + import matplotlib as mpl -import matplotlib.pyplot as plt import matplotlib.path as mpath +import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec + import cartopy.crs as ccrs import cartopy.feature as cfeature - def vect_diff(uvel1, vvel1, uvel2, vvel2, angle, proj, case1, case2, TLAT, TLON): uvel_rot1 = uvel1 * np.cos(angle) - vvel1 * np.sin(angle) vvel_rot1 = uvel1 * np.sin(angle) + vvel1 * np.cos(angle)