You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importuqtestfunsasuqtfa=uqtf.HigdonSine()
b=a.prob_inputb.rng_seed=42# By intention, this should reset the RNG with a seed number of 42x=b.get_sample(10)
b.rng_seed=42# Once again, this should reset the RNG with a seed number of 42y=b.get_sample(10)
assertnp.all(x==y)
the assertion will fail because in probabilistic_input.py l. 86:
def rng_seed(self, value: Optional[int]):
"""Set/reset the seed for RNG."""
self.reset_rng(self._rng_seed)
In other words, the value is never assigned.
The text was updated successfully, but these errors were encountered:
Assigning an integer value to `rng_seed`
property of `ProbInput` class will correctly reset
the RNG with the assigned seed value.
This commit should resolve Issue #424.
Consider the following test:
the assertion will fail because in
probabilistic_input.py
l. 86:In other words, the value is never assigned.
The text was updated successfully, but these errors were encountered: