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.
Files changed (48) hide show
  1. {spikesafe_python-1.13.5/spikesafe_python.egg-info → spikesafe_python-1.14.1}/PKG-INFO +1 -1
  2. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/pyproject.toml +1 -1
  3. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/Threading.py +11 -8
  4. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1/spikesafe_python.egg-info}/PKG-INFO +1 -1
  5. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/LICENSE +0 -0
  6. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/README.md +0 -0
  7. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/setup.cfg +0 -0
  8. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/setup.py +0 -0
  9. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/ChannelData.py +0 -0
  10. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/Compensation.py +0 -0
  11. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerData.py +0 -0
  12. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerDataFetch.py +0 -0
  13. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerEnums.py +0 -0
  14. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerInfo.py +0 -0
  15. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerVfCustomSequence.py +0 -0
  16. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/DigitizerVfCustomSequenceStep.py +0 -0
  17. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/Discharge.py +0 -0
  18. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/EventData.py +0 -0
  19. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/MemoryTableReadData.py +0 -0
  20. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/Precision.py +0 -0
  21. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/PulseWidthCorrection.py +0 -0
  22. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/ReadAllEvents.py +0 -0
  23. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/ScpiFormatter.py +0 -0
  24. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SerialPortConnection.py +0 -0
  25. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeEnums.py +0 -0
  26. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeError.py +0 -0
  27. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeEvents.py +0 -0
  28. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeInfo.py +0 -0
  29. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/SpikeSafeInfoParser.py +0 -0
  30. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/TcpSocket.py +0 -0
  31. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/TemperatureData.py +0 -0
  32. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python/__init__.py +0 -0
  33. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/SOURCES.txt +0 -0
  34. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/dependency_links.txt +0 -0
  35. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/requires.txt +0 -0
  36. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/spikesafe_python.egg-info/top_level.txt +0 -0
  37. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_custom_compensation.py +0 -0
  38. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_custom_compensation_old.py +0 -0
  39. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_digitizer_fetch_time_of_sampling.py +0 -0
  40. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_digitizer_fetch_time_of_sampling_old.py +0 -0
  41. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_event_data.py +0 -0
  42. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_event_data_old.py +0 -0
  43. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_get_new_voltage_data_estimated_complete_time.py +0 -0
  44. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_compensation.py +0 -0
  45. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_compensation_old.py +0 -0
  46. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_pulse_width_correction.py +0 -0
  47. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_optimum_pulse_width_correction_old.py +0 -0
  48. {spikesafe_python-1.13.5 → spikesafe_python-1.14.1}/tests/test_spikesafe_info_compare_rev_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spikesafe-python
3
- Version: 1.13.5
3
+ Version: 1.14.1
4
4
  Summary: SpikeSafe Python Library
5
5
  Author-email: Vektrex <support@vektrex.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "spikesafe-python"
7
- version = "1.13.5"
7
+ version = "1.14.1"
8
8
  authors = [
9
9
  { name="Vektrex", email="support@vektrex.com" },
10
10
  ]
@@ -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 = time.perf_counter()
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. Default is time.perf_counter(), which is the result from a high resolution clock
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
- now = current_time
32
- end = now + wait_time + os_timer_resolution_offset_time
33
- while now < end:
34
- now = time.perf_counter()
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 = time.perf_counter()
42
+ current_time: float | None = None
40
43
  ) -> None:
41
44
  """
42
45
  Obsolete: use Threading.wait() instead
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spikesafe-python
3
- Version: 1.13.5
3
+ Version: 1.14.1
4
4
  Summary: SpikeSafe Python Library
5
5
  Author-email: Vektrex <support@vektrex.com>
6
6
  Classifier: Programming Language :: Python :: 3