spikesafe-python 1.13.5__tar.gz → 1.14.1__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.
- {spikesafe_python-1.13.5/spikesafe_python.egg-info → spikesafe_python-1.14.1}/PKG-INFO +1 -1
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/pyproject.toml +1 -1
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/Threading.py +11 -8
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1/spikesafe_python.egg-info}/PKG-INFO +1 -1
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/LICENSE +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/README.md +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/setup.cfg +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/setup.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/ChannelData.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/Compensation.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerData.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerDataFetch.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerEnums.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerInfo.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerVfCustomSequence.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerVfCustomSequenceStep.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/Discharge.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/EventData.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/MemoryTableReadData.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/Precision.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/PulseWidthCorrection.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/ReadAllEvents.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/ScpiFormatter.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SerialPortConnection.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeEnums.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeError.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeEvents.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeInfo.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeInfoParser.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/TcpSocket.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/TemperatureData.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/__init__.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/SOURCES.txt +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/dependency_links.txt +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/requires.txt +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/top_level.txt +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_custom_compensation.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_custom_compensation_old.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_digitizer_fetch_time_of_sampling.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_digitizer_fetch_time_of_sampling_old.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_event_data.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_event_data_old.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_get_new_voltage_data_estimated_complete_time.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_compensation.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_compensation_old.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_pulse_width_correction.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_pulse_width_correction_old.py +0 -0
- {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_spikesafe_info_compare_rev_version.py +0 -0
|
@@ -14,7 +14,7 @@ class Threading:
|
|
|
14
14
|
def wait(
|
|
15
15
|
wait_time: float,
|
|
16
16
|
os_timer_resolution_offset_time: float = 0,
|
|
17
|
-
current_time: float =
|
|
17
|
+
current_time: float | None = None
|
|
18
18
|
) -> None:
|
|
19
19
|
"""
|
|
20
20
|
Suspends the current thread for a specified amount of time.
|
|
@@ -25,18 +25,21 @@ class Threading:
|
|
|
25
25
|
Wait time in seconds to suspend the current thread.
|
|
26
26
|
os_timer_resolution_offset_time: float, optional
|
|
27
27
|
The offset time in seconds to add to wait_time due to the operating system timer resolution limit. Default is 0.
|
|
28
|
-
current_time: float, optional
|
|
29
|
-
The current time in seconds.
|
|
28
|
+
current_time: float | None, optional
|
|
29
|
+
The current time in seconds. If None, time.perf_counter() is used, which is the result from a high resolution clock.
|
|
30
30
|
"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
if current_time is None:
|
|
32
|
+
current_time = time.perf_counter()
|
|
33
|
+
|
|
34
|
+
end = current_time + wait_time + os_timer_resolution_offset_time
|
|
35
|
+
|
|
36
|
+
while time.perf_counter() < end:
|
|
37
|
+
pass
|
|
35
38
|
|
|
36
39
|
def wait(
|
|
37
40
|
wait_time: float,
|
|
38
41
|
os_timer_resolution_offset_time: float = 0,
|
|
39
|
-
current_time: float =
|
|
42
|
+
current_time: float | None = None
|
|
40
43
|
) -> None:
|
|
41
44
|
"""
|
|
42
45
|
Obsolete: use Threading.wait() instead
|
|
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
|
{spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerVfCustomSequence.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/PulseWidthCorrection.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SerialPortConnection.py
RENAMED
|
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
|
{spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_digitizer_fetch_time_of_sampling.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_pulse_width_correction.py
RENAMED
|
File without changes
|
{spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_pulse_width_correction_old.py
RENAMED
|
File without changes
|
{spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_spikesafe_info_compare_rev_version.py
RENAMED
|
File without changes
|