diff --git a/motors/motor1.py b/motors/motor1.py index 63713fb..ce1c118 100644 --- a/motors/motor1.py +++ b/motors/motor1.py @@ -242,9 +242,9 @@ def assign_stator_coils(self, m2d: Maxwell2d) -> None: assignment=[self.geometry.id_coils[i_coil]], conductors_number="Nc", polarity=phase_polarity, - name=f"CS{i_coil+1}", + name=f"CS{i_coil + 1}", ) - names.append(f"CS{i_coil+1}") + names.append(f"CS{i_coil + 1}") i_coil += 1 m2d.assign_winding( assignment=None, diff --git a/motors/motor2.py b/motors/motor2.py index 7c7d414..0162493 100644 --- a/motors/motor2.py +++ b/motors/motor2.py @@ -343,4 +343,4 @@ def extract_results(self, solutions): val /= 1e9 out[i] = val - return data + return out diff --git a/tests/test_ansys_regression.py b/tests/test_ansys_regression.py index 971fad1..2417cbc 100644 --- a/tests/test_ansys_regression.py +++ b/tests/test_ansys_regression.py @@ -78,9 +78,7 @@ def test_legacy_and_live_design_produce_same_torque(tmp_path): legacy_design, live_design = None, None try: - legacy_design, torque_legacy = _build_and_compute( - LegacyDesign, "RegressionTest_legacy", str(tmp_path / "legacy.aedt"), barriers - ) + legacy_design, torque_legacy = _build_and_compute(LegacyDesign, "RegressionTest_legacy", str(tmp_path / "legacy.aedt"), barriers) live_geometry = Geometry() live_computation = Computation(live_geometry)