Commit 6cd5912
Charlotte Gerhaher
feat: add map function (#1187)
* feat: add apply function
Signed-off-by: anna-charlotte <[email protected]>
* test: add benchmark tests
Signed-off-by: anna-charlotte <[email protected]>
* fix: apply
Signed-off-by: anna-charlotte <[email protected]>
* fix: benchmark test
Signed-off-by: anna-charlotte <[email protected]>
* test: benchmark
Signed-off-by: anna-charlotte <[email protected]>
* fix: apply
Signed-off-by: anna-charlotte <[email protected]>
* fix: clean up
Signed-off-by: anna-charlotte <[email protected]>
* chore: remove benchmark tests from general tests
Signed-off-by: anna-charlotte <[email protected]>
* chore: fix ci
Signed-off-by: anna-charlotte <[email protected]>
* feat: add threading option and benchmark test
Signed-off-by: anna-charlotte <[email protected]>
* test: use both backend options in tests
Signed-off-by: anna-charlotte <[email protected]>
* feat: add batching to abstract array
Signed-off-by: anna-charlotte <[email protected]>
* feat: add apply_batch and _map_batch and tests
Signed-off-by: anna-charlotte <[email protected]>
* test: fix load from da
Signed-off-by: anna-charlotte <[email protected]>
* docs: update docstrings
Signed-off-by: anna-charlotte <[email protected]>
* docs: add example for apply
Signed-off-by: anna-charlotte <[email protected]>
* fix: mypy
Signed-off-by: anna-charlotte <[email protected]>
* refactor: clean up
Signed-off-by: anna-charlotte <[email protected]>
* refactor: make batch method private
Signed-off-by: anna-charlotte <[email protected]>
* fix: apply
Signed-off-by: anna-charlotte <[email protected]>
* Test: add for apply batch
Signed-off-by: anna-charlotte <[email protected]>
* fix: benchmark test increase ndocs
Signed-off-by: anna-charlotte <[email protected]>
* test: clean up
Signed-off-by: anna-charlotte <[email protected]>
* test: try to fix
Signed-off-by: anna-charlotte <[email protected]>
* test: try to fix test
Signed-off-by: anna-charlotte <[email protected]>
* fix: test
Signed-off-by: anna-charlotte <[email protected]>
* fix: test
Signed-off-by: anna-charlotte <[email protected]>
* fix: apply suggestions from code review
Signed-off-by: anna-charlotte <[email protected]>
* fix: remove print statemetns
Signed-off-by: anna-charlotte <[email protected]>
* fix: apply samis suggestion
Signed-off-by: anna-charlotte <[email protected]>
* fix: add tests for func da to doc and da to other len da
Signed-off-by: anna-charlotte <[email protected]>
* fix: revert last commit
Signed-off-by: anna-charlotte <[email protected]>
* test: add len assert
Signed-off-by: anna-charlotte <[email protected]>
* test: add assertions
Signed-off-by: anna-charlotte <[email protected]>
* test: add test to for da extend in batch apply
Signed-off-by: anna-charlotte <[email protected]>
* test: extend with only one doc
Signed-off-by: anna-charlotte <[email protected]>
* test: fix
Signed-off-by: anna-charlotte <[email protected]>
* fix: test
Signed-off-by: anna-charlotte <[email protected]>
* fix: test
Signed-off-by: anna-charlotte <[email protected]>
* fix: set docs in apply
Signed-off-by: anna-charlotte <[email protected]>
* fix: indices
Signed-off-by: anna-charlotte <[email protected]>
* fix: indices
Signed-off-by: anna-charlotte <[email protected]>
* fix: indices
Signed-off-by: anna-charlotte <[email protected]>
* fix: indices
Signed-off-by: anna-charlotte <[email protected]>
* fix:test
Signed-off-by: anna-charlotte <[email protected]>
* fix: mypy
Signed-off-by: anna-charlotte <[email protected]>
* fix: type hint
Signed-off-by: anna-charlotte <[email protected]>
* fix: remove apply, only keep map
Signed-off-by: anna-charlotte <[email protected]>
* refactor: map to map_docs
Signed-off-by: anna-charlotte <[email protected]>
* fix: apply suggestion
Signed-off-by: anna-charlotte <[email protected]>
* docs: add example usage
Signed-off-by: anna-charlotte <[email protected]>
---------
Signed-off-by: anna-charlotte <[email protected]>1 parent 082a39c commit 6cd5912
File tree
11 files changed
+585
-10
lines changed- .github/workflows
- docarray
- array
- array
- display
- utils
- tests
- benchmark_tests
- units
- array
- util
11 files changed
+585
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
225 | 250 | | |
226 | 251 | | |
227 | 252 | | |
228 | | - | |
| 253 | + | |
229 | 254 | | |
230 | 255 | | |
231 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| 33 | + | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
| |||
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
82 | 113 | | |
83 | 114 | | |
84 | 115 | | |
| |||
249 | 280 | | |
250 | 281 | | |
251 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
0 commit comments