From aa3e68976de88eb2fe2f9d0a3d62f5507514f1b4 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Wed, 10 Apr 2024 20:20:17 +0200 Subject: [PATCH] Fix Codacy --- pyaedt/hfss.py | 2 +- pyaedt/mechanical.py | 4 ++-- pyaedt/rmxprt.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyaedt/hfss.py b/pyaedt/hfss.py index c9ba7eea41e..61bde380279 100644 --- a/pyaedt/hfss.py +++ b/pyaedt/hfss.py @@ -1146,7 +1146,7 @@ def create_sbr_linked_antenna( Whether to use composite ports. The default is ``False``. use_global_current : bool, optional Whether to use the global current. The default is ``True``. - current_conformance: str, optional + current_conformance : str, optional The default is ``"Disable"``. thin_sources : bool, optional The default is ``True``. diff --git a/pyaedt/mechanical.py b/pyaedt/mechanical.py index 73a74a7fa12..bd13294c213 100644 --- a/pyaedt/mechanical.py +++ b/pyaedt/mechanical.py @@ -686,9 +686,9 @@ def create_setup(self, name="MySetupAuto", setup_type=None, **kwargs): elif setup_type in SetupKeys.SetupNames: setup_type = SetupKeys.SetupNames.index(setup_type) if "props" in kwargs: - return self._create_setup(name=name, setuptype=setup_type, props=kwargs["props"]) + return self._create_setup(name=name, setup_type=setup_type, props=kwargs["props"]) else: - setup = self._create_setup(name=name, setuptype=setup_type) + setup = self._create_setup(name=name, setup_type=setup_type) setup.auto_update = False for arg_name, arg_value in kwargs.items(): if setup[arg_name] is not None: diff --git a/pyaedt/rmxprt.py b/pyaedt/rmxprt.py index 0278bd690c8..3ed62c4855b 100644 --- a/pyaedt/rmxprt.py +++ b/pyaedt/rmxprt.py @@ -4,6 +4,7 @@ from pyaedt.application.AnalysisRMxprt import FieldAnalysisRMxprt from pyaedt.generic.general_methods import pyaedt_function_handler +from pyaedt.modules.SetupTemplates import SetupKeys class RMXprtModule(object):