half-sample 0.1.26__tar.gz → 0.1.27__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: half_sample
3
- Version: 0.1.26
3
+ Version: 0.1.27
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.26
3
+ Version: 0.1.27
4
4
  Summary: sample data and analysis
5
5
  Home-page: https://github.com/KD-Group/Half.Sample
6
6
  Author: kunde
@@ -122,6 +122,11 @@ class Result:
122
122
  self._v_inf_reported = False
123
123
  self.cycle_maximum = 0.0
124
124
  self.cycle_minimum = 0.0
125
+ self.cycle_vmax = 0.0
126
+ self.cycle_vmin = 0.0
127
+ self.cycle_vpp = 0.0
128
+ self.cycle_vtop = 0.0
129
+ self.cycle_vbase = 0.0
125
130
 
126
131
  self.mock_tau = 0.0
127
132
  self.mock_v0 = 0.0
@@ -205,7 +205,8 @@ class Sampler:
205
205
  @staticmethod
206
206
  def _first_non_finite_field(result: Result):
207
207
  for field in ("maximum", "minimum", "sampling_interval", "wave_interval", "tau", "w", "b", "loss",
208
- "v_inf", "cycle_maximum", "cycle_minimum"):
208
+ "v_inf", "cycle_maximum", "cycle_minimum", "cycle_vmax", "cycle_vmin", "cycle_vpp",
209
+ "cycle_vtop", "cycle_vbase"):
209
210
  if not math.isfinite(getattr(result, field)):
210
211
  return field
211
212
  for index, value in enumerate(result.wave):
@@ -2,7 +2,7 @@ import setuptools
2
2
 
3
3
  setuptools.setup(
4
4
  name="half_sample",
5
- version="0.1.26",
5
+ version="0.1.27",
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