diff --git a/process/pfcoil.py b/process/pfcoil.py index d241ba1bc5..a2950a37b4 100644 --- a/process/pfcoil.py +++ b/process/pfcoil.py @@ -640,7 +640,7 @@ def pfcoil(self): # Strand critical current calculation for costing in $/kAm # = superconducting filaments jc * (1 - strand copper fraction) - if pfv.isumatoh in {2, 6, 8}: + if pfv.isumatoh.item() in {2, 6, 8}: pfv.j_crit_str_pf = jsc else: pfv.j_crit_str_pf = jsc * (1 - pfv.fcupfsu) @@ -1202,7 +1202,7 @@ def ohcalc(self): ) # Strand critical current calculation for costing in $/kAm # = superconducting filaments jc * (1 - strand copper fraction) - if pfv.isumatoh in {2, 6, 8}: + if pfv.isumatoh.item() in {2, 6, 8}: pfv.j_crit_str_cs = pfv.jscoh_eof else: pfv.j_crit_str_cs = pfv.jscoh_eof * (1 - pfv.fcuohsu)