From f31eeef14e4d45bc2fbb626aeac8670178ce6409 Mon Sep 17 00:00:00 2001 From: "athoy.nilima@ukaea.uk" Date: Thu, 3 Sep 2026 16:18:40 +0100 Subject: [PATCH 1/3] Clarify peak b field error message --- process/models/pfcoil.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/process/models/pfcoil.py b/process/models/pfcoil.py index 33f19af83b..29c98e5fc9 100644 --- a/process/models/pfcoil.py +++ b/process/models/pfcoil.py @@ -4437,7 +4437,8 @@ def peak_b_field_at_pf_coil( Raises ------ ProcessValueError - Illegal value of t_b_field_peak + Illegal value of t_b_field_peak: i.e. could not determine whether + the peak current occurred at pulse start, flat-top, or pulse end. Notes ----- @@ -4478,7 +4479,8 @@ def peak_b_field_at_pf_coil( t_b_field_peak = 5 else: raise ProcessValueError( - "Illegal value of it; possible rounding error", + "Could not determine whether the peak current occurred at pulse start, " + "flat-top, or pulse end. Possible rounding error", t_b_field_peak=t_b_field_peak, ) From 6958af7636f37ba96bcacaac1ba346f266a70a6e Mon Sep 17 00:00:00 2001 From: Athoy Nilima <88035440+athoynilimanew@users.noreply.github.com> Date: Fri, 4 Sep 2026 09:53:23 +0100 Subject: [PATCH 2/3] Update process/models/pfcoil.py Co-authored-by: clmould <86794332+clmould@users.noreply.github.com> --- process/models/pfcoil.py | 1 + 1 file changed, 1 insertion(+) diff --git a/process/models/pfcoil.py b/process/models/pfcoil.py index 29c98e5fc9..0c54d859d6 100644 --- a/process/models/pfcoil.py +++ b/process/models/pfcoil.py @@ -4479,6 +4479,7 @@ def peak_b_field_at_pf_coil( t_b_field_peak = 5 else: raise ProcessValueError( + "Illegal value of t_b_field_peak;" "Could not determine whether the peak current occurred at pulse start, " "flat-top, or pulse end. Possible rounding error", t_b_field_peak=t_b_field_peak, From 5ba06968a55d8f8e5d56c4c3650e4f316fcbaea6 Mon Sep 17 00:00:00 2001 From: Athoy Nilima <88035440+athoynilimanew@users.noreply.github.com> Date: Fri, 4 Sep 2026 10:58:51 +0100 Subject: [PATCH 3/3] Update process/models/pfcoil.py Co-authored-by: clmould <86794332+clmould@users.noreply.github.com> --- process/models/pfcoil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process/models/pfcoil.py b/process/models/pfcoil.py index 0c54d859d6..0baf378283 100644 --- a/process/models/pfcoil.py +++ b/process/models/pfcoil.py @@ -4479,8 +4479,8 @@ def peak_b_field_at_pf_coil( t_b_field_peak = 5 else: raise ProcessValueError( - "Illegal value of t_b_field_peak;" - "Could not determine whether the peak current occurred at pulse start, " + "Illegal value of t_b_field_peak; " + "could not determine whether the peak current occurred at pulse start, " "flat-top, or pulse end. Possible rounding error", t_b_field_peak=t_b_field_peak, )