From c9f6138106b9d6f3b14b6b96a1c9577914dc605c Mon Sep 17 00:00:00 2001 From: EnricoTrizio Date: Thu, 16 Nov 2023 11:24:26 +0100 Subject: [PATCH] Changed deprecation wanring to future warning in sequential_split --- mlcolvar/data/datamodule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlcolvar/data/datamodule.py b/mlcolvar/data/datamodule.py index f9ea716e..a8bea2fa 100644 --- a/mlcolvar/data/datamodule.py +++ b/mlcolvar/data/datamodule.py @@ -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)