AutoStatLib 0.1.4__tar.gz → 0.1.5__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.2
2
2
  Name: AutoStatLib
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: AutoStatLib - a simple statistical analysis tool
5
5
  Author: Stemonitis, SciWare LLC
6
6
  Author-email: konung-yaropolk <yaropolk1995@gmail.com>
@@ -531,10 +531,10 @@ License-File: LICENSE
531
531
  Requires-Dist: numpy
532
532
  Requires-Dist: scipy
533
533
 
534
- # AutoStatLib - automated statistical analysis library
534
+ # AutoStatLib - python library for automated statistical analysis
535
535
 
536
536
  [![pypi_version](https://img.shields.io/pypi/v/AutoStatLib?label=PyPI&color=green)](https://pypi.org/project/AutoStatLib)
537
- [![GitHub Release](https://img.shields.io/github/v/release/konung-yaropolk/AutoStatLib?label=GitHub&color=green&link=https%3A%2F%2Fgithub.com%2Fkonung-yaropolk%2FDiaModality)](https://github.com/konung-yaropolk/AutoStatLib)
537
+ [![GitHub Release](https://img.shields.io/github/v/release/konung-yaropolk/AutoStatLib?label=GitHub&color=green&link=https%3A%2F%2Fgithub.com%2Fkonung-yaropolk%2FAutoStatLib)](https://github.com/konung-yaropolk/AutoStatLib)
538
538
  [![PyPI - License](https://img.shields.io/pypi/l/AutoStatLib)](https://pypi.org/project/AutoStatLib)
539
539
  [![Python](https://img.shields.io/badge/Python-v3.10%5E-green?logo=python)](https://pypi.org/project/AutoStatLib)
540
540
  [![PyPI - Downloads](https://img.shields.io/pypi/dm/AutoStatLib?label=PyPI%20stats&color=blue)](https://pypi.org/project/AutoStatLib)
@@ -605,10 +605,10 @@ analysis.RunWilcoxonSingleSample()
605
605
  ```
606
606
 
607
607
  Test summary will be printed to the console.
608
- You can also get it as a python string via GetSummary() method.
608
+ You can also get it as a python string via *GetSummary()* method.
609
609
 
610
610
  ---
611
- Test results are accessible as a dictionary via GetResult() method:
611
+ Test results are accessible as a dictionary via *GetResult()* method:
612
612
  ```python
613
613
  results = analysis.GetResult()
614
614
  ```
@@ -638,6 +638,7 @@ The results dictionary keys with representing value types:
638
638
  (taken from the input)
639
639
  }
640
640
  ```
641
+ If errors occured, *GetResult()* returns an empty dictionary
641
642
 
642
643
 
643
644
 
@@ -1,7 +1,7 @@
1
- # AutoStatLib - automated statistical analysis library
1
+ # AutoStatLib - python library for automated statistical analysis
2
2
 
3
3
  [![pypi_version](https://img.shields.io/pypi/v/AutoStatLib?label=PyPI&color=green)](https://pypi.org/project/AutoStatLib)
4
- [![GitHub Release](https://img.shields.io/github/v/release/konung-yaropolk/AutoStatLib?label=GitHub&color=green&link=https%3A%2F%2Fgithub.com%2Fkonung-yaropolk%2FDiaModality)](https://github.com/konung-yaropolk/AutoStatLib)
4
+ [![GitHub Release](https://img.shields.io/github/v/release/konung-yaropolk/AutoStatLib?label=GitHub&color=green&link=https%3A%2F%2Fgithub.com%2Fkonung-yaropolk%2FAutoStatLib)](https://github.com/konung-yaropolk/AutoStatLib)
5
5
  [![PyPI - License](https://img.shields.io/pypi/l/AutoStatLib)](https://pypi.org/project/AutoStatLib)
6
6
  [![Python](https://img.shields.io/badge/Python-v3.10%5E-green?logo=python)](https://pypi.org/project/AutoStatLib)
7
7
  [![PyPI - Downloads](https://img.shields.io/pypi/dm/AutoStatLib?label=PyPI%20stats&color=blue)](https://pypi.org/project/AutoStatLib)
@@ -72,10 +72,10 @@ analysis.RunWilcoxonSingleSample()
72
72
  ```
73
73
 
74
74
  Test summary will be printed to the console.
75
- You can also get it as a python string via GetSummary() method.
75
+ You can also get it as a python string via *GetSummary()* method.
76
76
 
77
77
  ---
78
- Test results are accessible as a dictionary via GetResult() method:
78
+ Test results are accessible as a dictionary via *GetResult()* method:
79
79
  ```python
80
80
  results = analysis.GetResult()
81
81
  ```
@@ -105,6 +105,7 @@ The results dictionary keys with representing value types:
105
105
  (taken from the input)
106
106
  }
107
107
  ```
108
+ If errors occured, *GetResult()* returns an empty dictionary
108
109
 
109
110
 
110
111
 
@@ -323,6 +323,7 @@ class StatisticalAnalysis(__StatisticalTests, __NormalityTests, __TextFormatting
323
323
  popmean=None,
324
324
  verbose=True):
325
325
  self.results = None
326
+ self.error = False
326
327
  self.groups_list = groups_list
327
328
  self.paired = paired
328
329
  self.tails = tails
@@ -357,6 +358,7 @@ class StatisticalAnalysis(__StatisticalTests, __NormalityTests, __TextFormatting
357
358
 
358
359
  # reset values from previous tests
359
360
  self.results = None
361
+ self.error = False
360
362
  self.warnings = []
361
363
  self.normals = []
362
364
  self.methods = []
@@ -408,6 +410,7 @@ class StatisticalAnalysis(__StatisticalTests, __NormalityTests, __TextFormatting
408
410
  self.log('\nTest :', test)
409
411
  self.log('Error :', error)
410
412
  self.log('-'*67 + '\n')
413
+ self.error = True
411
414
  print(self.summary)
412
415
  return
413
416
 
@@ -533,17 +536,20 @@ class StatisticalAnalysis(__StatisticalTests, __NormalityTests, __TextFormatting
533
536
  self.__run_test(test='wilcoxon')
534
537
 
535
538
  def GetResult(self):
536
- if self.results:
539
+ if not self.results and not self.error:
540
+ self.__run_test(test='auto')
537
541
  return self.results
542
+ if not self.results and self.error:
543
+ print('Error occured, no results to output')
544
+ return {}
538
545
  else:
539
- self.__run_test(test='auto')
540
546
  return self.results
541
547
 
542
548
  def GetSummary(self):
543
- if self.results:
549
+ if not self.results and not self.error:
550
+ self.__run_test(test='auto')
544
551
  return self.summary
545
552
  else:
546
- self.__run_test(test='auto')
547
553
  return self.summary
548
554
 
549
555
  def PrintSummary(self):
@@ -1,2 +1,2 @@
1
1
  # AutoStatLib package version:
2
- __version__ = "0.1.4"
2
+ __version__ = "0.1.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: AutoStatLib
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: AutoStatLib - a simple statistical analysis tool
5
5
  Author: Stemonitis, SciWare LLC
6
6
  Author-email: konung-yaropolk <yaropolk1995@gmail.com>
@@ -531,10 +531,10 @@ License-File: LICENSE
531
531
  Requires-Dist: numpy
532
532
  Requires-Dist: scipy
533
533
 
534
- # AutoStatLib - automated statistical analysis library
534
+ # AutoStatLib - python library for automated statistical analysis
535
535
 
536
536
  [![pypi_version](https://img.shields.io/pypi/v/AutoStatLib?label=PyPI&color=green)](https://pypi.org/project/AutoStatLib)
537
- [![GitHub Release](https://img.shields.io/github/v/release/konung-yaropolk/AutoStatLib?label=GitHub&color=green&link=https%3A%2F%2Fgithub.com%2Fkonung-yaropolk%2FDiaModality)](https://github.com/konung-yaropolk/AutoStatLib)
537
+ [![GitHub Release](https://img.shields.io/github/v/release/konung-yaropolk/AutoStatLib?label=GitHub&color=green&link=https%3A%2F%2Fgithub.com%2Fkonung-yaropolk%2FAutoStatLib)](https://github.com/konung-yaropolk/AutoStatLib)
538
538
  [![PyPI - License](https://img.shields.io/pypi/l/AutoStatLib)](https://pypi.org/project/AutoStatLib)
539
539
  [![Python](https://img.shields.io/badge/Python-v3.10%5E-green?logo=python)](https://pypi.org/project/AutoStatLib)
540
540
  [![PyPI - Downloads](https://img.shields.io/pypi/dm/AutoStatLib?label=PyPI%20stats&color=blue)](https://pypi.org/project/AutoStatLib)
@@ -605,10 +605,10 @@ analysis.RunWilcoxonSingleSample()
605
605
  ```
606
606
 
607
607
  Test summary will be printed to the console.
608
- You can also get it as a python string via GetSummary() method.
608
+ You can also get it as a python string via *GetSummary()* method.
609
609
 
610
610
  ---
611
- Test results are accessible as a dictionary via GetResult() method:
611
+ Test results are accessible as a dictionary via *GetResult()* method:
612
612
  ```python
613
613
  results = analysis.GetResult()
614
614
  ```
@@ -638,6 +638,7 @@ The results dictionary keys with representing value types:
638
638
  (taken from the input)
639
639
  }
640
640
  ```
641
+ If errors occured, *GetResult()* returns an empty dictionary
641
642
 
642
643
 
643
644
 
File without changes
File without changes
File without changes
File without changes