To run the ferromagnetic INPUT generator, you will firstly need a working version of python (ideally >3.10) installed on your cluster

Download the latest Linux miniconda version onto the cluster - it should look something like
Miniconda3-latest-Linux-x86_64.sh

Install miniconda:
bash Miniconda3-latest-Linux-x86_64.sh
(Follow instructions as they appear on screen for default install)

Exit, then re-log in

Make a new conda environment containing python3.10:
conda create -n py310 python=3.10
(Follow instructions as they appear on screen for default install)

Put the basis_H_to_Zn.dat file in a directory; then modify the lines in ferro_poscar2inp.py and spinflipper.py with this directory location - the line to modify is:
with open('/home/euannb/scripts/basis_H_to_Zn.dat') as basfile:
(Line 166 in ferro_poscar2inp.py; line 162 in spinflipper.py)

Then, to run, appropriately fill out the nmr_input_settings.json file and run:

python3 ferro_poscar2inp.py POSCAR nmr_input_settings.json

This will generate an INPUT and a properties.input file - both can be used with the c17_lock_relax_prop.sh binary

For the spinflipper, you will need a working version of CASM installed: follow the instructions on
 https://prisms-center.github.io/CASMcode_docs/pages/installation/#install-using-conda
Then, using your POSCAR, enumerate the magnetic states:

ccasm init --prim POSCAR --force 
ccasm composition --calc
ccasm composition --select 0
ccasm enum -m 5 --max 1
ccasm select -t scel -c ALL --set-on
ccasm enum -m 3 -s casm_mag_settings.json
ccasm select --set-on
ccasm query --write-config
ccasm query --write-pos

Inside the training_data/SCEL1_1_1_1_0_0_0/ directory will be all the configurations, inside of which will be the config.json files; 
put the spinflipper.py script in each configuration's directory, as well as the nmr_spinflip_input_settings.json file
Then run as a for loop:
e.g., for 11 configurations labelled 0 to 10:
for i in {0..10}; do cd ../${i}/; python3 spinflipper.py POS nmr_spinflip_input_settings.json config.json; done