PyQa40x-i2c 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/PKG-INFO +1 -1
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/RELEASE_NOTES.md +4 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/_version.py +3 -3
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/analyzer.py +21 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x_i2c.egg-info/PKG-INFO +1 -1
- pyqa40x_i2c-0.3.2/src/PyQa40x_i2c.egg-info/scm_version.json +8 -0
- pyqa40x_i2c-0.3.1/src/PyQa40x_i2c.egg-info/scm_version.json +0 -8
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/.github/workflows/code_checker.yml +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/.github/workflows/publish_package.yml +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/.github/workflows/unit_tests.yml +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/.gitignore +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/.pylint_ignore +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LICENSE +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/FirstPrinciples.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/PyQa40x_acoustic_chirp_spl_bt.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/PyQa40x_acoustic_dbspl.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/PyQa40x_acoustic_energy_decay_bt.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/PyQa40x_coherent_averaging.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/PyQa40x_cross_correlation.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/PyQa40x_freq_response_with_mask.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/PyQa40x_pinknoise.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/PyQa40x_thdn.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/mask_freq.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/LibTest/mask_phase.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/MANIFEST.in +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/README.md +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/_ci/is_dev_version.sh +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/pyproject.toml +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/requirements-dev.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/requirements-test.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/requirements.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/setup.cfg +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/__init__.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/analyzer_params.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/bluetooth.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/control.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/cross_correlation.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/fft_processor.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/freq_series_plotter.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/helpers.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/math_chirp.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/math_energy.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/math_general.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/math_sines.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/math_windows.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/registers.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/series_plotter.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/sig_proc.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/stream.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/wave.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/wave_chirp.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x/wave_sine.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x.egg-info/PKG-INFO +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x.egg-info/SOURCES.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x.egg-info/dependency_links.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x.egg-info/requires.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x.egg-info/top_level.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x_i2c.egg-info/SOURCES.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x_i2c.egg-info/dependency_links.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x_i2c.egg-info/requires.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x_i2c.egg-info/scm_file_list.json +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/src/PyQa40x_i2c.egg-info/top_level.txt +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/tests/__init__.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/tests/test_template.py +0 -0
- {pyqa40x_i2c-0.3.1 → pyqa40x_i2c-0.3.2}/tox.ini +0 -0
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.3.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 3,
|
|
21
|
+
__version__ = version = '0.3.2'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 3, 2)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g8ba62af0c'
|
|
@@ -177,6 +177,27 @@ class Analyzer:
|
|
|
177
177
|
|
|
178
178
|
return self.params
|
|
179
179
|
|
|
180
|
+
def set_max_input_level(self, max_input_level: int) -> None:
|
|
181
|
+
"""
|
|
182
|
+
Set the input attenuator to `max_input_level` dBV.
|
|
183
|
+
|
|
184
|
+
Args:
|
|
185
|
+
max_input_level (int): Maximum input level in dBV. Valid values are 0, 6, 12, 18, 24, 30, 36, 42.
|
|
186
|
+
|
|
187
|
+
Raises:
|
|
188
|
+
ValueError: If `max_input_level` is not a valid level.
|
|
189
|
+
RuntimeError: If a capture is running.
|
|
190
|
+
"""
|
|
191
|
+
if max_input_level not in self.control.input2reg:
|
|
192
|
+
raise ValueError(
|
|
193
|
+
f"Invalid max input level {max_input_level} dBV; valid values are "
|
|
194
|
+
f"{sorted(self.control.input2reg)}."
|
|
195
|
+
)
|
|
196
|
+
if self._capturing:
|
|
197
|
+
raise RuntimeError("Cannot change the max input level while capturing.")
|
|
198
|
+
self.control.set_input(max_input_level)
|
|
199
|
+
self.params.max_input_level = max_input_level
|
|
200
|
+
|
|
180
201
|
def cleanup(self):
|
|
181
202
|
"""
|
|
182
203
|
Releases the USB device interface and closes the context.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|