From 0f4e037912fcddb85f52366b3c7bbfb661c87304 Mon Sep 17 00:00:00 2001 From: Simon De Kock Date: Tue, 17 Dec 2024 12:46:45 +0100 Subject: [PATCH] Changed the self.__state.velocity_perturbations = [] to self.__params.velocity_perturbations = [] in __initialize_random_generators --- pysteps/blending/steps.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pysteps/blending/steps.py b/pysteps/blending/steps.py index ba285fbb..37976f63 100644 --- a/pysteps/blending/steps.py +++ b/pysteps/blending/steps.py @@ -1091,7 +1091,7 @@ def __initialize_random_generators(self): ) = noise.get_method(self.__config.velocity_perturbation_method) # initialize the perturbation generators for the motion field - self.__state.velocity_perturbations = [] + self.__params.velocity_perturbations = [] for j in range(self.__config.n_ens_members): kwargs = { "randstate": self.__state.randgen_motion[j], @@ -1104,7 +1104,7 @@ def __initialize_random_generators(self): self.__config.timestep, **kwargs, ) - self.__state.velocity_perturbations.append(vp_) + self.__params.velocity_perturbations.append(vp_) else: ( self.__params.velocity_perturbations, @@ -2902,7 +2902,6 @@ def forecast( forecast_steps_nowcast = blended_nowcaster.compute_forecast() print(forecast_steps_nowcast) blended_nowcaster.reset_states_and_params() - # Call the appropriate methods within the class return forecast_steps_nowcast