Skip to content

Commit

Permalink
Changed deprecation wanring to future warning in sequential_split
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoTrizio committed Nov 16, 2023
1 parent 12e1770 commit c9f6138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlcolvar/data/datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def sequential_split(dataset, lengths: Sequence) -> list:
until there are no remainders left.
"""

warnings.warn("The function sequential_split is deprecated, use split_dataset(.., .., random_split=False, ..)", DeprecationWarning)
warnings.warn("The function sequential_split is deprecated, use split_dataset(.., .., random_split=False, ..)", FutureWarning, stacklevel=2)

return split_dataset(dataset=dataset, lengths=lengths, random_split=False)

Expand Down

0 comments on commit c9f6138

Please sign in to comment.