Skip to content

Commit 4712a0a

Browse files
valentin-pinkauvalentin-pinkaufm3
authored
add get_agglomerate_graph to annotation (#1361)
* add get_agglomerate_graph to annotation * ignore generated python code in ruff * add type hints * ignore type hints in ruff * fix import and type * add protobuf file * update docs dependencies * move _get_graph to abstract_api_client * move generated files into own folder and update comments * add generated code * Apply suggestion from @fm3 Co-authored-by: Florian M <[email protected]> * Apply suggestion from @fm3 Co-authored-by: Florian M <[email protected]> * introduce _get_parsed_protobuf on the abstract_api_client. Add more comments. add changelog. * reset symlink * relax protobuf constraint --------- Co-authored-by: valentin-pinkau <[email protected]> Co-authored-by: Florian M <[email protected]>
1 parent e34110c commit 4712a0a

File tree

14 files changed

+599
-2
lines changed

14 files changed

+599
-2
lines changed

docs/uv.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webknossos/Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
2020
- Dataset.add_layer_as_ref() now accepts RemoteLayer objects as well as Layer objects. [#1371](https://github.com/scalableminds/webknossos-libs/pull/1371])
2121
- RemoteDataset.annotation_id is now exposed, when available. [#1380](https://github.com/scalableminds/webknossos-libs/pull/1380)
2222
- RemoteDataset.open() now accepts an annotation url as well. [#1380](https://github.com/scalableminds/webknossos-libs/pull/1380)
23+
- RemoteAnnotation, now has a get_agglomerate_graph method, to make working with proofreading annotations easier. [#1361](https://github.com/scalableminds/webknossos-libs/pull/1361)
24+
2325
### Changed
2426
- Ported `test.sh` to `test.py`, run with `uv run test.py`. [#1379](https://github.com/scalableminds/webknossos-libs/pull/1379)
2527
- `Dataset.add_layer_as_ref(remote_layer.path)` does not work anymore. Please use `Dataset.add_layer_as_ref(remote_layer)` instead. [#1371](https://github.com/scalableminds/webknossos-libs/pull/1371])

webknossos/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ dependencies = [
4545
"networkx ~=3.2.1",
4646
"numpy >=2.0.0,<3.0.0",
4747
"pims ~=0.7.0",
48+
"protobuf<7,>=3.12.0",
49+
"google-api-python-client >= 2.0.0",
4850
"psutil ~=6.0.0",
4951
"python-dateutil ~=2.8.0",
5052
"python-dotenv ~=1.0.1",
@@ -149,6 +151,8 @@ exclude = [
149151
"site-packages",
150152
"venv",
151153
"webknossos/dataset/_utils/vendor",
154+
"webknossos/proofreading/generated/agglomerate_graph_pb2.py",
155+
"webknossos/proofreading/generated/agglomerate_graph_pb2.pyi",
152156
]
153157

154158
# Same as Black.

0 commit comments

Comments
 (0)