How can I generate the same image using ps.generators.rsa method? #854
-
|
Dear Professor I am trying to generate the same image using 'ps.generators.rsa' through random.seed(), but it doesn't work. np.random.seed(0) However, the seed works in 'ps.generator.overlapping_spheres'. np.random.seed(0) I am confused about this. I wish your answer. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @amisatoayak |
Beta Was this translation helpful? Give feedback.
Hi @amisatoayak
If you upgrade your porespy version you'll see that all generators now accepts the
seedargument, which we added specifically for the issue you're having. This seed is handled in a way that numba like (numba is used by rsa/random_spheres to make it faster).