Skip to content

Commit

Permalink
reorder imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaganKing committed May 15, 2024
1 parent 94e3d54 commit 77d600e
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cupid/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions cupid/clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

import os
import shutil

import click

import cupid.util


Expand Down
3 changes: 2 additions & 1 deletion cupid/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
1 change: 1 addition & 0 deletions cupid/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import os
import warnings

import click
import intake
import ploomber
Expand Down
4 changes: 2 additions & 2 deletions cupid/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
3 changes: 2 additions & 1 deletion cupid/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("../.."))

Expand Down
3 changes: 2 additions & 1 deletion examples/nblibrary/ice/plot_diff.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 3 additions & 2 deletions examples/nblibrary/ice/vect_diff.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 77d600e

Please sign in to comment.