Looking through your code, I have a few questions:
- Do *.cell and *.magres encode the same information?
- Standard structure files I am aware of are xyz, cif, mol, xsf, etc - do you have scripts to convert these typical structural files to castep compatible ones?