Skip to content

Commit

Permalink
adjust import order
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaganKing committed May 15, 2024
1 parent 77d600e commit e4a6206
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
1 change: 0 additions & 1 deletion cupid/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import subprocess
import sys

import click
import yaml

Expand Down
3 changes: 1 addition & 2 deletions cupid/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
intake catalog based on specified criteria.
"""

import yaml

import intake
import yaml


def read_yaml(path_to_yaml):
Expand Down
3 changes: 1 addition & 2 deletions cupid/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@

import os
import warnings

import click
import intake
import ploomber
import cupid.util
import cupid.timeseries
import cupid.util

CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])

Expand Down
2 changes: 1 addition & 1 deletion cupid/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
# ++++++++++++++++++++++++++++++

import glob
import multiprocessing as mp
import os
import subprocess
from pathlib import Path
import multiprocessing as mp

import xarray as xr

Expand Down
2 changes: 1 addition & 1 deletion cupid/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import jupyter_client
import papermill as pm
import ploomber
import yaml
from papermill.engines import NBClientEngine
from jinja2 import Template
import yaml


class MarkdownJinjaEngine(NBClientEngine):
Expand Down
5 changes: 2 additions & 3 deletions examples/nblibrary/ice/plot_diff.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import cartopy.crs as ccrs
import cartopy.feature as cfeature
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


def plot_diff(field1, field2, levels, case1, case2, title, proj, TLAT, TLON):
# make circular boundary for polar stereographic circular plots
Expand Down
8 changes: 3 additions & 5 deletions examples/nblibrary/ice/vect_diff.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import numpy as np

import cartopy.crs as ccrs
import cartopy.feature as cfeature
import matplotlib as mpl
import matplotlib.path as mpath
import matplotlib.pyplot as plt
import numpy as np
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)
Expand Down

0 comments on commit e4a6206

Please sign in to comment.