Commit 6deb388
authored
Allow passing in pandas dataframes to x2sys_cross (#591)
Run crossover analysis directly on pandas.DataFrame inputs
instead of having to write to tab-separated value (TSV) files first!
Implemented by storing pandas.DataFrame data in a temporary file
and passing this intermediate file to x2sys_cross. Need to do some
file parsing to get the right file extension (suffix) for this to work.
* Use tempfile_from_dftrack instead of tempfile_from_buffer
* Don't use GMTTempFile, just generate random filename and write to it
* Reduce git diff and make Windows tests pass by ignoring permission error
* Test input two pandas dataframes to x2sys_cross with time column
Renamed 'result' to 'table' to prevent pylint complaining about
R0914: Too many local variables (16/15) (too-many-locals)
* Improve docstring of x2sys_cross and tempfile_from_dftrack1 parent c06fa44 commit 6deb388
2 files changed
+104
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
88 | 87 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
98 | 131 | | |
99 | 132 | | |
100 | 133 | | |
| |||
131 | 164 | | |
132 | 165 | | |
133 | 166 | | |
134 | | - | |
| 167 | + | |
135 | 168 | | |
136 | 169 | | |
137 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
21 | 58 | | |
22 | 59 | | |
23 | 60 | | |
| |||
158 | 195 | | |
159 | 196 | | |
160 | 197 | | |
161 | | - | |
| 198 | + | |
162 | 199 | | |
163 | | - | |
| 200 | + | |
| 201 | + | |
164 | 202 | | |
165 | 203 | | |
166 | 204 | | |
| |||
263 | 301 | | |
264 | 302 | | |
265 | 303 | | |
266 | | - | |
267 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
268 | 318 | | |
269 | 319 | | |
270 | 320 | | |
| |||
287 | 337 | | |
288 | 338 | | |
289 | 339 | | |
290 | | - | |
| 340 | + | |
291 | 341 | | |
292 | | - | |
| 342 | + | |
293 | 343 | | |
294 | | - | |
| 344 | + | |
0 commit comments