Skip to content

Commit 10fcfc4

Browse files
persist bbox ids when serializing NML (#836)
* persist bbox ids when serializing NML * ensure int * add changelog entry * remove id from BoundingBox, ensure that BoundingBox instances keep their attributes, such as name or color, when applying methods * add test, minor fixes * update changelog * lint fix * nother minor fix * add missing cassette * Update webknossos/webknossos/_nml/parameters.py Co-authored-by: Philipp Otto <[email protected]> * add comments Co-authored-by: Philipp Otto <[email protected]>
1 parent de4e945 commit 10fcfc4

File tree

8 files changed

+860
-54
lines changed

8 files changed

+860
-54
lines changed

webknossos/Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ For upgrade instructions, please check the respective *Breaking Changes* section
1313
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.10.27...HEAD)
1414

1515
### Breaking Changes
16+
- Removed the `id` attribute of the `BoundingBox` class, also from the constructor. [#836](https://github.com/scalableminds/webknossos-libs/pull/836)
1617

1718
### Added
1819

1920
### Changed
2021

2122
### Fixed
23+
- Fixed bounding box serialization in NMLs, so that bounding boxes which are uploaded via annotations are now recognized properly by webKnossos. [#836](https://github.com/scalableminds/webknossos-libs/pull/836)
24+
- Bounding boxes keep their name, color and visibility when transformed via methods, such as `bbox.padded_with_margins()`. [#836](https://github.com/scalableminds/webknossos-libs/pull/836)
2225

2326

2427
## [0.10.27](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.10.27) - 2022-12-07

webknossos/__generate_client.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ def iterate_request_ids_with_responses() -> Iterable[Tuple[str, bytes]]:
109109
project_name = "Test_Project"
110110
explorative_annotation_id = "58135c192faeb34c0081c05d"
111111

112-
extract_200_response(
113-
httpx.post(
114-
url=f"{WK_URL}/data/triggers/checkInboxBlocking?token={WK_TOKEN}",
115-
)
116-
)
117112
response = httpx.get(
118113
url=f"{WK_URL}/api/datasets/{organization_id}/{dataset_name}",
119114
headers={"X-Auth-Token": WK_TOKEN},

webknossos/local_wk_setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ function ensure_local_test_wk {
4040
exit 1
4141
fi
4242

43+
curl -s -X POST -H "X-Auth-Token: $WK_TOKEN" localhost:9000/data/triggers/checkInboxBlocking
44+
4345
WK_ORG_VERSION="$(curl -s https://webknossos.org/api/buildinfo | tr ',"' "\n" | sed -n '/version/{n;n;p;q;}')"
4446
LOCAL_VERSION="$(curl -s http://localhost:9000/api/buildinfo | tr ',"' "\n" | sed -n '/version/{n;n;p;q;}')"
4547

0 commit comments

Comments
 (0)