Skip to content

Commit

Permalink
address warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jun 18, 2024
1 parent 0ea23c7 commit 3294b0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ravenpy/extractors/routing_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def upstream_from_coords(

# Find the outlet sub-basin ID
out_sb = find_geometry_from_coord(lon, lat, df)
out_sb_id = int(out_sb["SubId"])
out_sb_id = int(out_sb["SubId"].iloc[0])

# Find upstream sub-basins
up_ids = upstream_from_id(out_sb_id, df)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bias_correction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import xarray as xr
import xclim.sdba as sdba
from xclim.core.calendar import convert_calendar
from xarray.coding.calendar_ops import convert_calendar


class TestBiasCorrect:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_ts_fit_graph(self, get_local_testdata, tmp_path):
copyfile(raven_hydrograph, file)

with xr.open_dataset(file) as ds:
ts = stats(ds.q_sim, op="max", freq="M")
ts = stats(ds.q_sim, op="max", freq="ME")
with set_options(check_missing="skip"):
p = fit(ts)
np.testing.assert_array_equal(p.isnull(), False)
Expand Down

0 comments on commit 3294b0e

Please sign in to comment.