Skip to content

Commit

Permalink
isort + black
Browse files Browse the repository at this point in the history
  • Loading branch information
mathleur committed Feb 11, 2025
1 parent 8ca745a commit fe6e3e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion polytope_feature/datacube/backends/fdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def check_branching_axes(self, request):
# special param with direction and frequency
if len(polytope.points[idx]) > 1:
raise ValueError(
"Param 251 is part of a special branching of the datacube. Please request it separately.") # noqa: E501
"Param 251 is part of a special branching of the datacube. Please request it separately."
) # noqa: E501
self.fdb_coordinates.pop("quantile", None)

# NOTE: verify that we also remove the axis object for axes we've removed here
Expand Down
6 changes: 2 additions & 4 deletions tests/test_wave_spectra_data.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import pandas as pd
import pytest
from helper_functions import find_nearest_latlon

from polytope_feature.engine.hullslicer import HullSlicer
from polytope_feature.polytope import Polytope, Request
from polytope_feature.shapes import Box, Select
import pandas as pd


class TestHealpixGrid:
def setup_method(self, method):

import pygribjump as gj

self.fdb_datacube = gj.GribJump()
Expand Down Expand Up @@ -56,7 +55,6 @@ def setup_method(self, method):

@pytest.mark.internet
def test_healpix_grid(self):

request = Request(
Select("step", [1]),
Select("date", [pd.Timestamp("20250201T000000")]),
Expand All @@ -69,7 +67,7 @@ def test_healpix_grid(self):
Select("direction", ["1"]),
Select("frequency", ["1"]),
Box(["latitude", "longitude"], [1, 1], [2, 2]),
Select("levtype", ["sfc"])
Select("levtype", ["sfc"]),
)
result = self.API.retrieve(request)
result.pprint()
Expand Down

0 comments on commit fe6e3e1

Please sign in to comment.