From 4d8f070608156e8f1154b07836bc3f6a030b35e5 Mon Sep 17 00:00:00 2001 From: Tom Body
Date: Mon, 13 Nov 2023 10:52:17 -0500 Subject: [PATCH] Update properties of coils in circuit for set/get --- freegs/machine.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/freegs/machine.py b/freegs/machine.py index 3062634..7b97fa2 100644 --- a/freegs/machine.py +++ b/freegs/machine.py @@ -98,32 +98,6 @@ def __getitem__(self, name): if label == name: return coil raise KeyError("Circuit does not contain coil with label '{0}'".format(name)) - - @property - def current(self) -> float: - return self._current - - @current.setter - def current(self, value: float): - """ - When updating the circuit current, also update the current in the coils in the circuit (with multipliers) - """ - self._current = value - for _, coil, multiplier in self.coils: - coil.current = multiplier * value - - @property - def control(self) -> bool: - return self._control - - @control.setter - def control(self, value: bool): - """ - When updating the circuit control switch, also update the control switch in the coils in the circuit - """ - self._control = value - for _, coil, _ in self.coils: - coil.control = value def psi(self, R, Z): """