Skip to content

Commit

Permalink
Changed the self.__state.velocity_perturbations = [] to self.__params…
Browse files Browse the repository at this point in the history
….velocity_perturbations = [] in __initialize_random_generators
  • Loading branch information
sidekock committed Dec 17, 2024
1 parent 4e4a148 commit 0f4e037
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pysteps/blending/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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,
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 0f4e037

Please sign in to comment.