diff --git a/hypnotoad/cases/torpex.py b/hypnotoad/cases/torpex.py index 14370955..9efaea2c 100644 --- a/hypnotoad/cases/torpex.py +++ b/hypnotoad/cases/torpex.py @@ -297,6 +297,9 @@ def __init__(self, equilibOptions, meshOptions): f"{eqfile['Z'][0, 0][ZindMid, RindMid]}" ) self.Bt_axis = Bt[ZindMid, RindMid] + + self.f_psi_sign = numpy.sign(0.0 - psi[ZindMid, RindMid]) # H.seto + else: raise ValueError("Failed to initialise psi function from inputs")