From 45910d08f23005222dbecf93e58b09fc323dc750 Mon Sep 17 00:00:00 2001 From: SushankMishra <158817130+SushankMishra@users.noreply.github.com> Date: Sun, 8 Jun 2025 20:07:24 +0530 Subject: [PATCH] Update fitting.py 'Split' variable remains unassigned without the explicit assignment in selective cases and is referenced before assignment in the iterative loop on line 330. Fixed through the given explicit assignment. --- impedance/models/circuits/fitting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/impedance/models/circuits/fitting.py b/impedance/models/circuits/fitting.py index 5fe1c30..a37de37 100644 --- a/impedance/models/circuits/fitting.py +++ b/impedance/models/circuits/fitting.py @@ -324,6 +324,8 @@ def count_parens(string): split = parallel elif series == parallel: # only single element split = series + else: + split = parallel for i, elem in enumerate(split): if ',' in elem or '-' in elem: