Skip to content

Commit

Permalink
autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bolliger32 committed Apr 3, 2024
1 parent 4c50b79 commit b07a279
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions notebooks/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import geopandas as gpd
import xarray as xr
from dask_gateway import GatewayCluster

from pyCIAM import __file__

DIR_SCRATCH = Path("/tmp/ciam-scratch")
Expand Down
1 change: 1 addition & 0 deletions pyCIAM/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import pandas as pd
import pint_xarray # noqa: F401
import xarray as xr

from pyCIAM.utils import spherical_nearest_neighbor as snn

from .utils import _s2d
Expand Down
3 changes: 2 additions & 1 deletion pyCIAM/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import xarray as xr
from cloudpathlib import AnyPath, CloudPath
from distributed import Client, wait
from rhg_compute_tools.xarray import dataarray_from_delayed

from pyCIAM.constants import CASE_DICT, CASES, COSTTYPES, PLIST, RLIST, SOLVCASES
from pyCIAM.io import (
check_finished_zarr_workflow,
Expand All @@ -38,7 +40,6 @@
collapse_econ_inputs_to_seg,
subset_econ_inputs,
)
from rhg_compute_tools.xarray import dataarray_from_delayed


def calc_costs(
Expand Down
3 changes: 2 additions & 1 deletion pyCIAM/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
import pandas as pd
import xarray as xr
from cloudpathlib import CloudPath
from pyCIAM.constants import CASE_DICT
from sklearn.neighbors import BallTree

from pyCIAM.constants import CASE_DICT


def _s2d(ds):
for v in ds.data_vars:
Expand Down

0 comments on commit b07a279

Please sign in to comment.