Source code for RsSmw.Implementations.Test.Serror.Set

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SetCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("set", core, parent)

[docs] def set(self, err_code: int, path: int) -> None: """ ``TEST<HW>:SERRor:SET`` \n Snippet: ``driver.test.serror.set.set(err_code = 1, path = 1)`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('err_code', err_code, DataType.Integer), ArgSingle('path', path, DataType.Integer)) self._core.io.write(f'TEST<HwInstance>:SERRor:SET {param}'.rstrip())