Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 26, 2024
1 parent 9236b0c commit 5469cf4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 47 deletions.
22 changes: 7 additions & 15 deletions pyremo/physics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
# flake8: noqa
from . import core
from .physics import (
liquid_water_content,
precipitation_flux,
pressure,
relative_humidity,
relative_humidity_from_dewpoint,
specific_humidity,
specific_humidity_from_dewpoint,
surface_downwelling_longwave_flux_in_air,
surface_downwelling_shortwave_flux_in_air,
surface_runoff_flux,
toa_incoming_shortwave_flux,
water_evapotranspiration_flux,
water_vapour,
)
from .physics import (liquid_water_content, precipitation_flux, pressure,
relative_humidity, relative_humidity_from_dewpoint,
specific_humidity, specific_humidity_from_dewpoint,
surface_downwelling_longwave_flux_in_air,
surface_downwelling_shortwave_flux_in_air,
surface_runoff_flux, toa_incoming_shortwave_flux,
water_evapotranspiration_flux, water_vapour)
2 changes: 0 additions & 2 deletions pyremo/preproc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# flake8: noqa

from .cf import get_gfile, gfile, to_cfdatetime

# from .core import gfile
from .era5 import ERA5
from .remap import remap, remap_remo, to_netcdf, to_tar

# from .remap_new import Remapper
from .utils import write_forcing_file
11 changes: 2 additions & 9 deletions pyremo/preproc/cf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import glob
import os

# import subprocess
# import tempfile
from datetime import timedelta as td
Expand All @@ -15,14 +14,8 @@
import xarray as xr
from cdo import Cdo

from .core import (
check_lev,
convert_units,
get_vc,
horizontal_dims,
map_sst,
open_mfdataset,
)
from .core import (check_lev, convert_units, get_vc, horizontal_dims, map_sst,
open_mfdataset)

cdo_exe = "cdo"

Expand Down
22 changes: 6 additions & 16 deletions pyremo/preproc/remap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,12 @@
from .constants import fillvars, lev_input
from .core import const, get_akbkem
from .utils import update_attrs
from .xpyintorg import (
correct_uv,
geo_coords,
geopotential,
interp_horiz_remo_cm,
interpolate_horizontal,
interpolate_horizontal_remo,
interpolate_vertical,
intersect,
intersect_regional,
pbl_index,
pressure_correction_em,
pressure_correction_ge,
relative_humidity,
rotate_uv,
)
from .xpyintorg import (correct_uv, geo_coords, geopotential,
interp_horiz_remo_cm, interpolate_horizontal,
interpolate_horizontal_remo, interpolate_vertical,
intersect, intersect_regional, pbl_index,
pressure_correction_em, pressure_correction_ge,
relative_humidity, rotate_uv)

# from pyremo.core.remo_ds import update_meta_info

Expand Down
7 changes: 2 additions & 5 deletions pyremo/tables/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import pandas as pd

from ._resources import (
read_remo_code_tables,
read_remo_domain_tables,
read_remo_vc_tables,
)
from ._resources import (read_remo_code_tables, read_remo_domain_tables,
read_remo_vc_tables)


class read_cls:
Expand Down

0 comments on commit 5469cf4

Please sign in to comment.