Skip to content

Commit 7efddd7

Browse files
committed
add deprecation note for find_recipe
1 parent 5bd554c commit 7efddd7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

oceanval/parsers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def read_point(ff, nrows = None):
4747
]
4848

4949
def find_recipe(x, start = None, end = None):
50+
# add deprecation warning
51+
warnings.warn("The recipe argument is deprecated and will be removed in a future version. Please use the add_gridded_comparison function with the appropriate arguments instead.", DeprecationWarning)
52+
5053
output = dict()
5154
# check if there is only one key and one value
5255
if len(x.keys()) != 1:

0 commit comments

Comments
 (0)