half-sample 0.1.13__tar.gz → 0.1.15__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.

Potentially problematic release.


This version of half-sample might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: half-sample
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Summary: sample data and analysis
5
5
  Home-page: https://github.com/KD-Group/Half.Sample
6
6
  Author: kunde
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: half-sample
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Summary: sample data and analysis
5
5
  Home-page: https://github.com/KD-Group/Half.Sample
6
6
  Author: kunde
@@ -60,8 +60,16 @@ class Sampler:
60
60
  def is_measuring(self) -> bool:
61
61
  return self.communicate('is_measuring').measuring
62
62
 
63
- def measure(self, number_of_waveforms: int, emitting_frequency: float, auto_mode: bool = False) -> None:
64
- self.communicate("to_measure {} {:.2f} {}".format(number_of_waveforms, emitting_frequency, auto_mode))
63
+ def measure(self, number_of_waveforms: int, emitting_frequency: float, auto_mode: bool = False) -> Result:
64
+ return self.communicate("to_measure {} {:.2f} {}".format(number_of_waveforms, emitting_frequency, auto_mode))
65
+
66
+ def dump(self, filename: str, number_of_waveforms: int, emitting_frequency: float,
67
+ auto_mode: bool = False) -> Result:
68
+ return self.communicate(
69
+ "to_dump {} {} {:.2f} {}".format(filename, number_of_waveforms, emitting_frequency, auto_mode))
70
+
71
+ def process(self, filename: str) -> Result:
72
+ return self.communicate("to_process {}".format(filename))
65
73
 
66
74
  def set_sampler(self, sampler_name: str) -> Result:
67
75
  return self.communicate("set_sampler {}".format(sampler_name))
@@ -2,7 +2,7 @@ import setuptools
2
2
 
3
3
  setuptools.setup(
4
4
  name="half-sample",
5
- version="0.1.13",
5
+ version="0.1.15",
6
6
  author="kunde",
7
7
  author_email="gzkunde@163.com",
8
8
  description="sample data and analysis",
Binary file
File without changes
File without changes