From 5469cf4133d71fcc0ccabca9b1f130522f02957d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:06:30 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyremo/physics/__init__.py | 22 +++++++--------------- pyremo/preproc/__init__.py | 2 -- pyremo/preproc/cf.py | 11 ++--------- pyremo/preproc/remap.py | 22 ++++++---------------- pyremo/tables/__init__.py | 7 ++----- 5 files changed, 17 insertions(+), 47 deletions(-) diff --git a/pyremo/physics/__init__.py b/pyremo/physics/__init__.py index 70f50eb..279c739 100644 --- a/pyremo/physics/__init__.py +++ b/pyremo/physics/__init__.py @@ -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) diff --git a/pyremo/preproc/__init__.py b/pyremo/preproc/__init__.py index 6d63af2..267b121 100644 --- a/pyremo/preproc/__init__.py +++ b/pyremo/preproc/__init__.py @@ -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 diff --git a/pyremo/preproc/cf.py b/pyremo/preproc/cf.py index 55a27f5..ef0476b 100644 --- a/pyremo/preproc/cf.py +++ b/pyremo/preproc/cf.py @@ -1,6 +1,5 @@ import glob import os - # import subprocess # import tempfile from datetime import timedelta as td @@ -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" diff --git a/pyremo/preproc/remap.py b/pyremo/preproc/remap.py index d4d3bad..29dd5b2 100644 --- a/pyremo/preproc/remap.py +++ b/pyremo/preproc/remap.py @@ -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 diff --git a/pyremo/tables/__init__.py b/pyremo/tables/__init__.py index 2ccdcc4..06282ce 100644 --- a/pyremo/tables/__init__.py +++ b/pyremo/tables/__init__.py @@ -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: