Source code for RsFsw.Implementations.Applications.K17_Mcgd.FormatPy.Dexport.FormatPy

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums


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

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

[docs] def set(self, file_format: enums.FileFormat) -> None: """ ``FORMat:DEXPort:FORMat`` \n Snippet: ``driver.applications.k17Mcgd.formatPy.dexport.formatPy.set(file_format = enums.FileFormat.CSV)`` \n Determines the format of the ASCII file to be imported or exported. Depending on the external program that creates the data file or evaluates it, a comma-separated list (CSV) or a plain data format (DAT) file is required. :param file_format: CSV | DAT """ param = Conversions.enum_scalar_to_str(file_format, enums.FileFormat) self._core.io.write(f'FORMat:DEXPort:FORMat {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.FileFormat: """ ``FORMat:DEXPort:FORMat`` \n Snippet: ``value: enums.FileFormat = driver.applications.k17Mcgd.formatPy.dexport.formatPy.get()`` \n Determines the format of the ASCII file to be imported or exported. Depending on the external program that creates the data file or evaluates it, a comma-separated list (CSV) or a plain data format (DAT) file is required. :return: file_format: CSV | DAT """ response = self._core.io.query_str(f'FORMat:DEXPort:FORMat?') return Conversions.str_to_scalar_enum(response, enums.FileFormat)