# How to preserve reproducibility when applying perturbations in the event of a numerical instability crash

**URL:** <https://forum.access-hive.org.au/t/how-to-preserve-reproducibility-when-applying-perturbations-in-the-event-of-a-numerical-instability-crash/411>\
**Category:** Atmosphere\
**Tags:** python, documentation, payu, knowledge-base, needs-review\
**Created:** [11 February 2023 09:48 UTC](https://forum.access-hive.org.au/t/how-to-preserve-reproducibility-when-applying-perturbations-in-the-event-of-a-numerical-instability-crash/411 "2023-02-11T09:48:02Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![spencerwong](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/spencerwong/32/1894_2.png) [@spencerwong](https://forum.access-hive.org.au/u/spencerwong)\
**Post date:** [26 May 2023 00:37 UTC](https://forum.access-hive.org.au/t/how-to-preserve-reproducibility-when-applying-perturbations-in-the-event-of-a-numerical-instability-crash/411/15 "2023-05-26T00:37:08Z")

</div>

Hi Tammas,

I was wondering if you would be happy to run through the steps you take to get your version of the script working on Gadi? I’m working through some model crashes and so it would be great to use your version which lets you set a random seed.

I’ve copied the script over, but think I’m getting problems with python and numpy versions. When I load only the pythonlib/umfile\_utils module, I receive an error about the ‘default\_rng’ attribute not existing, while if I additionally load the conda/analysis3 module, numpy fails to import.

Many thanks,  
Spencer

---

_[View the full topic](https://forum.access-hive.org.au/t/how-to-preserve-reproducibility-when-applying-perturbations-in-the-event-of-a-numerical-instability-crash/411)._
