From 5880b9fda318c07d0b1708d0de474bb63b91ac75 Mon Sep 17 00:00:00 2001 From: Feda Curic Date: Wed, 20 Nov 2024 09:56:38 +0100 Subject: [PATCH] Remove old seed deprecation warning --- src/fmu/tools/sensitivities/_excel2dict.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/fmu/tools/sensitivities/_excel2dict.py b/src/fmu/tools/sensitivities/_excel2dict.py index a6b04cc5..1cfdb214 100644 --- a/src/fmu/tools/sensitivities/_excel2dict.py +++ b/src/fmu/tools/sensitivities/_excel2dict.py @@ -3,7 +3,6 @@ read by fmu.tools.DesignMatrix.generate """ -import warnings from collections import OrderedDict import numpy as np @@ -11,12 +10,6 @@ import pandas as pd import yaml -SEEDS_DEPRECATION_WARNING = """ -The keyword "seeds" in the "general_input" sheet is changed -to "rms_seeds", and will be deprecated in a future version. -Please update your excel spreadsheet -""" - def excel2dict_design(input_filename, sheetnames=None): """Read excel file with input to design setup @@ -45,6 +38,11 @@ def excel2dict_design(input_filename, sheetnames=None): if str(generalinput[1]["designtype"]) == "onebyone": returndict = _excel2dict_onebyone(input_filename, sheetnames) + elif "seeds" in generalinput[1]: + raise ValueError( + "The 'seeds' parameter has been deprecated and is no longer supported. " + "Use 'rms_seeds' instead" + ) else: raise ValueError( "Generation of DesignMatrix only " @@ -243,13 +241,6 @@ def _excel2dict_onebyone(input_filename, sheetnames=None): inputdict["seeds"] = None else: inputdict["seeds"] = generalinput[1]["rms_seeds"] - elif "seeds" in generalinput[1]: - warnings.simplefilter("always") - warnings.warn(SEEDS_DEPRECATION_WARNING, DeprecationWarning) - if str(generalinput[1]["seeds"]) == "None": - inputdict["seeds"] = None - else: - inputdict["seeds"] = generalinput[1]["seeds"] else: inputdict["seeds"] = None