AutoStatLib 0.2.25__tar.gz → 0.2.26__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 (21) hide show
  1. {autostatlib-0.2.25/src/AutoStatLib.egg-info → autostatlib-0.2.26}/PKG-INFO +1 -1
  2. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/_version.py +1 -1
  3. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/helpers.py +15 -8
  4. {autostatlib-0.2.25 → autostatlib-0.2.26/src/AutoStatLib.egg-info}/PKG-INFO +1 -1
  5. {autostatlib-0.2.25 → autostatlib-0.2.26}/LICENSE +0 -0
  6. {autostatlib-0.2.25 → autostatlib-0.2.26}/MANIFEST.in +0 -0
  7. {autostatlib-0.2.25 → autostatlib-0.2.26}/README.md +0 -0
  8. {autostatlib-0.2.25 → autostatlib-0.2.26}/pyproject.toml +0 -0
  9. {autostatlib-0.2.25 → autostatlib-0.2.26}/requirements.txt +0 -0
  10. {autostatlib-0.2.25 → autostatlib-0.2.26}/setup.cfg +0 -0
  11. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/AutoStatLib.py +0 -0
  12. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/StatPlots.py +0 -0
  13. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/__init__.py +0 -0
  14. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/__main__.py +0 -0
  15. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/normality_tests.py +0 -0
  16. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/statistical_tests.py +0 -0
  17. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib/text_formatting.py +0 -0
  18. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib.egg-info/SOURCES.txt +0 -0
  19. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib.egg-info/dependency_links.txt +0 -0
  20. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib.egg-info/requires.txt +0 -0
  21. {autostatlib-0.2.25 → autostatlib-0.2.26}/src/AutoStatLib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AutoStatLib
3
- Version: 0.2.25
3
+ Version: 0.2.26
4
4
  Summary: AutoStatLib - a simple statistical analysis tool
5
5
  Author: Stemonitis, SciWare LLC
6
6
  Author-email: konung-yaropolk <yaropolk1995@gmail.com>
@@ -1,2 +1,2 @@
1
1
  # AutoStatLib package version:
2
- __version__ = "0.2.25"
2
+ __version__ = "0.2.26"
@@ -47,27 +47,34 @@ class Helpers():
47
47
 
48
48
  def create_results_dict(self) -> dict:
49
49
 
50
+ # evaluate successfullness
51
+ if self.p_value != None:
52
+ self.successfull = True
53
+ else:
54
+ self.successfull = False
55
+ self.error = True
56
+
50
57
  self.stars_int = self.make_stars(
51
- self.p_value.item()) if self.p_value else None
58
+ self.p_value.item()) if self.successfull else None
52
59
  self.stars_str = self.make_stars_printed(
53
- self.stars_int) if self.p_value else ''
60
+ self.stars_int) if self.successfull else ''
54
61
 
55
62
  return {
56
- 'p_value': self.make_p_value_printed(self.p_value.item()) if self.p_value else None,
57
- 'Significance(p<0.05)': True if self.p_value and self.p_value.item() < 0.05 else False,
63
+ 'p_value': self.make_p_value_printed(self.p_value.item()) if self.successfull else None,
64
+ 'Significance(p<0.05)': True if self.successfull and self.p_value.item() < 0.05 else False,
58
65
  'Stars_Printed': self.stars_str,
59
66
  'Test_Name': self.test_name,
60
67
  'Groups_Compared': self.n_groups,
61
68
  'Population_Mean': self.popmean if self.n_groups == 1 else 'N/A',
62
- 'Data_Normaly_Distributed': self.parametric if self.p_value else None,
69
+ 'Data_Normaly_Distributed': self.parametric if self.successfull else None,
63
70
  'Parametric_Test_Applied': True if self.test_id in self.test_ids_parametric else False,
64
- 'Paired_Test_Applied': self.paired if self.p_value else None,
71
+ 'Paired_Test_Applied': self.paired if self.successfull else None,
65
72
  'Tails': self.tails,
66
- 'p_value_exact': self.p_value.item() if self.p_value else None,
73
+ 'p_value_exact': self.p_value.item() if self.successfull else None,
67
74
  'Stars': self.stars_int,
68
75
  # 'Stat_Value': self.test_stat.item(),
69
76
  'Warnings': self.warnings,
70
- 'Successfull_Test': True if self.p_value else False,
77
+ 'Successfull_Test': (self.successfull and not self.error),
71
78
  'Groups_Name': self.groups_name,
72
79
  'Groups_N': [len(self.data[i]) for i in range(len(self.data))],
73
80
  'Groups_Median': [np.median(self.data[i]).item() for i in range(len(self.data))],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AutoStatLib
3
- Version: 0.2.25
3
+ Version: 0.2.26
4
4
  Summary: AutoStatLib - a simple statistical analysis tool
5
5
  Author: Stemonitis, SciWare LLC
6
6
  Author-email: konung-yaropolk <yaropolk1995@gmail.com>
File without changes
File without changes
File without changes
File without changes