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