Closed cctutum closed 3 weeks ago
Hi, have you built and installed spec and the python wrapper for it, from https://github.com/PrincetonUniversity/SPEC? Installing simsopt does not automatically install spec. It looks like there are some instructions for spec here
Thank you very much for the quick reply. I haven't installed it separately and will check it out!
Hi @cctutum, I can help with getting SPEC installed. Contact me if you need, for now closing the issue.
I have just installed simsopt using
pip install simsopt
on a fresh conda environment and am on main branch (version 1.3.0).I am trying to run the SPEC example in the "Optimizing an equilibrium code" (https://simsopt.readthedocs.io/en/latest/example_vmec_only.html).
When I come to this line: equil = Spec('2DOF_targetIotaAndVolume.sp')
I am getting the following error:
spec
is None because when spec.py in ~/anaconda3/envs/SIMSOPT/lib/python3.11/site-packages/simsopt/mhd is called, it runs this (Lines=25-29):However, it cannot find
spec_f90wrapped
which is a Fortran module that is wrapped for Python using f2py (specifically, Numpy). I have numpy version 1.26.4.How can I get this fortran wrapper installed in the mhd folder?