From 1e86b7de1ef9460ea490d46a217ebd98ba998f30 Mon Sep 17 00:00:00 2001 From: ashjbarnes Date: Wed, 20 Sep 2023 11:19:31 +1000 Subject: [PATCH] black reformat --- regional_mom6/regional_mom6.py | 4 +++- tests/test_expt_class.py | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/regional_mom6/regional_mom6.py b/regional_mom6/regional_mom6.py index dca56e02..3a75cfb8 100644 --- a/regional_mom6/regional_mom6.py +++ b/regional_mom6/regional_mom6.py @@ -907,7 +907,9 @@ def bathymetry( bathy = xr.open_dataset(bathy_path, chunks=chunks)[varnames["elevation"]] bathy = bathy.sel( - {varnames["yh"]: slice(self.yextent[0] - 1, self.yextent[1] + 1)} #! Hardcoded 1 degree buffer around bathymetry selection. Should automatically select buffer in future + { + varnames["yh"]: slice(self.yextent[0] - 1, self.yextent[1] + 1) + } #! Hardcoded 1 degree buffer around bathymetry selection. Should automatically select buffer in future ).astype("float") ## Here need to make a decision as to whether to slice 'normally' or with nicer slicer for 360 degree domain. diff --git a/tests/test_expt_class.py b/tests/test_expt_class.py index eec6dec5..2fd23902 100644 --- a/tests/test_expt_class.py +++ b/tests/test_expt_class.py @@ -101,7 +101,6 @@ def test_bathymetry( import xarray as xr - @pytest.mark.parametrize( ( "xextent", @@ -211,7 +210,6 @@ def test_ocean_forcing( } ) - # Generate boundary forcing eastern_boundary = xr.Dataset(