diff --git a/generated/nidaqmx/stream_readers.py b/generated/nidaqmx/stream_readers.py index 82e456d63..508e37b3f 100644 --- a/generated/nidaqmx/stream_readers.py +++ b/generated/nidaqmx/stream_readers.py @@ -3,7 +3,13 @@ """ # Import all classes from the subpackage to maintain backward compatibility -from .stream_readers import * # noqa: F403, F401 - -# Re-export the __all__ list from the subpackage -from .stream_readers import __all__ +from nidaqmx.stream_readers import ( + AnalogSingleChannelReader, + AnalogMultiChannelReader, + AnalogUnscaledReader, + CounterReader, + DigitalSingleChannelReader, + DigitalMultiChannelReader, + AUTO_START_UNSET, + __all__ +) diff --git a/generated/nidaqmx/stream_readers/__init__.py b/generated/nidaqmx/stream_readers/__init__.py index e4a29fef7..bd1beccb5 100644 --- a/generated/nidaqmx/stream_readers/__init__.py +++ b/generated/nidaqmx/stream_readers/__init__.py @@ -8,13 +8,13 @@ from nidaqmx import DaqError -from .analog_single_channel_reader import AnalogSingleChannelReader -from .analog_multi_channel_reader import AnalogMultiChannelReader -from .analog_unscaled_reader import AnalogUnscaledReader -from .counter_reader import CounterReader -from .digital_single_channel_reader import DigitalSingleChannelReader -from .digital_multi_channel_reader import DigitalMultiChannelReader -from .power_readers import ( +from nidaqmx.stream_readers._analog_single_channel_reader import AnalogSingleChannelReader +from nidaqmx.stream_readers._analog_multi_channel_reader import AnalogMultiChannelReader +from nidaqmx.stream_readers._analog_unscaled_reader import AnalogUnscaledReader +from nidaqmx.stream_readers._counter_reader import CounterReader +from nidaqmx.stream_readers._digital_single_channel_reader import DigitalSingleChannelReader +from nidaqmx.stream_readers._digital_multi_channel_reader import DigitalMultiChannelReader +from nidaqmx.stream_readers._power_readers import ( PowerSingleChannelReader, PowerMultiChannelReader, PowerBinaryReader, diff --git a/generated/nidaqmx/stream_readers/analog_multi_channel_reader.py b/generated/nidaqmx/stream_readers/_analog_multi_channel_reader.py similarity index 99% rename from generated/nidaqmx/stream_readers/analog_multi_channel_reader.py rename to generated/nidaqmx/stream_readers/_analog_multi_channel_reader.py index 7eef6e59c..bb0f3b62d 100644 --- a/generated/nidaqmx/stream_readers/analog_multi_channel_reader.py +++ b/generated/nidaqmx/stream_readers/_analog_multi_channel_reader.py @@ -8,7 +8,7 @@ from nidaqmx.error_codes import DAQmxErrors from nitypes.waveform import AnalogWaveform -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class AnalogMultiChannelReader(ChannelReaderBase): diff --git a/generated/nidaqmx/stream_readers/analog_single_channel_reader.py b/generated/nidaqmx/stream_readers/_analog_single_channel_reader.py similarity index 99% rename from generated/nidaqmx/stream_readers/analog_single_channel_reader.py rename to generated/nidaqmx/stream_readers/_analog_single_channel_reader.py index 2df27dffd..a04bd8ef0 100644 --- a/generated/nidaqmx/stream_readers/analog_single_channel_reader.py +++ b/generated/nidaqmx/stream_readers/_analog_single_channel_reader.py @@ -8,7 +8,7 @@ from nidaqmx.error_codes import DAQmxErrors from nitypes.waveform import AnalogWaveform -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class AnalogSingleChannelReader(ChannelReaderBase): diff --git a/src/handwritten/stream_readers/analog_unscaled_reader.py b/generated/nidaqmx/stream_readers/_analog_unscaled_reader.py similarity index 99% rename from src/handwritten/stream_readers/analog_unscaled_reader.py rename to generated/nidaqmx/stream_readers/_analog_unscaled_reader.py index 0e4e31640..db4a220d4 100644 --- a/src/handwritten/stream_readers/analog_unscaled_reader.py +++ b/generated/nidaqmx/stream_readers/_analog_unscaled_reader.py @@ -2,7 +2,7 @@ from nidaqmx.constants import FillMode, READ_ALL_AVAILABLE -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class AnalogUnscaledReader(ChannelReaderBase): diff --git a/src/handwritten/stream_readers/counter_reader.py b/generated/nidaqmx/stream_readers/_counter_reader.py similarity index 99% rename from src/handwritten/stream_readers/counter_reader.py rename to generated/nidaqmx/stream_readers/_counter_reader.py index 546ccdeed..f810dc640 100644 --- a/src/handwritten/stream_readers/counter_reader.py +++ b/generated/nidaqmx/stream_readers/_counter_reader.py @@ -3,7 +3,7 @@ from nidaqmx.constants import FillMode, READ_ALL_AVAILABLE from nidaqmx.types import CtrFreq, CtrTick, CtrTime -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class CounterReader(ChannelReaderBase): diff --git a/generated/nidaqmx/stream_readers/digital_multi_channel_reader.py b/generated/nidaqmx/stream_readers/_digital_multi_channel_reader.py similarity index 99% rename from generated/nidaqmx/stream_readers/digital_multi_channel_reader.py rename to generated/nidaqmx/stream_readers/_digital_multi_channel_reader.py index 92355ff71..69f18e5f4 100644 --- a/generated/nidaqmx/stream_readers/digital_multi_channel_reader.py +++ b/generated/nidaqmx/stream_readers/_digital_multi_channel_reader.py @@ -8,7 +8,7 @@ from nidaqmx.error_codes import DAQmxErrors from nitypes.waveform import DigitalWaveform -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class DigitalMultiChannelReader(ChannelReaderBase): diff --git a/generated/nidaqmx/stream_readers/digital_single_channel_reader.py b/generated/nidaqmx/stream_readers/_digital_single_channel_reader.py similarity index 99% rename from generated/nidaqmx/stream_readers/digital_single_channel_reader.py rename to generated/nidaqmx/stream_readers/_digital_single_channel_reader.py index ea1687767..31cf6bbb3 100644 --- a/generated/nidaqmx/stream_readers/digital_single_channel_reader.py +++ b/generated/nidaqmx/stream_readers/_digital_single_channel_reader.py @@ -6,7 +6,7 @@ from nidaqmx.constants import FillMode, READ_ALL_AVAILABLE from nitypes.waveform import DigitalWaveform -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class DigitalSingleChannelReader(ChannelReaderBase): diff --git a/src/handwritten/stream_readers/power_readers.py b/generated/nidaqmx/stream_readers/_power_readers.py similarity index 99% rename from src/handwritten/stream_readers/power_readers.py rename to generated/nidaqmx/stream_readers/_power_readers.py index 2a581f9cf..cbb37cc08 100644 --- a/src/handwritten/stream_readers/power_readers.py +++ b/generated/nidaqmx/stream_readers/_power_readers.py @@ -3,7 +3,7 @@ from nidaqmx.constants import FillMode, READ_ALL_AVAILABLE from nidaqmx.types import PowerMeasurement -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class PowerSingleChannelReader(ChannelReaderBase): diff --git a/generated/nidaqmx/stream_writers.py b/generated/nidaqmx/stream_writers.py index e9073de43..9e39c9d34 100644 --- a/generated/nidaqmx/stream_writers.py +++ b/generated/nidaqmx/stream_writers.py @@ -3,7 +3,13 @@ """ # Import all classes from the subpackage to maintain backward compatibility -from .stream_writers import * # noqa: F403, F401 - -# Re-export the __all__ list from the subpackage -from .stream_writers import __all__ \ No newline at end of file +from nidaqmx.stream_writers import ( + AnalogSingleChannelWriter, + AnalogMultiChannelWriter, + AnalogUnscaledWriter, + CounterWriter, + DigitalSingleChannelWriter, + DigitalMultiChannelWriter, + AUTO_START_UNSET, + __all__ +) \ No newline at end of file diff --git a/generated/nidaqmx/stream_writers/__init__.py b/generated/nidaqmx/stream_writers/__init__.py index 37aabed61..eb2520747 100644 --- a/generated/nidaqmx/stream_writers/__init__.py +++ b/generated/nidaqmx/stream_writers/__init__.py @@ -6,12 +6,13 @@ from __future__ import annotations -from .analog_single_channel_writer import AnalogSingleChannelWriter -from .analog_multi_channel_writer import AnalogMultiChannelWriter -from .analog_unscaled_writer import AnalogUnscaledWriter -from .counter_writer import CounterWriter -from .digital_single_channel_writer import DigitalSingleChannelWriter -from .digital_multi_channel_writer import DigitalMultiChannelWriter +from nidaqmx.stream_writers._analog_single_channel_writer import AnalogSingleChannelWriter +from nidaqmx.stream_writers._analog_multi_channel_writer import AnalogMultiChannelWriter +from nidaqmx.stream_writers._analog_unscaled_writer import AnalogUnscaledWriter +from nidaqmx.stream_writers._counter_writer import CounterWriter +from nidaqmx.stream_writers._digital_single_channel_writer import DigitalSingleChannelWriter +from nidaqmx.stream_writers._digital_multi_channel_writer import DigitalMultiChannelWriter +from nidaqmx.stream_writers._channel_writer_base import UnsetAutoStartSentinel, AUTO_START_UNSET __all__ = [ 'AnalogSingleChannelWriter', @@ -19,4 +20,6 @@ 'AnalogUnscaledWriter', 'CounterWriter', 'DigitalSingleChannelWriter', - 'DigitalMultiChannelWriter'] + 'DigitalMultiChannelWriter', + 'UnsetAutoStartSentinel', + 'AUTO_START_UNSET'] diff --git a/generated/nidaqmx/stream_writers/analog_multi_channel_writer.py b/generated/nidaqmx/stream_writers/_analog_multi_channel_writer.py similarity index 97% rename from generated/nidaqmx/stream_writers/analog_multi_channel_writer.py rename to generated/nidaqmx/stream_writers/_analog_multi_channel_writer.py index c314d1a26..aa2213e4b 100644 --- a/generated/nidaqmx/stream_writers/analog_multi_channel_writer.py +++ b/generated/nidaqmx/stream_writers/_analog_multi_channel_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class AnalogMultiChannelWriter(ChannelWriterBase): diff --git a/generated/nidaqmx/stream_writers/analog_single_channel_writer.py b/generated/nidaqmx/stream_writers/_analog_single_channel_writer.py similarity index 97% rename from generated/nidaqmx/stream_writers/analog_single_channel_writer.py rename to generated/nidaqmx/stream_writers/_analog_single_channel_writer.py index e5334140d..138280b85 100644 --- a/generated/nidaqmx/stream_writers/analog_single_channel_writer.py +++ b/generated/nidaqmx/stream_writers/_analog_single_channel_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class AnalogSingleChannelWriter(ChannelWriterBase): diff --git a/src/handwritten/stream_writers/analog_unscaled_writer.py b/generated/nidaqmx/stream_writers/_analog_unscaled_writer.py similarity index 99% rename from src/handwritten/stream_writers/analog_unscaled_writer.py rename to generated/nidaqmx/stream_writers/_analog_unscaled_writer.py index 197fe297f..cc23eac3f 100644 --- a/src/handwritten/stream_writers/analog_unscaled_writer.py +++ b/generated/nidaqmx/stream_writers/_analog_unscaled_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class AnalogUnscaledWriter(ChannelWriterBase): diff --git a/generated/nidaqmx/stream_writers/_channel_writer_base.py b/generated/nidaqmx/stream_writers/_channel_writer_base.py index c0d02a59a..965736e5d 100644 --- a/generated/nidaqmx/stream_writers/_channel_writer_base.py +++ b/generated/nidaqmx/stream_writers/_channel_writer_base.py @@ -3,12 +3,13 @@ class UnsetAutoStartSentinel: - pass + """Sentinel class for unset auto_start parameter.""" + + def __init__(self): + raise RuntimeError("Cannot instantiate UnsetAutoStartSentinel. Use AUTO_START_UNSET instead.") -AUTO_START_UNSET = UnsetAutoStartSentinel() - -del UnsetAutoStartSentinel +AUTO_START_UNSET = object.__new__(UnsetAutoStartSentinel) class ChannelWriterBase: diff --git a/generated/nidaqmx/stream_writers/counter_writer.py b/generated/nidaqmx/stream_writers/_counter_writer.py similarity index 99% rename from generated/nidaqmx/stream_writers/counter_writer.py rename to generated/nidaqmx/stream_writers/_counter_writer.py index 2c75a3720..d005d1c05 100644 --- a/generated/nidaqmx/stream_writers/counter_writer.py +++ b/generated/nidaqmx/stream_writers/_counter_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class CounterWriter(ChannelWriterBase): diff --git a/generated/nidaqmx/stream_writers/digital_multi_channel_writer.py b/generated/nidaqmx/stream_writers/_digital_multi_channel_writer.py similarity index 99% rename from generated/nidaqmx/stream_writers/digital_multi_channel_writer.py rename to generated/nidaqmx/stream_writers/_digital_multi_channel_writer.py index 15224fd0d..58981a8ef 100644 --- a/generated/nidaqmx/stream_writers/digital_multi_channel_writer.py +++ b/generated/nidaqmx/stream_writers/_digital_multi_channel_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class DigitalMultiChannelWriter(ChannelWriterBase): diff --git a/generated/nidaqmx/stream_writers/digital_single_channel_writer.py b/generated/nidaqmx/stream_writers/_digital_single_channel_writer.py similarity index 99% rename from generated/nidaqmx/stream_writers/digital_single_channel_writer.py rename to generated/nidaqmx/stream_writers/_digital_single_channel_writer.py index 0edbacdb9..c1c731858 100644 --- a/generated/nidaqmx/stream_writers/digital_single_channel_writer.py +++ b/generated/nidaqmx/stream_writers/_digital_single_channel_writer.py @@ -2,7 +2,7 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class DigitalSingleChannelWriter(ChannelWriterBase): diff --git a/src/handwritten/stream_readers.py b/src/handwritten/stream_readers.py index 82e456d63..508e37b3f 100644 --- a/src/handwritten/stream_readers.py +++ b/src/handwritten/stream_readers.py @@ -3,7 +3,13 @@ """ # Import all classes from the subpackage to maintain backward compatibility -from .stream_readers import * # noqa: F403, F401 - -# Re-export the __all__ list from the subpackage -from .stream_readers import __all__ +from nidaqmx.stream_readers import ( + AnalogSingleChannelReader, + AnalogMultiChannelReader, + AnalogUnscaledReader, + CounterReader, + DigitalSingleChannelReader, + DigitalMultiChannelReader, + AUTO_START_UNSET, + __all__ +) diff --git a/src/handwritten/stream_readers/__init__.py b/src/handwritten/stream_readers/__init__.py index e4a29fef7..bd1beccb5 100644 --- a/src/handwritten/stream_readers/__init__.py +++ b/src/handwritten/stream_readers/__init__.py @@ -8,13 +8,13 @@ from nidaqmx import DaqError -from .analog_single_channel_reader import AnalogSingleChannelReader -from .analog_multi_channel_reader import AnalogMultiChannelReader -from .analog_unscaled_reader import AnalogUnscaledReader -from .counter_reader import CounterReader -from .digital_single_channel_reader import DigitalSingleChannelReader -from .digital_multi_channel_reader import DigitalMultiChannelReader -from .power_readers import ( +from nidaqmx.stream_readers._analog_single_channel_reader import AnalogSingleChannelReader +from nidaqmx.stream_readers._analog_multi_channel_reader import AnalogMultiChannelReader +from nidaqmx.stream_readers._analog_unscaled_reader import AnalogUnscaledReader +from nidaqmx.stream_readers._counter_reader import CounterReader +from nidaqmx.stream_readers._digital_single_channel_reader import DigitalSingleChannelReader +from nidaqmx.stream_readers._digital_multi_channel_reader import DigitalMultiChannelReader +from nidaqmx.stream_readers._power_readers import ( PowerSingleChannelReader, PowerMultiChannelReader, PowerBinaryReader, diff --git a/src/handwritten/stream_readers/analog_multi_channel_reader.py b/src/handwritten/stream_readers/_analog_multi_channel_reader.py similarity index 99% rename from src/handwritten/stream_readers/analog_multi_channel_reader.py rename to src/handwritten/stream_readers/_analog_multi_channel_reader.py index 7eef6e59c..bb0f3b62d 100644 --- a/src/handwritten/stream_readers/analog_multi_channel_reader.py +++ b/src/handwritten/stream_readers/_analog_multi_channel_reader.py @@ -8,7 +8,7 @@ from nidaqmx.error_codes import DAQmxErrors from nitypes.waveform import AnalogWaveform -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class AnalogMultiChannelReader(ChannelReaderBase): diff --git a/src/handwritten/stream_readers/analog_single_channel_reader.py b/src/handwritten/stream_readers/_analog_single_channel_reader.py similarity index 99% rename from src/handwritten/stream_readers/analog_single_channel_reader.py rename to src/handwritten/stream_readers/_analog_single_channel_reader.py index 2df27dffd..a04bd8ef0 100644 --- a/src/handwritten/stream_readers/analog_single_channel_reader.py +++ b/src/handwritten/stream_readers/_analog_single_channel_reader.py @@ -8,7 +8,7 @@ from nidaqmx.error_codes import DAQmxErrors from nitypes.waveform import AnalogWaveform -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class AnalogSingleChannelReader(ChannelReaderBase): diff --git a/generated/nidaqmx/stream_readers/analog_unscaled_reader.py b/src/handwritten/stream_readers/_analog_unscaled_reader.py similarity index 99% rename from generated/nidaqmx/stream_readers/analog_unscaled_reader.py rename to src/handwritten/stream_readers/_analog_unscaled_reader.py index 0e4e31640..db4a220d4 100644 --- a/generated/nidaqmx/stream_readers/analog_unscaled_reader.py +++ b/src/handwritten/stream_readers/_analog_unscaled_reader.py @@ -2,7 +2,7 @@ from nidaqmx.constants import FillMode, READ_ALL_AVAILABLE -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class AnalogUnscaledReader(ChannelReaderBase): diff --git a/generated/nidaqmx/stream_readers/counter_reader.py b/src/handwritten/stream_readers/_counter_reader.py similarity index 99% rename from generated/nidaqmx/stream_readers/counter_reader.py rename to src/handwritten/stream_readers/_counter_reader.py index 546ccdeed..f810dc640 100644 --- a/generated/nidaqmx/stream_readers/counter_reader.py +++ b/src/handwritten/stream_readers/_counter_reader.py @@ -3,7 +3,7 @@ from nidaqmx.constants import FillMode, READ_ALL_AVAILABLE from nidaqmx.types import CtrFreq, CtrTick, CtrTime -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class CounterReader(ChannelReaderBase): diff --git a/src/handwritten/stream_readers/digital_multi_channel_reader.py b/src/handwritten/stream_readers/_digital_multi_channel_reader.py similarity index 99% rename from src/handwritten/stream_readers/digital_multi_channel_reader.py rename to src/handwritten/stream_readers/_digital_multi_channel_reader.py index 92355ff71..69f18e5f4 100644 --- a/src/handwritten/stream_readers/digital_multi_channel_reader.py +++ b/src/handwritten/stream_readers/_digital_multi_channel_reader.py @@ -8,7 +8,7 @@ from nidaqmx.error_codes import DAQmxErrors from nitypes.waveform import DigitalWaveform -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class DigitalMultiChannelReader(ChannelReaderBase): diff --git a/src/handwritten/stream_readers/digital_single_channel_reader.py b/src/handwritten/stream_readers/_digital_single_channel_reader.py similarity index 99% rename from src/handwritten/stream_readers/digital_single_channel_reader.py rename to src/handwritten/stream_readers/_digital_single_channel_reader.py index ea1687767..31cf6bbb3 100644 --- a/src/handwritten/stream_readers/digital_single_channel_reader.py +++ b/src/handwritten/stream_readers/_digital_single_channel_reader.py @@ -6,7 +6,7 @@ from nidaqmx.constants import FillMode, READ_ALL_AVAILABLE from nitypes.waveform import DigitalWaveform -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class DigitalSingleChannelReader(ChannelReaderBase): diff --git a/generated/nidaqmx/stream_readers/power_readers.py b/src/handwritten/stream_readers/_power_readers.py similarity index 99% rename from generated/nidaqmx/stream_readers/power_readers.py rename to src/handwritten/stream_readers/_power_readers.py index 2a581f9cf..cbb37cc08 100644 --- a/generated/nidaqmx/stream_readers/power_readers.py +++ b/src/handwritten/stream_readers/_power_readers.py @@ -3,7 +3,7 @@ from nidaqmx.constants import FillMode, READ_ALL_AVAILABLE from nidaqmx.types import PowerMeasurement -from ._channel_reader_base import ChannelReaderBase +from nidaqmx.stream_readers._channel_reader_base import ChannelReaderBase class PowerSingleChannelReader(ChannelReaderBase): diff --git a/src/handwritten/stream_writers.py b/src/handwritten/stream_writers.py index e9073de43..9e39c9d34 100644 --- a/src/handwritten/stream_writers.py +++ b/src/handwritten/stream_writers.py @@ -3,7 +3,13 @@ """ # Import all classes from the subpackage to maintain backward compatibility -from .stream_writers import * # noqa: F403, F401 - -# Re-export the __all__ list from the subpackage -from .stream_writers import __all__ \ No newline at end of file +from nidaqmx.stream_writers import ( + AnalogSingleChannelWriter, + AnalogMultiChannelWriter, + AnalogUnscaledWriter, + CounterWriter, + DigitalSingleChannelWriter, + DigitalMultiChannelWriter, + AUTO_START_UNSET, + __all__ +) \ No newline at end of file diff --git a/src/handwritten/stream_writers/__init__.py b/src/handwritten/stream_writers/__init__.py index 37aabed61..eb2520747 100644 --- a/src/handwritten/stream_writers/__init__.py +++ b/src/handwritten/stream_writers/__init__.py @@ -6,12 +6,13 @@ from __future__ import annotations -from .analog_single_channel_writer import AnalogSingleChannelWriter -from .analog_multi_channel_writer import AnalogMultiChannelWriter -from .analog_unscaled_writer import AnalogUnscaledWriter -from .counter_writer import CounterWriter -from .digital_single_channel_writer import DigitalSingleChannelWriter -from .digital_multi_channel_writer import DigitalMultiChannelWriter +from nidaqmx.stream_writers._analog_single_channel_writer import AnalogSingleChannelWriter +from nidaqmx.stream_writers._analog_multi_channel_writer import AnalogMultiChannelWriter +from nidaqmx.stream_writers._analog_unscaled_writer import AnalogUnscaledWriter +from nidaqmx.stream_writers._counter_writer import CounterWriter +from nidaqmx.stream_writers._digital_single_channel_writer import DigitalSingleChannelWriter +from nidaqmx.stream_writers._digital_multi_channel_writer import DigitalMultiChannelWriter +from nidaqmx.stream_writers._channel_writer_base import UnsetAutoStartSentinel, AUTO_START_UNSET __all__ = [ 'AnalogSingleChannelWriter', @@ -19,4 +20,6 @@ 'AnalogUnscaledWriter', 'CounterWriter', 'DigitalSingleChannelWriter', - 'DigitalMultiChannelWriter'] + 'DigitalMultiChannelWriter', + 'UnsetAutoStartSentinel', + 'AUTO_START_UNSET'] diff --git a/src/handwritten/stream_writers/analog_multi_channel_writer.py b/src/handwritten/stream_writers/_analog_multi_channel_writer.py similarity index 97% rename from src/handwritten/stream_writers/analog_multi_channel_writer.py rename to src/handwritten/stream_writers/_analog_multi_channel_writer.py index c314d1a26..aa2213e4b 100644 --- a/src/handwritten/stream_writers/analog_multi_channel_writer.py +++ b/src/handwritten/stream_writers/_analog_multi_channel_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class AnalogMultiChannelWriter(ChannelWriterBase): diff --git a/src/handwritten/stream_writers/analog_single_channel_writer.py b/src/handwritten/stream_writers/_analog_single_channel_writer.py similarity index 97% rename from src/handwritten/stream_writers/analog_single_channel_writer.py rename to src/handwritten/stream_writers/_analog_single_channel_writer.py index e5334140d..138280b85 100644 --- a/src/handwritten/stream_writers/analog_single_channel_writer.py +++ b/src/handwritten/stream_writers/_analog_single_channel_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class AnalogSingleChannelWriter(ChannelWriterBase): diff --git a/generated/nidaqmx/stream_writers/analog_unscaled_writer.py b/src/handwritten/stream_writers/_analog_unscaled_writer.py similarity index 99% rename from generated/nidaqmx/stream_writers/analog_unscaled_writer.py rename to src/handwritten/stream_writers/_analog_unscaled_writer.py index 197fe297f..cc23eac3f 100644 --- a/generated/nidaqmx/stream_writers/analog_unscaled_writer.py +++ b/src/handwritten/stream_writers/_analog_unscaled_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class AnalogUnscaledWriter(ChannelWriterBase): diff --git a/src/handwritten/stream_writers/_channel_writer_base.py b/src/handwritten/stream_writers/_channel_writer_base.py index c0d02a59a..965736e5d 100644 --- a/src/handwritten/stream_writers/_channel_writer_base.py +++ b/src/handwritten/stream_writers/_channel_writer_base.py @@ -3,12 +3,13 @@ class UnsetAutoStartSentinel: - pass + """Sentinel class for unset auto_start parameter.""" + + def __init__(self): + raise RuntimeError("Cannot instantiate UnsetAutoStartSentinel. Use AUTO_START_UNSET instead.") -AUTO_START_UNSET = UnsetAutoStartSentinel() - -del UnsetAutoStartSentinel +AUTO_START_UNSET = object.__new__(UnsetAutoStartSentinel) class ChannelWriterBase: diff --git a/src/handwritten/stream_writers/counter_writer.py b/src/handwritten/stream_writers/_counter_writer.py similarity index 99% rename from src/handwritten/stream_writers/counter_writer.py rename to src/handwritten/stream_writers/_counter_writer.py index 2c75a3720..d005d1c05 100644 --- a/src/handwritten/stream_writers/counter_writer.py +++ b/src/handwritten/stream_writers/_counter_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class CounterWriter(ChannelWriterBase): diff --git a/src/handwritten/stream_writers/digital_multi_channel_writer.py b/src/handwritten/stream_writers/_digital_multi_channel_writer.py similarity index 99% rename from src/handwritten/stream_writers/digital_multi_channel_writer.py rename to src/handwritten/stream_writers/_digital_multi_channel_writer.py index 15224fd0d..58981a8ef 100644 --- a/src/handwritten/stream_writers/digital_multi_channel_writer.py +++ b/src/handwritten/stream_writers/_digital_multi_channel_writer.py @@ -1,6 +1,6 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class DigitalMultiChannelWriter(ChannelWriterBase): diff --git a/src/handwritten/stream_writers/digital_single_channel_writer.py b/src/handwritten/stream_writers/_digital_single_channel_writer.py similarity index 99% rename from src/handwritten/stream_writers/digital_single_channel_writer.py rename to src/handwritten/stream_writers/_digital_single_channel_writer.py index 0edbacdb9..c1c731858 100644 --- a/src/handwritten/stream_writers/digital_single_channel_writer.py +++ b/src/handwritten/stream_writers/_digital_single_channel_writer.py @@ -2,7 +2,7 @@ from nidaqmx.constants import FillMode -from ._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET +from nidaqmx.stream_writers._channel_writer_base import ChannelWriterBase, AUTO_START_UNSET class DigitalSingleChannelWriter(ChannelWriterBase): diff --git a/tests/component/readers/conftest.py b/tests/component/conftest.py similarity index 100% rename from tests/component/readers/conftest.py rename to tests/component/conftest.py diff --git a/tests/component/readers/__init__.py b/tests/component/stream_readers/__init__.py similarity index 100% rename from tests/component/readers/__init__.py rename to tests/component/stream_readers/__init__.py diff --git a/tests/component/readers/test_analog_multi_channel_reader.py b/tests/component/stream_readers/test_analog_multi_channel_reader.py similarity index 99% rename from tests/component/readers/test_analog_multi_channel_reader.py rename to tests/component/stream_readers/test_analog_multi_channel_reader.py index bb35e63ce..727888a61 100644 --- a/tests/component/readers/test_analog_multi_channel_reader.py +++ b/tests/component/stream_readers/test_analog_multi_channel_reader.py @@ -13,7 +13,7 @@ from nidaqmx.constants import WaveformAttributeMode from nidaqmx.error_codes import DAQmxErrors from nidaqmx.stream_readers import AnalogMultiChannelReader, DaqError -from .conftest import ( +from tests.component.conftest import ( VOLTAGE_EPSILON, _get_voltage_offset_for_chan, _is_timestamp_close_to_now, diff --git a/tests/component/readers/test_analog_single_channel_reader.py b/tests/component/stream_readers/test_analog_single_channel_reader.py similarity index 99% rename from tests/component/readers/test_analog_single_channel_reader.py rename to tests/component/stream_readers/test_analog_single_channel_reader.py index e611a5e6a..04c2c38a1 100644 --- a/tests/component/readers/test_analog_single_channel_reader.py +++ b/tests/component/stream_readers/test_analog_single_channel_reader.py @@ -15,7 +15,7 @@ from nidaqmx.constants import AcquisitionType, WaveformAttributeMode from nidaqmx.error_codes import DAQmxErrors from nidaqmx.stream_readers import AnalogSingleChannelReader, DaqError -from .conftest import ( +from tests.component.conftest import ( VOLTAGE_EPSILON, _get_voltage_offset_for_chan, _is_timestamp_close_to_now, diff --git a/tests/component/readers/test_analog_unscaled_reader.py b/tests/component/stream_readers/test_analog_unscaled_reader.py similarity index 99% rename from tests/component/readers/test_analog_unscaled_reader.py rename to tests/component/stream_readers/test_analog_unscaled_reader.py index 0aa7a5460..c0d0c21c2 100644 --- a/tests/component/readers/test_analog_unscaled_reader.py +++ b/tests/component/stream_readers/test_analog_unscaled_reader.py @@ -8,7 +8,7 @@ import nidaqmx from nidaqmx.stream_readers import AnalogUnscaledReader -from .conftest import ( +from tests.component.conftest import ( VOLTAGE_CODE_EPSILON, _get_voltage_code_offset_for_chan, ) diff --git a/tests/component/readers/test_digital_multi_channel_reader.py b/tests/component/stream_readers/test_digital_multi_channel_reader.py similarity index 99% rename from tests/component/readers/test_digital_multi_channel_reader.py rename to tests/component/stream_readers/test_digital_multi_channel_reader.py index 22c0d5fb8..83395ff48 100644 --- a/tests/component/readers/test_digital_multi_channel_reader.py +++ b/tests/component/stream_readers/test_digital_multi_channel_reader.py @@ -16,7 +16,7 @@ from nidaqmx.error_codes import DAQmxErrors from nidaqmx.stream_readers import DaqError, DigitalMultiChannelReader from nidaqmx.utils import flatten_channel_string -from .conftest import ( +from tests.component.conftest import ( _bool_array_to_int, _get_expected_data_for_line, _get_expected_digital_data, diff --git a/tests/component/readers/test_digital_single_channel_reader.py b/tests/component/stream_readers/test_digital_single_channel_reader.py similarity index 99% rename from tests/component/readers/test_digital_single_channel_reader.py rename to tests/component/stream_readers/test_digital_single_channel_reader.py index 56c904330..49b861e0b 100644 --- a/tests/component/readers/test_digital_single_channel_reader.py +++ b/tests/component/stream_readers/test_digital_single_channel_reader.py @@ -16,7 +16,7 @@ from nidaqmx.error_codes import DAQmxErrors from nidaqmx.stream_readers import DaqError, DigitalSingleChannelReader from nidaqmx.utils import flatten_channel_string -from .conftest import ( +from tests.component.conftest import ( _bool_array_to_int, _get_expected_data_for_line, _get_expected_digital_data, diff --git a/tests/component/readers/test_power_readers_ai.py b/tests/component/stream_readers/test_power_readers_ai.py similarity index 99% rename from tests/component/readers/test_power_readers_ai.py rename to tests/component/stream_readers/test_power_readers_ai.py index 1e82a0687..be5090a69 100644 --- a/tests/component/readers/test_power_readers_ai.py +++ b/tests/component/stream_readers/test_power_readers_ai.py @@ -13,7 +13,7 @@ PowerMultiChannelReader, PowerSingleChannelReader, ) -from .conftest import ( +from tests.component.conftest import ( POWER_BINARY_EPSILON, POWER_EPSILON, _get_current_code_setpoint_for_chan, diff --git a/tests/component/readers/test_task_read_ai.py b/tests/component/task/test_task_read_ai.py similarity index 99% rename from tests/component/readers/test_task_read_ai.py rename to tests/component/task/test_task_read_ai.py index f7dc50ec3..c8809f4d7 100644 --- a/tests/component/readers/test_task_read_ai.py +++ b/tests/component/task/test_task_read_ai.py @@ -4,7 +4,7 @@ import nidaqmx from nidaqmx.constants import AcquisitionType -from .conftest import ( +from tests.component.conftest import ( POWER_EPSILON, VOLTAGE_EPSILON, _assert_equal_2d, diff --git a/tests/component/readers/test_task_read_waveform_ai.py b/tests/component/task/test_task_read_waveform_ai.py similarity index 99% rename from tests/component/readers/test_task_read_waveform_ai.py rename to tests/component/task/test_task_read_waveform_ai.py index 2989ff552..adf70616c 100644 --- a/tests/component/readers/test_task_read_waveform_ai.py +++ b/tests/component/task/test_task_read_waveform_ai.py @@ -4,7 +4,7 @@ from nitypes.waveform import AnalogWaveform import nidaqmx -from .conftest import ( +from tests.component.conftest import ( VOLTAGE_EPSILON, _get_voltage_offset_for_chan, ) diff --git a/tests/component/readers/test_task_read_waveform_di.py b/tests/component/task/test_task_read_waveform_di.py similarity index 99% rename from tests/component/readers/test_task_read_waveform_di.py rename to tests/component/task/test_task_read_waveform_di.py index d191c0dd2..9ff283f61 100644 --- a/tests/component/readers/test_task_read_waveform_di.py +++ b/tests/component/task/test_task_read_waveform_di.py @@ -5,7 +5,7 @@ import nidaqmx import nidaqmx.system -from .conftest import ( +from tests.component.conftest import ( _get_expected_data_for_line, _get_waveform_data, )