py2ls 0.1.1__py3-none-any.whl → 0.1.3__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.
- py2ls/.git/FETCH_HEAD +1 -1
- py2ls/.git/index +0 -0
- py2ls/.git/logs/HEAD +2 -0
- py2ls/.git/logs/refs/heads/main +2 -0
- py2ls/.git/logs/refs/remotes/origin/HEAD +2 -0
- py2ls/.git/logs/refs/remotes/origin/main +2 -0
- py2ls/.git/objects/14/449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed +4 -0
- py2ls/.git/objects/15/a8e468aacfcb440e090020f36d0b985d45da23 +0 -0
- py2ls/.git/objects/36/ef43e50009e59db11812c258846d9e38718173 +0 -0
- py2ls/.git/objects/a5/ec8f74642fbba27f7ea78c53b372ae0c7dedce +0 -0
- py2ls/.git/objects/b2/18e6a0f0f1c4df8cdefa9852058348abc713b7 +0 -0
- py2ls/.git/objects/e3/5a4dafc50850cacac7bf76c56db2715cbda2c4 +0 -0
- py2ls/.git/refs/heads/main +1 -1
- py2ls/.git/refs/remotes/origin/main +1 -1
- py2ls/README.md +7 -4
- py2ls-0.1.3.dist-info/METADATA +432 -0
- {py2ls-0.1.1.dist-info → py2ls-0.1.3.dist-info}/RECORD +18 -12
- py2ls-0.1.1.dist-info/METADATA +0 -12
- {py2ls-0.1.1.dist-info → py2ls-0.1.3.dist-info}/WHEEL +0 -0
py2ls/.git/FETCH_HEAD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
36ef43e50009e59db11812c258846d9e38718173 branch 'main' of https://github.com/Jianfengliu0413/py2ls
|
py2ls/.git/index
CHANGED
Binary file
|
py2ls/.git/logs/HEAD
CHANGED
@@ -1,2 +1,4 @@
|
|
1
1
|
0000000000000000000000000000000000000000 b056be4be89ba6b76949dd641df45bb7036050c8 Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370186 +0200 commit (initial): Initial commit
|
2
2
|
b056be4be89ba6b76949dd641df45bb7036050c8 d9c2403fd166ce791b4e9d0c6792ed8342c71fcd Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370427 +0200 commit: Update README.md
|
3
|
+
d9c2403fd166ce791b4e9d0c6792ed8342c71fcd 14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370666 +0200 commit: Update README.md
|
4
|
+
14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed 36ef43e50009e59db11812c258846d9e38718173 Jianfeng <Jianfeng.Liu0413@gmail.com> 1718371326 +0200 commit: Update README.md
|
py2ls/.git/logs/refs/heads/main
CHANGED
@@ -1,2 +1,4 @@
|
|
1
1
|
0000000000000000000000000000000000000000 b056be4be89ba6b76949dd641df45bb7036050c8 Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370186 +0200 commit (initial): Initial commit
|
2
2
|
b056be4be89ba6b76949dd641df45bb7036050c8 d9c2403fd166ce791b4e9d0c6792ed8342c71fcd Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370427 +0200 commit: Update README.md
|
3
|
+
d9c2403fd166ce791b4e9d0c6792ed8342c71fcd 14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370666 +0200 commit: Update README.md
|
4
|
+
14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed 36ef43e50009e59db11812c258846d9e38718173 Jianfeng <Jianfeng.Liu0413@gmail.com> 1718371326 +0200 commit: Update README.md
|
@@ -1,2 +1,4 @@
|
|
1
1
|
0000000000000000000000000000000000000000 b056be4be89ba6b76949dd641df45bb7036050c8 Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718370200 +0200 remote set-head
|
2
2
|
d9c2403fd166ce791b4e9d0c6792ed8342c71fcd d9c2403fd166ce791b4e9d0c6792ed8342c71fcd Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718370431 +0200 remote set-head
|
3
|
+
14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed 14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718370669 +0200 remote set-head
|
4
|
+
36ef43e50009e59db11812c258846d9e38718173 36ef43e50009e59db11812c258846d9e38718173 Jianfeng Liu <macjianfeng@jflmbp.speedport.ip> 1718371330 +0200 remote set-head
|
@@ -1,2 +1,4 @@
|
|
1
1
|
0000000000000000000000000000000000000000 b056be4be89ba6b76949dd641df45bb7036050c8 Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370199 +0200 update by push
|
2
2
|
b056be4be89ba6b76949dd641df45bb7036050c8 d9c2403fd166ce791b4e9d0c6792ed8342c71fcd Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370430 +0200 update by push
|
3
|
+
d9c2403fd166ce791b4e9d0c6792ed8342c71fcd 14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed Jianfeng <Jianfeng.Liu0413@gmail.com> 1718370668 +0200 update by push
|
4
|
+
14449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed 36ef43e50009e59db11812c258846d9e38718173 Jianfeng <Jianfeng.Liu0413@gmail.com> 1718371329 +0200 update by push
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
py2ls/.git/refs/heads/main
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
36ef43e50009e59db11812c258846d9e38718173
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
36ef43e50009e59db11812c258846d9e38718173
|
py2ls/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Install
|
2
2
|
|
3
|
-
```
|
3
|
+
```python
|
4
4
|
pip install py2ls
|
5
5
|
```
|
6
6
|
|
@@ -8,13 +8,13 @@ pip install py2ls
|
|
8
8
|
|
9
9
|
# ips
|
10
10
|
|
11
|
-
### listdir, basename, dirname, newfolder
|
11
|
+
### listdir, basename, dirname, newfolder, finfo
|
12
12
|
|
13
13
|
e.g.,
|
14
14
|
|
15
15
|
```python
|
16
16
|
fpath = "....../"
|
17
|
-
ips.listdir(fpath, kind='pdf', sort_by="size", ascending=0, output = df)
|
17
|
+
ips.listdir(fpath, kind='pdf', sort_by="size", ascending=0, output = 'df')
|
18
18
|
```
|
19
19
|
|
20
20
|
it filters the ‘.pdf’ files, and sort by the (file-size/name, length of name, create_time, mod_time, last_open_time …) it returns a DataFrame or BoxList (setting by ‘output’)
|
@@ -245,7 +245,10 @@ get_color(12)
|
|
245
245
|
# '#58BBCC']
|
246
246
|
```
|
247
247
|
|
248
|
-
|
248
|
+
```python
|
249
|
+
get_color(5, cmap="jet") # ['#000080', '#000084', '#000089', '#00008d', '#000092']
|
250
|
+
get_color(5,cmap="rainbow") #['#8000ff', '#7e03ff', '#7c06ff', '#7a09ff', '#780dff']
|
251
|
+
```
|
249
252
|
|
250
253
|
#### img appearance
|
251
254
|
|
@@ -0,0 +1,432 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: py2ls
|
3
|
+
Version: 0.1.3
|
4
|
+
Summary:
|
5
|
+
Author: Jianfeng
|
6
|
+
Author-email: Jianfeng.Liu0413@gmail.com
|
7
|
+
Requires-Python: >=3.12,<4.0
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
10
|
+
Description-Content-Type: text/markdown
|
11
|
+
|
12
|
+
# Install
|
13
|
+
|
14
|
+
```python
|
15
|
+
pip install py2ls
|
16
|
+
```
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
# ips
|
21
|
+
|
22
|
+
### listdir, basename, dirname, newfolder, finfo
|
23
|
+
|
24
|
+
e.g.,
|
25
|
+
|
26
|
+
```python
|
27
|
+
fpath = "....../"
|
28
|
+
ips.listdir(fpath, kind='pdf', sort_by="size", ascending=0, output = 'df')
|
29
|
+
```
|
30
|
+
|
31
|
+
it filters the ‘.pdf’ files, and sort by the (file-size/name, length of name, create_time, mod_time, last_open_time …) it returns a DataFrame or BoxList (setting by ‘output’)
|
32
|
+
|
33
|
+
```python
|
34
|
+
dir_data, dir_fig = newfolder(fpath, {'data', 'fig'}) # create folder
|
35
|
+
```
|
36
|
+
|
37
|
+
```python
|
38
|
+
finfo(fpath) # get info: size, creation time, mod time, parent_path, fname, kind...
|
39
|
+
```
|
40
|
+
|
41
|
+
```python
|
42
|
+
dir_lib(lib_of_interest) # get the fpath
|
43
|
+
```
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
### list_func/func_list (same)
|
48
|
+
|
49
|
+
list functions in a package
|
50
|
+
|
51
|
+
### fload, fsave, figsave
|
52
|
+
|
53
|
+
e.g.,
|
54
|
+
|
55
|
+
```python
|
56
|
+
fload(fpath, kind=None, **kwargs)
|
57
|
+
```
|
58
|
+
|
59
|
+
load file (docx, pdf, image, md, json,csv,txt, html, yaml, xml, xlsx…) or save file.
|
60
|
+
|
61
|
+
```python
|
62
|
+
# figsave, as used in matlab.
|
63
|
+
figsave(dir_save, "fname.pdf", dpi=300)
|
64
|
+
```
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
### pdf2img, img2pdf, docx2pdf
|
69
|
+
|
70
|
+
extract images from a PDF, or merge images into a pdf file
|
71
|
+
|
72
|
+
```python
|
73
|
+
pdf2img(dir_pdf, dir_save=None, page=None, kind="png",verbose=True, **kws)
|
74
|
+
pdf2img(fpath, page=[None, None]) # means extract all pages
|
75
|
+
# processing page: 1
|
76
|
+
# processing page: 2
|
77
|
+
# processing page: 3
|
78
|
+
# processing page: 4
|
79
|
+
# processing page: 5
|
80
|
+
|
81
|
+
```
|
82
|
+
|
83
|
+
```python
|
84
|
+
img2pdf(dir_img, kind="jpeg",page=None, dir_save=None, page_size="a4", dpi=300)
|
85
|
+
```
|
86
|
+
|
87
|
+
```python
|
88
|
+
docx2pdf(dir_docx, dir_save) # convert docx to pdf
|
89
|
+
```
|
90
|
+
|
91
|
+
### paper_size
|
92
|
+
|
93
|
+
quickly get the size info
|
94
|
+
|
95
|
+
```python
|
96
|
+
paper_size('a4') # [210, 297]
|
97
|
+
paper_size('card') # [85.6, 53.98]
|
98
|
+
```
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
### str2num, num2str, str2list
|
103
|
+
|
104
|
+
e.g.,
|
105
|
+
|
106
|
+
```python
|
107
|
+
str2num(“123.345 dollers”,2)# => 123.35 (float)
|
108
|
+
```
|
109
|
+
|
110
|
+
```python
|
111
|
+
str2list("abcd") # ['a','b','c','d']
|
112
|
+
```
|
113
|
+
|
114
|
+
```python
|
115
|
+
list2str(x_str)
|
116
|
+
```
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
### ssplit, sreplace
|
121
|
+
|
122
|
+
```python
|
123
|
+
sreplace(text, dict_replace=None, robust=True)
|
124
|
+
```
|
125
|
+
|
126
|
+
```python
|
127
|
+
ssplit(text, by="space", verbose=False, **kws) # by = "word", "sentence", ", ","num_strings","digital".....,"length", "upper followed lower", "lower followed upper"
|
128
|
+
```
|
129
|
+
|
130
|
+
```python
|
131
|
+
text = "The most pronounced physiological changes in sleep occur in the brain.[10] The brain uses significantly less energy during sleep than it does when awake, especially during non-REM sleep. In areas with reduced activity, the brain restores its supply of adenosine triphosphate (ATP), the molecule used for short-term storage and transport of energy.[11] In quiet waking, the brain is responsible for 20% of the body's energy use, thus this reduction has a noticeable effect on overall energy consumption.[12]"
|
132
|
+
ssplit(text, by=["[10]", "[11]", "[12]"])
|
133
|
+
# ['The most pronounced physiological changes in sleep occur in the brain.',
|
134
|
+
# ' The brain uses significantly less energy during sleep than it does when awake, especially during non-REM sleep. In areas with reduced activity, the brain restores its supply of adenosine triphosphate (ATP), the molecule used for short-term storage and transport of energy.',
|
135
|
+
# " In quiet waking, the brain is responsible for 20% of the body's energy use, thus this reduction has a noticeable effect on overall energy consumption.",
|
136
|
+
# '']
|
137
|
+
```
|
138
|
+
|
139
|
+
```python
|
140
|
+
ssplit(text[:30], by="len", length=5)
|
141
|
+
# ['The m', 'ost p', 'ronou', 'nced ', 'physi', 'ologi']
|
142
|
+
```
|
143
|
+
|
144
|
+
```python
|
145
|
+
ssplit(text, by="non_alphanumeric")
|
146
|
+
# ['The most pronounced physiological changes in sleep occur in the brain.[',
|
147
|
+
# '10',
|
148
|
+
# '] The brain uses significantly less energy during sleep than it does when awake, especially during non-REM sleep. In areas with reduced activity, the brain restores its supply of adenosine triphosphate (ATP), the molecule used for short-term storage and transport of energy.[',
|
149
|
+
# '11',
|
150
|
+
# '] In quiet waking, the brain is responsible for ',
|
151
|
+
# '20',
|
152
|
+
# "% of the body's energy use, thus this reduction has a noticeable effect on overall energy consumption.[",
|
153
|
+
# '12',
|
154
|
+
# ']']
|
155
|
+
```
|
156
|
+
|
157
|
+
```python
|
158
|
+
ssplit(text, by="sent")
|
159
|
+
#['The most pronounced physiological changes in sleep occur in the brain.',
|
160
|
+
#'[10] The brain uses significantly less energy during sleep than it does when awake, especially during non-REM sleep.',
|
161
|
+
#'In areas with reduced activity, the brain restores its supply of adenosine triphosphate (ATP), the molecule used for short-term storage and transport of energy.',
|
162
|
+
#"[11] In quiet waking, the brain is responsible for 20% of the body's energy use, thus this reduction has a noticeable effect on overall energy consumption.",
|
163
|
+
#'[12]']
|
164
|
+
```
|
165
|
+
|
166
|
+
```python
|
167
|
+
ssplit(text, by="lowup")
|
168
|
+
# ["The most pronounced physiological changes in sleep occur in the brain.[10] The brain uses significantly less energy during sleep than it does when awake, especially during non-REM sleep. In areas with reduced activity, the brain restores its supply of adenosine triphosphate (ATP), the molecule used for short-term storage and transport of energy.[11] In quiet waking, the brain is responsible for 20% of the body's energy use, thus this reduction has a noticeable effect on overall energy consumption.[12]"]
|
169
|
+
|
170
|
+
```
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
### stats
|
175
|
+
|
176
|
+
#### **FuncCmpt** ( two groups cmp)
|
177
|
+
|
178
|
+
```python
|
179
|
+
FuncCmpt(X1, X2, pmc='auto', pair='unpaired')
|
180
|
+
```
|
181
|
+
|
182
|
+
#### FuncMultiCmpt ( multiple groups cmp)
|
183
|
+
|
184
|
+
```python
|
185
|
+
FuncMultiCmpt(pmc='pmc', pair='unpair', data=None, dv=None, factor=None,
|
186
|
+
ss_type=2, detailed=True, effsize='np2',
|
187
|
+
correction='auto', between=None, within=None,
|
188
|
+
subject=None, group=None
|
189
|
+
)
|
190
|
+
```
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
#### FuncStars
|
195
|
+
|
196
|
+
```python
|
197
|
+
FuncStars(ax,
|
198
|
+
pval=None,
|
199
|
+
Ylim=None,
|
200
|
+
Xlim=None,
|
201
|
+
symbol='*',
|
202
|
+
yscale=0.95,
|
203
|
+
x1=0,
|
204
|
+
x2=1,
|
205
|
+
alpha=0.05,
|
206
|
+
fontsize=14,
|
207
|
+
fontsize_note=6,
|
208
|
+
rotation=0,
|
209
|
+
fontname='Arial',
|
210
|
+
values_below=None,
|
211
|
+
linego=True,
|
212
|
+
linestyle='-',
|
213
|
+
linecolor='k',
|
214
|
+
linewidth=.8,
|
215
|
+
nsshow='off',
|
216
|
+
symbolcolor='k',
|
217
|
+
tailindicator=[0.06, 0.06],
|
218
|
+
report=None,
|
219
|
+
report_scale=-0.1,
|
220
|
+
report_loc=None)
|
221
|
+
```
|
222
|
+
|
223
|
+
### plots
|
224
|
+
|
225
|
+
#### stdshade
|
226
|
+
|
227
|
+
```python
|
228
|
+
stdshade(ax=None,*args, **kwargs)
|
229
|
+
```
|
230
|
+
|
231
|
+
#### add_colorbar
|
232
|
+
|
233
|
+
```python
|
234
|
+
add_colorbar(im, width=None, pad=None, **kwargs)
|
235
|
+
```
|
236
|
+
|
237
|
+
#### get_color
|
238
|
+
|
239
|
+
```python
|
240
|
+
get_color(n=1, cmap='auto')
|
241
|
+
```
|
242
|
+
|
243
|
+
```python
|
244
|
+
get_color(12)
|
245
|
+
# ['#474747',
|
246
|
+
# '#FF2C00',
|
247
|
+
# '#0C5DA5',
|
248
|
+
# '#845B97',
|
249
|
+
# '#58BBCC',
|
250
|
+
# '#FF9500',
|
251
|
+
# '#D57DBE',
|
252
|
+
# '#474747',
|
253
|
+
# '#FF2C00',
|
254
|
+
# '#0C5DA5',
|
255
|
+
# '#845B97',
|
256
|
+
# '#58BBCC']
|
257
|
+
```
|
258
|
+
|
259
|
+
```python
|
260
|
+
get_color(5, cmap="jet") # ['#000080', '#000084', '#000089', '#00008d', '#000092']
|
261
|
+
get_color(5,cmap="rainbow") #['#8000ff', '#7e03ff', '#7c06ff', '#7a09ff', '#780dff']
|
262
|
+
```
|
263
|
+
|
264
|
+
#### img appearance
|
265
|
+
|
266
|
+
#### imgsets
|
267
|
+
|
268
|
+
```python
|
269
|
+
imgsets(
|
270
|
+
img,
|
271
|
+
sets=None,
|
272
|
+
show=True,
|
273
|
+
show_axis=False,
|
274
|
+
size=None,
|
275
|
+
dpi=100,
|
276
|
+
figsize=None,
|
277
|
+
auto=False,
|
278
|
+
filter_kws=None,
|
279
|
+
)
|
280
|
+
```
|
281
|
+
|
282
|
+
```python
|
283
|
+
img = imgsets(
|
284
|
+
fpath,
|
285
|
+
sets={"rota": -5, "sharp": 10},
|
286
|
+
dpi=200,
|
287
|
+
# show_axis=True,
|
288
|
+
)
|
289
|
+
figsave(dir_save, "test1_sharp.pdf")
|
290
|
+
|
291
|
+
|
292
|
+
img2 = imgsets(
|
293
|
+
fpath,
|
294
|
+
sets={"rota": -5, "crop": [100, 100, 300, 400], "sharp": 10},
|
295
|
+
dpi=200,
|
296
|
+
filter_kws={
|
297
|
+
"sharpen": 10,
|
298
|
+
},
|
299
|
+
# show_axis=True,
|
300
|
+
)
|
301
|
+
figsave(dir_save, "test2_crop.pdf")
|
302
|
+
```
|
303
|
+
|
304
|
+
```python
|
305
|
+
fload(dir_img)
|
306
|
+
```
|
307
|
+
|
308
|
+

|
309
|
+
|
310
|
+
```python
|
311
|
+
imgsets(img, sets={"color": 1.5}, show=0)
|
312
|
+
```
|
313
|
+
|
314
|
+

|
315
|
+
|
316
|
+
```python
|
317
|
+
imgsets(img, sets={"pad": (300, 300), "bgcolor": (73, 162, 127)}, show=0)
|
318
|
+
```
|
319
|
+
|
320
|
+

|
321
|
+
|
322
|
+
```python
|
323
|
+
imgsets(
|
324
|
+
img,
|
325
|
+
sets={"contrast": 1.3, "color": 1.5, "pad": (300, 300)},
|
326
|
+
show=0,
|
327
|
+
filter_kws=dict(sh=1050, EDG=10, gaus=5),
|
328
|
+
)
|
329
|
+
```
|
330
|
+
|
331
|
+

|
332
|
+
|
333
|
+
```python
|
334
|
+
imgsets(
|
335
|
+
img,
|
336
|
+
sets={"color": 10.5},
|
337
|
+
show=0,
|
338
|
+
filter_kws=dict(EDGE_ENHANCE=50, EDGE_NHANCEmore=50),
|
339
|
+
)
|
340
|
+
```
|
341
|
+
|
342
|
+

|
343
|
+
|
344
|
+
```python
|
345
|
+
imgsets(
|
346
|
+
img,
|
347
|
+
sets=dict(contr=1.5, rm="default"),
|
348
|
+
show=0,
|
349
|
+
# filter_kws=dict(sharp=1),
|
350
|
+
)
|
351
|
+
```
|
352
|
+
|
353
|
+

|
354
|
+
|
355
|
+
```python
|
356
|
+
imgsets(
|
357
|
+
img,
|
358
|
+
sets=dict(contr=0, rm="default"),
|
359
|
+
show=0,
|
360
|
+
filter_kws=dict(sharp=1),
|
361
|
+
)
|
362
|
+
```
|
363
|
+
|
364
|
+

|
365
|
+
|
366
|
+
#### figsets
|
367
|
+
|
368
|
+
```python
|
369
|
+
figsets(*args)
|
370
|
+
```
|
371
|
+
|
372
|
+
```python
|
373
|
+
cm = 1 / 2.54
|
374
|
+
# plt.style.use("paper")
|
375
|
+
plt.figure(figsize=[8 * cm, 5 * cm])
|
376
|
+
for i in range(2, 4):
|
377
|
+
plt.plot(x, y * i, ls="-")
|
378
|
+
figsets(
|
379
|
+
plt.gca(),
|
380
|
+
{
|
381
|
+
"xlabel": f"time([{x[0]}:{x[-1]}])",
|
382
|
+
"ylabel": "Amplitude (signals)",
|
383
|
+
# "titel": "paper",
|
384
|
+
"xlim": [0, 600],
|
385
|
+
"xtick": np.arange(0, 620, 150),
|
386
|
+
"xlabel": "test xticklabel",
|
387
|
+
# "ylim": [-2.5, 2.5],
|
388
|
+
"sp": "go",
|
389
|
+
# "style": "paper",
|
390
|
+
"box": ":",
|
391
|
+
"grid": "on",
|
392
|
+
"minorticks": "on",
|
393
|
+
"ticks": {"c": "k"},
|
394
|
+
},
|
395
|
+
)
|
396
|
+
figsets('style','paper')
|
397
|
+
```
|
398
|
+
|
399
|
+
```python
|
400
|
+
cm = 1/2.54 # centimeters in inches
|
401
|
+
fig, ax = plt.subplots(1, 1, figsize=(7*cm, 5*cm))
|
402
|
+
x = np.linspace(0, 2 * np.pi, 50) * 100
|
403
|
+
y = np.sin(x)
|
404
|
+
c=get_color(7)
|
405
|
+
|
406
|
+
for i in range(2,7):
|
407
|
+
plt.plot(x, y*i,c=c[i])
|
408
|
+
figsets(
|
409
|
+
ax,
|
410
|
+
{
|
411
|
+
"xlim": [0, 450],
|
412
|
+
# "ylim": [-1.5, 1.5],
|
413
|
+
"xlabel": "2222",
|
414
|
+
# "style":"paper",
|
415
|
+
"yticks": np.arange(-5,5, 2),
|
416
|
+
"ylabel": "ylabelsssss",
|
417
|
+
"xtkbel": range(0, 800, 100),
|
418
|
+
# "spine": 5,
|
419
|
+
"suptitle": "supertitle",
|
420
|
+
# "minorticks": "y",
|
421
|
+
# "ticksloc":"lt",
|
422
|
+
# "ticks": {"direction": "out",'c':'b'},
|
423
|
+
"rotation":45,
|
424
|
+
# 'box':"lt",
|
425
|
+
# "labellocation":'r',
|
426
|
+
# "ax_color":'b',
|
427
|
+
# 'grid':{"which":'minor','lw':1,"ls":'-.','c':'b','al':0.3},
|
428
|
+
},
|
429
|
+
)
|
430
|
+
```
|
431
|
+
|
432
|
+
|
@@ -1,5 +1,5 @@
|
|
1
1
|
py2ls/.git/COMMIT_EDITMSG,sha256=B3XrT0Cg30tjp12w8u4H2fB1hQQF8rNd08KCaMdPS6M,17
|
2
|
-
py2ls/.git/FETCH_HEAD,sha256=
|
2
|
+
py2ls/.git/FETCH_HEAD,sha256=RXfKLXBwEhn0WtKppmo9LkRtbZ7tF0gUtMtWMWld_88,100
|
3
3
|
py2ls/.git/HEAD,sha256=KNJb-Cr0wOK3L1CVmyvrhZ4-YLljCl6MYD2tTdsrboA,21
|
4
4
|
py2ls/.git/config,sha256=XswTg1Ts7_7IBDlKHh4OF_0Tq7v4wW7BXb6xSVInSec,345
|
5
5
|
py2ls/.git/description,sha256=ZzMxc0Ca26m45Twn1DDnOHqin5VHEZ9uOTBrScIXSjE,16
|
@@ -16,15 +16,18 @@ py2ls/.git/hooks/pre-receive.sample,sha256=pMPSuce7P9jRRBwxvU7nGlldZrRPz0ndsxAlI
|
|
16
16
|
py2ls/.git/hooks/prepare-commit-msg.sample,sha256=6d3KpBif3dJe2X_Ix4nsp7bKFjkLI5KuMnbwyOGqRhk,1492
|
17
17
|
py2ls/.git/hooks/push-to-checkout.sample,sha256=pT0HQXmLKHxt16-mSu5HPzBeZdP0lGO7nXQI7DsSv18,2783
|
18
18
|
py2ls/.git/hooks/update.sample,sha256=jV8vqD4QPPCLV-qmdSHfkZT0XL28s32lKtWGCXoU0QY,3650
|
19
|
-
py2ls/.git/index,sha256
|
19
|
+
py2ls/.git/index,sha256=dFuEtKIwNbvkSwCOgPFFlTnUWTxoKwGVPfAZLGr_SDc,1338
|
20
20
|
py2ls/.git/info/exclude,sha256=ZnH-g7egfIky7okWTR8nk7IxgFjri5jcXAbuClo7DsE,240
|
21
|
-
py2ls/.git/logs/HEAD,sha256=
|
22
|
-
py2ls/.git/logs/refs/heads/main,sha256=
|
23
|
-
py2ls/.git/logs/refs/remotes/origin/HEAD,sha256=
|
24
|
-
py2ls/.git/logs/refs/remotes/origin/main,sha256=
|
21
|
+
py2ls/.git/logs/HEAD,sha256=r01kCkDsMidsp_crCVUWyA__eZcfqVEQdtWkHx9D_xk,656
|
22
|
+
py2ls/.git/logs/refs/heads/main,sha256=r01kCkDsMidsp_crCVUWyA__eZcfqVEQdtWkHx9D_xk,656
|
23
|
+
py2ls/.git/logs/refs/remotes/origin/HEAD,sha256=W8YaqR507qIUo0TDxtwG1LnGH4iwM7FztvFo4wQhPGg,648
|
24
|
+
py2ls/.git/logs/refs/remotes/origin/main,sha256=5Nz8WSEFsACJwQELGNiwPEnhZLjeo4YI2XKmcWdGXHg,608
|
25
|
+
py2ls/.git/objects/14/449a0e6ba4ea2f1a73acf63ef91c9c6193f9ed,sha256=PomZFmCUCQM1ii0wH-OJGSHLQCTqRtIwE5w3C0TtzSY,171
|
26
|
+
py2ls/.git/objects/15/a8e468aacfcb440e090020f36d0b985d45da23,sha256=xiRunMcN5I_B2hHgBUFupR-F0b8H_CQTmmAZG9XkZik,3215
|
25
27
|
py2ls/.git/objects/25/b796accd261b9135fd32a2c00785f68edf6c46,sha256=4ic5vOwEdfbGL8oARSVEeAnSoDs14-gggGZEL-61nYE,564
|
26
28
|
py2ls/.git/objects/30/a2f8da47ee947811dc8d993f5a06a45de374f4,sha256=u5W33_qNtTs1-U8Fardx-zB_udqKvuCm5kiw1mQGdsU,3218
|
27
29
|
py2ls/.git/objects/36/b4a1b7403abc6c360f8fe2cb656ab945254971,sha256=X18sHo17gQTxusNptoILoWxSfU0ulrsZvbETlBtV5aY,2327
|
30
|
+
py2ls/.git/objects/36/ef43e50009e59db11812c258846d9e38718173,sha256=0nwCwQSuQAdGyD2NfEK-_L12ydE9nGVKBXOfFq_Lndc,169
|
28
31
|
py2ls/.git/objects/3f/d6561300938afbb3d11976cf9c8f29549280d9,sha256=91oqbTWfUE1d_hT_1ptYmRUb5pOQ1X4oxQxpF6NXjKU,8501
|
29
32
|
py2ls/.git/objects/58/20a729045d4dc7e37ccaf8aa8eec126850afe2,sha256=3Pf6NS8OTK4EdHZGVeJ421BtK7w4WJncQDBauZI_wW4,34
|
30
33
|
py2ls/.git/objects/60/f273eb1c412d916fa3f11318a7da7a9911b52a,sha256=aJD9iF_LmYSrqDepXFBZKN1yMYbQczVkN_wnrDosBdI,5620
|
@@ -36,20 +39,23 @@ py2ls/.git/objects/7e/5956c806b5edc344d46dab599dec337891ba1f,sha256=sfqJBiSNj-gy
|
|
36
39
|
py2ls/.git/objects/8e/55a7d2b96184030211f20c9b9af201eefcac82,sha256=yW-jVYeCTWR-nX3JJgA1g9YLPjzNsKlDmEOH290Ywx0,1221
|
37
40
|
py2ls/.git/objects/91/c69ad88fe0ba94aa7859fb5f7edac5e6f1a3f7,sha256=Kk2MWCO1OcShYuABGzp2O9LiWGDfDkcZtd0oy4nY6RU,9529
|
38
41
|
py2ls/.git/objects/9d/0df52899fe95279059286d9c0ec42287edc168,sha256=67nV3TLo-fwe4lt0wwvxoDnVNHc1IpapRyAY2STP3iI,564
|
42
|
+
py2ls/.git/objects/a5/ec8f74642fbba27f7ea78c53b372ae0c7dedce,sha256=Sl17Ka_UfjSZyEVDLv3yz8TjXL3O1u3gqOn8sXFPvTM,565
|
39
43
|
py2ls/.git/objects/b0/56be4be89ba6b76949dd641df45bb7036050c8,sha256=8Y7z30eNceBd5QIx09QfMp5cYBbrgUllmats0kvJEJ4,132
|
40
44
|
py2ls/.git/objects/b0/9cd7856d58590578ee1a4f3ad45d1310a97f87,sha256=82dx4hIdMpdcB64e5PU1s2gZFVkTvrj1cPwwJ_kasNU,4444
|
45
|
+
py2ls/.git/objects/b2/18e6a0f0f1c4df8cdefa9852058348abc713b7,sha256=hOQfdyzDZctjoge0-pAcEDel5XHVPNfOtrMNyFPUOIE,564
|
41
46
|
py2ls/.git/objects/d9/005f2cc7fc4e65f14ed5518276007c08cf2fd0,sha256=IJIoz93V7pf9yx43U1JdN8gBq_LWtw8A9Z2YMPnq_B0,1450
|
42
47
|
py2ls/.git/objects/d9/c2403fd166ce791b4e9d0c6792ed8342c71fcd,sha256=uD7BsKdrmN-9FStTpwsRWh-XxVXeDsV4dGjFkaMIIs8,170
|
43
48
|
py2ls/.git/objects/df/e0770424b2a19faf507a501ebfc23be8f54e7b,sha256=vCdlxwEidekh8i-5TVMVgSLGk9DPZCZAbWqvGYSKQ9c,76
|
49
|
+
py2ls/.git/objects/e3/5a4dafc50850cacac7bf76c56db2715cbda2c4,sha256=GAcBj3YSEbm6tm7fGD6al16uBo8LtEtjZ2Hi-UgIsUg,3290
|
44
50
|
py2ls/.git/objects/e9/391ffe371f1cc43b42ef09b705d9c767c2e14f,sha256=RWTy2n8L2XxZQknBFyPczA0Aa_4gSG_Ybcr8e8v4ccc,10264
|
45
51
|
py2ls/.git/objects/fc/292e793ecfd42240ac43be407023bd731fa9e7,sha256=hGIYoxKWNT3IPwk3DE4l3FLBbUYF-kXcHcx7KrH9uS0,1971
|
46
|
-
py2ls/.git/refs/heads/main,sha256=
|
52
|
+
py2ls/.git/refs/heads/main,sha256=91iJXLMjAOU2Xo1f2B6VYtTuZc0S--2MxQjGfLR15XA,41
|
47
53
|
py2ls/.git/refs/remotes/origin/HEAD,sha256=K7aiSqD8bEhBAPXVGim7rYQc0sdV9dk_qiBOXbtOsrQ,30
|
48
|
-
py2ls/.git/refs/remotes/origin/main,sha256=
|
54
|
+
py2ls/.git/refs/remotes/origin/main,sha256=91iJXLMjAOU2Xo1f2B6VYtTuZc0S--2MxQjGfLR15XA,41
|
49
55
|
py2ls/.gitattributes,sha256=Gh2-F2vCM7SZ01pX23UT8pQcmauXWfF3gwyRSb6ZAFs,66
|
50
56
|
py2ls/.gitignore,sha256=y7GvbD_zZkjPVVIue8AyiuFkDMuUbvMaV65Lgu89To8,2763
|
51
57
|
py2ls/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
|
52
|
-
py2ls/README.md,sha256=
|
58
|
+
py2ls/README.md,sha256=weyRDpAkC90Azappa7sv6I5Ii4WOiv1D78PuLwuaAc8,9961
|
53
59
|
py2ls/__init__.py,sha256=k05sUEKwWnAaOAn4VKCiPopcWrbmLLsZOuAt7vmUKWc,260
|
54
60
|
py2ls/brain_atlas.py,sha256=w1o5EelRjq89zuFJUNSz4Da8HnTCwAwDAZ4NU4a-bAY,5486
|
55
61
|
py2ls/correlators.py,sha256=RbOaJIPLCHJtUm5SFi_4dCJ7VFUPWR0PErfK3K26ad4,18243
|
@@ -62,6 +68,6 @@ py2ls/sleep_events_detectors.py,sha256=36MCuRrpurn0Uvzpo3p3b3_JlVsRNHSWCXbJxCGM3
|
|
62
68
|
py2ls/translator.py,sha256=QfDUO0-pXHGMBFZBefiBHzOrC93-__N5sUQY_VP4wes,29734
|
63
69
|
py2ls/version.py,sha256=CactNZqrHHYTPrkHKccy2WKXmaiUdtTgPqSjFyVXnJk,18
|
64
70
|
py2ls/wb_detector.py,sha256=7y6TmBUj9exCZeIgBAJ_9hwuhkDh1x_-yg4dvNY1_GQ,6284
|
65
|
-
py2ls-0.1.
|
66
|
-
py2ls-0.1.
|
67
|
-
py2ls-0.1.
|
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,,
|
py2ls-0.1.1.dist-info/METADATA
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: py2ls
|
3
|
-
Version: 0.1.1
|
4
|
-
Summary:
|
5
|
-
Author: Jianfeng
|
6
|
-
Author-email: Jianfeng.Liu0413@gmail.com
|
7
|
-
Requires-Python: >=3.12,<4.0
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
9
|
-
Classifier: Programming Language :: Python :: 3.12
|
10
|
-
Description-Content-Type: text/markdown
|
11
|
-
|
12
|
-
|
File without changes
|