Commit 1107096
feat: fetch metric buckets (#46)
* feat: fetch_metrics_buckets output format + draft of the rest (#25)
* feat: fetch_metrics_buckets [WIP]
* fix: naming
* fix: use IntervalIndex for buckets
* fix: review
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* feat: directly fetch run_attribute_definitions (#27)
* wip
* feat: directly fetch run_attribute_definitions
* feat: apply fetch_run_attribute_definitions to fethc_metric_buckets
* fix: revert changes to metrics
* fix: add tests for fetch_run_attribute_definitions_single_filter
* Deduplicate attribute values fetching logic (#30)
* fix: review
* fix: remove test
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* fix: review
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* PY-225 Retrieval code communicating to the backend for metric rendering API (#28)
* Bump neptune-api to the dev version
* PY-225 Retrieval code communicating to the backend for metric rendering API
* Remove debugging left-overs
* Code review notes addressed
* Rename BucketMetric to TimeseriesBucket and populate all fields that backend sends
* Fix protobuf_v4plus imports
* Remove DEFAULT_MAX_BUCKETS and x_neptune_client_metadata
* fix circular import
* Fix unit tests too
* chore: rename cols/index (#32)
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* feat: add logger (#33)
* feat: add logger
* Update src/neptune_query/internal/retrieval/retry.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/neptune_query/internal/retrieval/retry.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: sort create_metric_buckets_dataframe output df (#34)
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* fix: change column name (#35)
* Bump neptune-api to 0.22.0 (#36)
* PY-235 Fix deserialization of optional fields of ProtoTimeseriesBucketsDTO (#40)
* PY-235 Fix deserialization of optional fields of ProtoTimeseriesBucketsDTO
* Update dataclass types too
* PY-233 Add @experimental decorator to fetch_metric_buckets (#42)
* PY-233 Add @experimental decorator to fetch_metric_buckets
* Add docstring for fetch_metric_buckets() (#37)
* add docstrings for fetch_metric_buckets()
* chore: add metric buckets tests (#31)
* chore: add some bucket tests
* fix: x range calcs
* fix: add nan/inf tests
* add different xs axes tests
* fix
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* feat: merge 1st and 2nd bucket (#44)
* feat: merge 1st and 2nd bucket
* fix: add several tests
* fix: limit 1000 and range ends equality
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* fix: add proper typing to experimental decorator (#51)
* fix: take start_point in the first bucket of a series (#45)
* take 1st point in the first series bucket
* fix: return proper first/last x/y from generate_categorized_rows
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* Fix output format for all non finite rows (#43)
* PY-236 Fix output format for all non finite rows
* fix: change index->filter in create_metrics_dataframe. Use ind/col instead of 0/1
* add a test with a bucket series of nans
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* fix: experimental status of fetch_metric_buckets in docstrings (#52)
* fix: experimental status of fetch_metric_buckets in docstrings
* Copy the copy from docs
* Some more changes
---------
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
Co-authored-by: Piotr Gabryjeluk <piotr.gabryjeluk@neptune.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Piotr Łusakowski <piotr.lusakowskI@neptune.ai>
Co-authored-by: Sabine Ståhlberg <sabine.stahlberg@neptune.ai>1 parent 5a9f757 commit 1107096
File tree
28 files changed
+1889
-123
lines changed- src/neptune_query
- internal
- composition
- retrieval
- tests
- e2e
- internal/composition
- v1
- unit/internal
28 files changed
+1889
-123
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
424 | 428 | | |
425 | 429 | | |
426 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
0 commit comments