from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CorrectionCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("correction", core, parent)
[docs]
def get_file(self) -> str:
"""
``SOURce<HW>:BEXTension:CORRection:FILE`` \n
Snippet: ``value: str = driver.source.bextension.correction.get_file()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BEXTension:CORRection:FILE?')
return trim_str_response(response)
[docs]
def set_file(self, correction_file: str) -> None:
"""
``SOURce<HW>:BEXTension:CORRection:FILE`` \n
Snippet: ``driver.source.bextension.correction.set_file(correction_file = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(correction_file)
self._core.io.write(f'SOURce<HwInstance>:BEXTension:CORRection:FILE {param}')
[docs]
def get_state(self) -> bool:
"""
``SOURce<HW>:BEXTension:CORRection:STATe`` \n
Snippet: ``value: bool = driver.source.bextension.correction.get_state()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BEXTension:CORRection:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``SOURce<HW>:BEXTension:CORRection:STATe`` \n
Snippet: ``driver.source.bextension.correction.set_state(state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:BEXTension:CORRection:STATe {param}')