py2ls 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl

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.
@@ -2,3 +2,6 @@
2
2
  d9c2403fd166ce791b4e9d0c6792ed8342c71fcd d9c2403fd166ce791b4e9d0c6792ed8342c71fcd Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718370431 +0200 remote set-head
3
3
  14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed 14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718370669 +0200 remote set-head
4
4
  36ef43e50009e59db11812c258846d9e38718173 36ef43e50009e59db11812c258846d9e38718173 Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718371330 +0200 remote set-head
5
+ 36ef43e50009e59db11812c258846d9e38718173 36ef43e50009e59db11812c258846d9e38718173 Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718389149 +0200 remote set-head
6
+ 36ef43e50009e59db11812c258846d9e38718173 36ef43e50009e59db11812c258846d9e38718173 Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718390975 +0200 remote set-head
7
+ 36ef43e50009e59db11812c258846d9e38718173 36ef43e50009e59db11812c258846d9e38718173 Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718392810 +0200 remote set-head
py2ls/README.md CHANGED
@@ -90,8 +90,6 @@ paper_size('card') # [85.6, 53.98]
90
90
 
91
91
  ### str2num, num2str, str2list
92
92
 
93
- e.g.,
94
-
95
93
  ```python
96
94
  str2num(“123.345 dollers”,2)# => 123.35 (float)
97
95
  ```
@@ -101,11 +99,9 @@ str2list("abcd") # ['a','b','c','d']
101
99
  ```
102
100
 
103
101
  ```python
104
- list2str(x_str)
102
+ list2str(['a','b','c','d']) # 'abcd'
105
103
  ```
106
104
 
107
-
108
-
109
105
  ### ssplit, sreplace
110
106
 
111
107
  ```python
@@ -158,7 +154,23 @@ ssplit(text, by="lowup")
158
154
 
159
155
  ```
160
156
 
157
+ ```python
158
+ sreplace(text, dict_replace=None, robust=True)
159
+ ```
161
160
 
161
+ ```python
162
+ text= 'The most pronounced physiological changes in sleep occur in the brain.[10] '
163
+ 'The brain uses significantly less energy during sleep than it does when '
164
+ 'awake, especially during non-REM sleep. In areas with reduced activity, the '
165
+ 'brain restores its supply of adenosine triphosphate (ATP), the molecule used '
166
+ 'for short-term storage and transport of energy.[11] In quiet waking, the '
167
+ "brain is responsible for 20% of the body's energy use, thus this reduction "
168
+ 'has a noticeable effect on overall energy consumption.[12]'
169
+ sreplace(text)
170
+ "The most pronounced physiological changes in sleep occur in the brain"
171
+ sreplace(text,{"sleep":"wakewake"}) # sreplace(text,dict(sleep="wakewake"))
172
+ "The most pronounced physiological changes in wakewake occur in the brain."
173
+ ```
162
174
 
163
175
  ### stats
164
176
 
@@ -166,6 +178,17 @@ ssplit(text, by="lowup")
166
178
 
167
179
  ```python
168
180
  FuncCmpt(X1, X2, pmc='auto', pair='unpaired')
181
+ e.g.,
182
+ X1 = [19, 22, 16, 29, 24]
183
+ X2 = [20, 11, 17, 12, 22]
184
+ p, res = FumcCmpt(X1,X2, pmc='pmc', pair = 'unpair')
185
+ # normally distributed
186
+ # normally distributed
187
+ # unpaired t text
188
+ # t(8) = 1.81117, p=0.1077
189
+ p,res = FuncCmpt(x1,x2, pmc='pmc',pair='pair')
190
+ # paired t test
191
+ # t(4)=1.55556,p=0.19479
169
192
  ```
170
193
 
171
194
  #### FuncMultiCmpt ( multiple groups cmp)
@@ -178,7 +201,15 @@ FuncMultiCmpt(pmc='pmc', pair='unpair', data=None, dv=None, factor=None,
178
201
  )
179
202
  ```
180
203
 
181
-
204
+ ```python
205
+ df = pd.DataFrame({'score': [64, 66, 68, 75, 78, 94, 98, 79, 71, 80,
206
+ 91, 92, 93, 90, 97, 94, 82, 88, 95, 96,
207
+ 79, 78, 88, 94, 92, 85, 83, 85, 82, 81],
208
+ 'group': np.repeat(['strat1', 'strat2', 'strat3'],repeats=10)})
209
+ res = FuncMultiCmpt(pmc='auto',pair='unpaired',data=df, dv='score', factor='group', group='group')
210
+ res["APA"]
211
+ # ['group:F(2, 17)=9.71719,p=0.0016']
212
+ ```
182
213
 
183
214
  #### FuncStars
184
215
 
@@ -207,6 +238,9 @@ FuncStars(ax,
207
238
  report=None,
208
239
  report_scale=-0.1,
209
240
  report_loc=None)
241
+
242
+
243
+
210
244
  ```
211
245
 
212
246
  ### plots
py2ls/ips.py CHANGED
@@ -1898,8 +1898,7 @@ def FuncMultiCmpt(pmc='pmc', pair='unpair', data=None, dv=None, factor=None,
1898
1898
  # df = pd.DataFrame({'score': [64, 66, 68, 75, 78, 94, 98, 79, 71, 80,
1899
1899
  # 91, 92, 93, 90, 97, 94, 82, 88, 95, 96,
1900
1900
  # 79, 78, 88, 94, 92, 85, 83, 85, 82, 81],
1901
- # 'group': np.repeat(['strat1', 'strat2', 'strat3'],
1902
- # repeats=10)})
1901
+ # 'group': np.repeat(['strat1', 'strat2', 'strat3'],repeats=10)})
1903
1902
  # out1 = FuncMultiCmpt(pmc='auto',pair='unpaired',data=df, dv='score', factor='group', group='group')
1904
1903
  # =============================================================================
1905
1904
  # # two way anova
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2ls
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary:
5
5
  Author: Jianfeng
6
6
  Author-email: Jianfeng.Liu0413@gmail.com
@@ -101,8 +101,6 @@ paper_size('card') # [85.6, 53.98]
101
101
 
102
102
  ### str2num, num2str, str2list
103
103
 
104
- e.g.,
105
-
106
104
  ```python
107
105
  str2num(“123.345 dollers”,2)# => 123.35 (float)
108
106
  ```
@@ -112,11 +110,9 @@ str2list("abcd") # ['a','b','c','d']
112
110
  ```
113
111
 
114
112
  ```python
115
- list2str(x_str)
113
+ list2str(['a','b','c','d']) # 'abcd'
116
114
  ```
117
115
 
118
-
119
-
120
116
  ### ssplit, sreplace
121
117
 
122
118
  ```python
@@ -169,7 +165,23 @@ ssplit(text, by="lowup")
169
165
 
170
166
  ```
171
167
 
168
+ ```python
169
+ sreplace(text, dict_replace=None, robust=True)
170
+ ```
172
171
 
172
+ ```python
173
+ text= 'The most pronounced physiological changes in sleep occur in the brain.[10] '
174
+ 'The brain uses significantly less energy during sleep than it does when '
175
+ 'awake, especially during non-REM sleep. In areas with reduced activity, the '
176
+ 'brain restores its supply of adenosine triphosphate (ATP), the molecule used '
177
+ 'for short-term storage and transport of energy.[11] In quiet waking, the '
178
+ "brain is responsible for 20% of the body's energy use, thus this reduction "
179
+ 'has a noticeable effect on overall energy consumption.[12]'
180
+ sreplace(text)
181
+ "The most pronounced physiological changes in sleep occur in the brain"
182
+ sreplace(text,{"sleep":"wakewake"}) # sreplace(text,dict(sleep="wakewake"))
183
+ "The most pronounced physiological changes in wakewake occur in the brain."
184
+ ```
173
185
 
174
186
  ### stats
175
187
 
@@ -177,6 +189,17 @@ ssplit(text, by="lowup")
177
189
 
178
190
  ```python
179
191
  FuncCmpt(X1, X2, pmc='auto', pair='unpaired')
192
+ e.g.,
193
+ X1 = [19, 22, 16, 29, 24]
194
+ X2 = [20, 11, 17, 12, 22]
195
+ p, res = FumcCmpt(X1,X2, pmc='pmc', pair = 'unpair')
196
+ # normally distributed
197
+ # normally distributed
198
+ # unpaired t text
199
+ # t(8) = 1.81117, p=0.1077
200
+ p,res = FuncCmpt(x1,x2, pmc='pmc',pair='pair')
201
+ # paired t test
202
+ # t(4)=1.55556,p=0.19479
180
203
  ```
181
204
 
182
205
  #### FuncMultiCmpt ( multiple groups cmp)
@@ -189,7 +212,15 @@ FuncMultiCmpt(pmc='pmc', pair='unpair', data=None, dv=None, factor=None,
189
212
  )
190
213
  ```
191
214
 
192
-
215
+ ```python
216
+ df = pd.DataFrame({'score': [64, 66, 68, 75, 78, 94, 98, 79, 71, 80,
217
+ 91, 92, 93, 90, 97, 94, 82, 88, 95, 96,
218
+ 79, 78, 88, 94, 92, 85, 83, 85, 82, 81],
219
+ 'group': np.repeat(['strat1', 'strat2', 'strat3'],repeats=10)})
220
+ res = FuncMultiCmpt(pmc='auto',pair='unpaired',data=df, dv='score', factor='group', group='group')
221
+ res["APA"]
222
+ # ['group:F(2, 17)=9.71719,p=0.0016']
223
+ ```
193
224
 
194
225
  #### FuncStars
195
226
 
@@ -218,6 +249,9 @@ FuncStars(ax,
218
249
  report=None,
219
250
  report_scale=-0.1,
220
251
  report_loc=None)
252
+
253
+
254
+
221
255
  ```
222
256
 
223
257
  ### plots
@@ -20,7 +20,7 @@ py2ls/.git/index,sha256=dFuEtKIwNbvkSwCOgPFFlTnUWTxoKwGVPfAZLGr_SDc,1338
20
20
  py2ls/.git/info/exclude,sha256=ZnH-g7egfIky7okWTR8nk7IxgFjri5jcXAbuClo7DsE,240
21
21
  py2ls/.git/logs/HEAD,sha256=r01kCkDsMidsp_crCVUWyA__eZcfqVEQdtWkHx9D_xk,656
22
22
  py2ls/.git/logs/refs/heads/main,sha256=r01kCkDsMidsp_crCVUWyA__eZcfqVEQdtWkHx9D_xk,656
23
- py2ls/.git/logs/refs/remotes/origin/HEAD,sha256=W8YaqR507qIUo0TDxtwG1LnGH4iwM7FztvFo4wQhPGg,648
23
+ py2ls/.git/logs/refs/remotes/origin/HEAD,sha256=4HifhHwLckpwnt5NJDwab_QQJnHjxVvEKNPPFf_YZYo,1134
24
24
  py2ls/.git/logs/refs/remotes/origin/main,sha256=5Nz8WSEFsACJwQELGNiwPEnhZLjeo4YI2XKmcWdGXHg,608
25
25
  py2ls/.git/objects/14/449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed,sha256=PomZFmCUCQM1ii0wH-OJGSHLQCTqRtIwE5w3C0TtzSY,171
26
26
  py2ls/.git/objects/15/a8e468aacfcb440e090020f36d0b985d45da23,sha256=xiRunMcN5I_B2hHgBUFupR-F0b8H_CQTmmAZG9XkZik,3215
@@ -55,19 +55,19 @@ py2ls/.git/refs/remotes/origin/main,sha256=91iJXLMjAOU2Xo1f2B6VYtTuZc0S--2MxQjGf
55
55
  py2ls/.gitattributes,sha256=Gh2-F2vCM7SZ01pX23UT8pQcmauXWfF3gwyRSb6ZAFs,66
56
56
  py2ls/.gitignore,sha256=y7GvbD_zZkjPVVIue8AyiuFkDMuUbvMaV65Lgu89To8,2763
57
57
  py2ls/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
58
- py2ls/README.md,sha256=weyRDpAkC90Azappa7sv6I5Ii4WOiv1D78PuLwuaAc8,9961
58
+ py2ls/README.md,sha256=CwvJWAnSXnCnrVHlnEbrxxi6MbjbE_MT6DH2D53S818,11572
59
59
  py2ls/__init__.py,sha256=k05sUEKwWnAaOAn4VKCiPopcWrbmLLsZOuAt7vmUKWc,260
60
60
  py2ls/brain_atlas.py,sha256=w1o5EelRjq89zuFJUNSz4Da8HnTCwAwDAZ4NU4a-bAY,5486
61
61
  py2ls/correlators.py,sha256=RbOaJIPLCHJtUm5SFi_4dCJ7VFUPWR0PErfK3K26ad4,18243
62
62
  py2ls/dbhandler.py,sha256=i9dNrpHyx0oIaFieHI4X4tsrCdN-aFxudPTDOgy9Ppo,3574
63
63
  py2ls/freqanalysis.py,sha256=F4218VSPbgL5tnngh6xNCYuNnfR-F_QjECUUxrPYZss,32594
64
64
  py2ls/internet_finder.py,sha256=I-jPepbBhpDaOAsD2MqbKMe1CBN8w1PYo0CjNFkaeeU,19149
65
- py2ls/ips.py,sha256=E5u8kBybs2DnHzBTj_lQy8taNRiQpAY1uRRV4dy3Owg,119286
65
+ py2ls/ips.py,sha256=_jA89eTuUn71hSL8b6qxJKIlyiiFwKxOv2XH0V68mEo,119245
66
66
  py2ls/netfinder.py,sha256=Woilmx31B1Uh3we19WLVa63ptw2YU4Z99KUqlq90eAY,29774
67
67
  py2ls/sleep_events_detectors.py,sha256=36MCuRrpurn0Uvzpo3p3b3_JlVsRNHSWCXbJxCGM3mg,51546
68
68
  py2ls/translator.py,sha256=QfDUO0-pXHGMBFZBefiBHzOrC93-__N5sUQY_VP4wes,29734
69
69
  py2ls/version.py,sha256=CactNZqrHHYTPrkHKccy2WKXmaiUdtTgPqSjFyVXnJk,18
70
70
  py2ls/wb_detector.py,sha256=7y6TmBUj9exCZeIgBAJ_9hwuhkDh1x_-yg4dvNY1_GQ,6284
71
- py2ls-0.1.3.dist-info/METADATA,sha256=-UaEL_JLQ5fFjz8wP2xsFSVmNdbP_SgSxn0O0li5thU,10248
72
- py2ls-0.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
73
- py2ls-0.1.3.dist-info/RECORD,,
71
+ py2ls-0.1.4.dist-info/METADATA,sha256=dikB3bPG4TgpZCoQBErdXywSL5nCu23UtVlE3fI_O3g,11859
72
+ py2ls-0.1.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
73
+ py2ls-0.1.4.dist-info/RECORD,,
File without changes