pvplot 1.3.2__tar.gz → 1.3.3__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.3
2
2
  Name: pvplot
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Plotting tool for EPICS PVs, ADO and LITE parameters
5
5
  Project-URL: Homepage, https://github.com/ASukhanov/pvplot
6
6
  Project-URL: Bug Tracker, https://github.com/ASukhanov/pvplot/issues
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env python3
2
2
  """Plotting package for EPICS PVs, ADO and LITE parameters.
3
3
  """
4
- __version__ = 'v1.3.2 2024-08-20'# do not printv curve ... did not change, label color, better statistics
4
+ __version__ = 'v1.3.3 2024-08-21'# Statistics shows full name of parameter
5
5
  #TODO: if backend times out the gui is not responsive
6
6
  #TODO: move Add Dataset to Dataset options
7
7
  #TODO: add dataset arithmetics
8
- #TODO: Use teich text in statistics
8
+ #TODO: Use rich text in statistics, make it as table or use pprint
9
9
 
10
10
  import sys, os, time, datetime
11
11
  timer = time.perf_counter
@@ -481,7 +481,7 @@ class Dataset():
481
481
 
482
482
  def get_statistics(self):
483
483
  ileft,iright = self._visibleRange()
484
- parname = self.adoPars[0][0].rsplit(':',1)[1]
484
+ parname = self.adoPars[0][0]
485
485
  r = {parname:{}}
486
486
  rp = r[parname]
487
487
  rp['xrange'] = (ileft,iright)
@@ -1098,8 +1098,8 @@ class PVPlot():
1098
1098
  s = dataset.get_statistics()
1099
1099
  if len(s) != 0:
1100
1100
  statistics.update(s)
1101
- txt = ('Parameter,\tRange \tMean \tSTD \tPeak2Peak\n'
1102
- '----------\t------\t------\t------\t---------\n')
1101
+ txt = ('Parameter\t\tRange \tMean \tSTD \tPeak2Peak\n'
1102
+ '---------\t\t------\t------\t------\t---------\n')
1103
1103
  for key,v in statistics.items():
1104
1104
  txt += f'{key}:\t{v["xrange"]}\t{v["mean"]:.6g}\t{v["std"]:.6g}\t{v["p2p"]:.6g}\n'
1105
1105
  return txt
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pvplot"
7
- version = "1.3.2"
7
+ version = "1.3.3"
8
8
  authors = [
9
9
  { name="Andrei Sukhanov", email="cyxandr@gmail.com" },
10
10
  ]
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