old_contents: ﻿from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  
  import typing  # NOQA: F401
  
  from nixnet import _funcs
  from nixnet import _props
  
  from nixnet._session import collection
  
  
  class Signals(collection.Collection):
      """Signals in a session."""
  
      def __repr__(self):
          return 'Session.Signals(handle={0})'.format(self._handle)
  
      def _create_item(self, handle, index, name):
          return Signal(handle, index, name)
  
      @property
      def resamp_rate(self):
          # type: () -> float
          """float: Rate used to resample frame data to/from signal data in waveforms.
  
          The units are in Hertz (samples per second).
          """
          return _props.get_session_resamp_rate(self._handle)
  
      @resamp_rate.setter
      def resamp_rate(self, value):
          # type: (float) -> None
          _props.set_session_resamp_rate(self._handle, value)
  
  
  class SinglePointInSignals(Signals):
      """Writeable signals in a session."""
  
      def __repr__(self):
          return 'Session.SinglePointInSignals(handle={0})'.format(self._handle)
  
      def read(self):
          # type: () -> typing.Iterable[typing.Tuple[int, float]]
          """Read data from a Signal Input Single-Point session.
  
          Yields:
              tuple of int and float: Timestamp and signal
          """
          num_signals = len(self)
          timestamps, values = _funcs.nx_read_signal_single_point(self._handle, num_signals)
          for timestamp, value in zip(timestamps, values):
              yield timestamp.value, value.value
  
  
  class SinglePointOutSignals(Signals):
      """Writeable signals in a session."""
  
      def __repr__(self):
          return 'Session.SinglePointOutSignals(handle={0})'.format(self._handle)
  
      def write(
              self,
              signals):
          # type: (typing.Iterable[float]) -> None
          """Write data to a Signal Output Single-Point session.
  
          Args:
              signals(list of float): A list of signal values (float).
          """
          _funcs.nx_write_signal_single_point(self._handle, list(signals))
  
  
  class Signal(collection.Item):
      """Signal configuration for a session."""
  
      def __repr__(self):
          return 'Session.Signal(handle={0}, index={0})'.format(self._handle, self._index)
  
new_contents: ﻿from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  
  import typing  # NOQA: F401
  
  from nixnet import _funcs
  
  from nixnet._session import collection
  
  
  class Signals(collection.Collection):
      """Signals in a session."""
  
      def __repr__(self):
          return 'Session.Signals(handle={0})'.format(self._handle)
  
      def _create_item(self, handle, index, name):
          return Signal(handle, index, name)
  
  
  class SinglePointInSignals(Signals):
      """Writeable signals in a session."""
  
      def __repr__(self):
          return 'Session.SinglePointInSignals(handle={0})'.format(self._handle)
  
      def read(self):
          # type: () -> typing.Iterable[typing.Tuple[int, float]]
          """Read data from a Signal Input Single-Point session.
  
          Yields:
              tuple of int and float: Timestamp and signal
          """
          num_signals = len(self)
          timestamps, values = _funcs.nx_read_signal_single_point(self._handle, num_signals)
          for timestamp, value in zip(timestamps, values):
              yield timestamp.value, value.value
  
  
  class SinglePointOutSignals(Signals):
      """Writeable signals in a session."""
  
      def __repr__(self):
          return 'Session.SinglePointOutSignals(handle={0})'.format(self._handle)
  
      def write(
              self,
              signals):
          # type: (typing.Iterable[float]) -> None
          """Write data to a Signal Output Single-Point session.
  
          Args:
              signals(list of float): A list of signal values (float).
          """
          _funcs.nx_write_signal_single_point(self._handle, list(signals))
  
  
  class Signal(collection.Item):
      """Signal configuration for a session."""
  
      def __repr__(self):
          return 'Session.Signal(handle={0}, index={0})'.format(self._handle, self._index)
  
subject: Remove irrelevant resamp_rate property