From 91fcd90a7ffd1bf09e748e55036caeb8845dfaa9 Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Fri, 9 Aug 2024 08:50:05 +0000 Subject: [PATCH] Test PF coil switch item membership --- process/pfcoil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)