Skip to content

Commit

Permalink
fix DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Jun 21, 2023
1 parent 34dfdcf commit de54e3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nlmod/read/geotop.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime as dt
import logging
import os
import warnings

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -158,8 +159,9 @@ def get_geotop(extent, url=GEOTOP_URL, probabilities=False):


def get_geotop_raw_within_extent(extent, url=GEOTOP_URL, drop_probabilities=True):
DeprecationWarning(
"This function is deprecated, use the equivalent `get_geotop()`!"
warnings.warn(
"This function is deprecated, use the equivalent `get_geotop()`!",
DeprecationWarning,
)
return get_geotop(extent=extent, url=url, drop_probabilities=drop_probabilities)

Expand Down

0 comments on commit de54e3d

Please sign in to comment.