# Perturbing restarts conda package

**URL:** <https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050>\
**Category:** General\
**Tags:** help\
**Created:** [1 October 2026 05:33 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050 "2026-10-01T05:33:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/jhan/32/721_2.png) [@Jhan](https://forum.access-hive.org.au/u/Jhan)\
**Post date:** [1 October 2026 05:33 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050/1 "2026-10-01T05:33:59Z")

</div>

## Description of request:

Perturbation of restarts is sometimes necessary to get past a numerical instability.

## Environment:

NCI  
login node

module use /g/data/xp65/public/modules  
module load conda/analysis3-25.12  
~access/apps/pythonlib/umfile\_utils/access\_cm2/perturbIC.py -a 0.05 -s 3 $1

This still works, however throws a warning to upgrade to conda/analysis3. fine this is the default now, but the point is that with “module load conda/analysis3-26.08” instead - it doesn’t work.

## What executed:

## Actual results:

Loading conda/analysis3-26.08  
Loading requirement: singularity  
Traceback (most recent call last):  
File “/g/data/access/projects/access/apps/pythonlib/umfile\_utils/access\_cm2/perturbIC.py”, line 31, in   
f = umfile.UMFile(args.ifile, ‘r+’)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/g/data/access/projects/access/apps/pythonlib/umfile\_utils/access\_cm2/umfile.py”, line 27, in **init**  
self.determine\_file\_type()  
File “/g/data/access/projects/access/apps/pythonlib/umfile\_utils/access\_cm2/umfile.py”, line 68, in determine\_file\_type  
h = np.fromstring(s,np.int64).newbyteorder(endian)  
^^^^^^^^^^^^^^^^^^^^^^^^^  
ValueError: The binary mode of fromstring is removed, use frombuffer instead

## Expected results:

## Additional info:

---

<div class="post-metadata">

**Author:** ![atteggiani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/atteggiani/32/212_2.png) [@atteggiani](https://forum.access-hive.org.au/u/atteggiani)\
**Post date:** [1 October 2026 07:19 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050/2 "2026-10-01T07:19:48Z")

</div>

Hi @Jhan,

A revised version of the `perturbIC` routine is now included in the [model-processing environment](https://forum.access-hive.org.au/t/model-processing-environment-releases/6990/3), as part of the [umfile\_utils](https://github.com/ACCESS-NRI/umfile_utils#umfile_utils) Python package.

To run your command above you can now use:

```auto
module use /g/data/vk83/modules
module load model-processing
perturbIC -a 0.05 -s 3 <input_path>

```

Cheers  
Davide

---

<div class="post-metadata">

**Author:** ![Jhan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/jhan/32/721_2.png) [@Jhan](https://forum.access-hive.org.au/u/Jhan)\
**Post date:** [5 October 2026 01:51 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050/3 "2026-10-05T01:51:56Z")

</div>

spoke to soon

I was just waiting on the updated module to USE/LOAD but I didnt try it until today

gadi:atmosphere\> pwd -P  
/scratch/p66/jxs599/access-esm/archive/e2-1pc-1099919c/restart235/atmosphere  
gadi:atmosphere\> ls -altr  
total 2590164  
-rw-r----- 1 jxs599 p66 30 Sep 24 02:31 um.res.yaml  
drwxr-s— 6 jxs599 p66 4096 Sep 24 02:31 ../  
drwxr-s— 2 jxs599 p66 4096 Oct 1 13:09 ./  
-rw-r----- 1 jxs599 p66 1326153728 Oct 1 13:09 restart\_dump.astart.orig  
-rw-r----- 1 jxs599 p66 1326153728 Oct 1 15:42 restart\_dump.astart  
gadi:atmosphere\> module use /g/data/vk83/modules  
gadi:atmosphere\> module load model-processing  
Loaded module model-processing/2026.09.15  
gadi:atmosphere\> perturbIC.py -a 0.05 -s 3 restart\_dump.astart  
bash: perturbIC.py: command not found

Variations that I have tried don’t work either?

---

<div class="post-metadata">

**Author:** ![atteggiani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/atteggiani/32/212_2.png) [@atteggiani](https://forum.access-hive.org.au/u/atteggiani)\
**Post date:** [5 October 2026 03:46 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050/4 "2026-10-05T03:46:50Z")

</div>

Sorry @Jhan, my bad.  
The correct command is `perturbIC` (without the `.py` extension):

```auto
perturbIC -a 0.05 -s 3 <input_path>

```

---

<div class="post-metadata">

**Author:** ![Jhan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/jhan/32/721_2.png) [@Jhan](https://forum.access-hive.org.au/u/Jhan)\
**Post date:** [5 October 2026 05:39 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050/5 "2026-10-05T05:39:38Z")

</div>

Im pretty sure was one of the variations I tried. its the first thing I looked for following a “module display” - I’ll try it again later when I can

---

<div class="post-metadata">

**Author:** ![atteggiani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/atteggiani/32/212_2.png) [@atteggiani](https://forum.access-hive.org.au/u/atteggiani)\
**Post date:** [5 October 2026 06:00 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050/6 "2026-10-05T06:00:06Z")

</div>

I tested using `/scratch/p66/jxs599/access-esm/archive/e2-1pc-1099919c/restart234/atmosphere/restart_dump.astart` and it worked.

Please let me know how it goes when you have a try.

Cheers  
Davide

---

<div class="post-metadata">

**Author:** ![Jhan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/jhan/32/721_2.png) [@Jhan](https://forum.access-hive.org.au/u/Jhan)\
**Post date:** [5 October 2026 23:27 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050/7 "2026-10-05T23:27:16Z")

</div>

not sure what the problem was, but it worked this time

one thing - I had to “reinstate” $UMDIR, to squash a warning at least.

Cheers,  
Jhan

---

<div class="post-metadata">

**Author:** ![atteggiani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/atteggiani/32/212_2.png) [@atteggiani](https://forum.access-hive.org.au/u/atteggiani)\
**Post date:** [6 October 2026 00:04 UTC](https://forum.access-hive.org.au/t/perturbing-restarts-conda-package/7050/8 "2026-10-06T00:04:25Z")

</div>


