From 1cb492c78525a4b8a9d0038b71b98952efd9c403 Mon Sep 17 00:00:00 2001 From: Aron Date: Tue, 5 Dec 2023 15:43:41 +0100 Subject: [PATCH] Update preprocessing layer in vpinterface --- n3fit/src/n3fit/vpinterface.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/n3fit/src/n3fit/vpinterface.py b/n3fit/src/n3fit/vpinterface.py index 7e2e754e0f..6de7693682 100644 --- a/n3fit/src/n3fit/vpinterface.py +++ b/n3fit/src/n3fit/vpinterface.py @@ -224,13 +224,7 @@ def get_preprocessing_factors(self, replica=None): if replica is None: replica = 1 # Replicas start counting in 1 so: - preprocessing_layers = self._models[replica - 1].get_layer_re(r"preprocessing_factor_\d") - if len(preprocessing_layers) > 1: - # We really don't want to fail at this point, but print a warning at least... - log.warning("More than one preprocessing layer found within the model!") - elif len(preprocessing_layers) < 1: - log.warning("No preprocessing layer found within the model!") - preprocessing_layer = preprocessing_layers[0] + preprocessing_layer = self._models[replica - 1].get_layer("preprocessing_factor") alphas_and_betas = None if self.fit_basis is not None: