from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class NoCcCls:
	"""NoCc commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("noCc", core, parent)
[docs]	def set(self, carrier: float) -> None:
		"""SCPI: CONFigure[:NR5G]:NOCC \n
		Snippet: driver.applications.k14Xnr5G.configure.nr5G.noCc.set(carrier = 1.0) \n
		Selects the number of component carriers analyzed in the measurement. \n
			:param carrier: Number of the component carriers that you would like to measure. The range depends on the measurement. For more information see 'Component carrier configuration'.
		"""
		param = Conversions.decimal_value_to_str(carrier)
		self._core.io.write(f'CONFigure:NR5G:NOCC {param}') 
[docs]	def get(self) -> float:
		"""SCPI: CONFigure[:NR5G]:NOCC \n
		Snippet: value: float = driver.applications.k14Xnr5G.configure.nr5G.noCc.get() \n
		Selects the number of component carriers analyzed in the measurement. \n
			:return: carrier: Number of the component carriers that you would like to measure. The range depends on the measurement. For more information see 'Component carrier configuration'."""
		response = self._core.io.query_str(f'CONFigure:NR5G:NOCC?')
		return Conversions.str_to_float(response)