Skip to content

Commit 53e5816

Browse files
committed
nits
1 parent 30c70d4 commit 53e5816

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,11 @@ A response code of 200 indicates successful deletion.
156156
```python
157157
client.delete_model_run("model_run_id")
158158
```
159+
160+
## For Developers
161+
162+
Please install the pre-commit hooks by running the following commands:
163+
```python
164+
pip install pre-commit
165+
pre-commit install
166+
```

nucleus/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,6 @@ def predict(
723723

724724
for s_batch in s_batches:
725725
payload = construct_segmentation_payload(s_batch, update)
726-
print("PAYLOAD: ", payload)
727726
response = self._make_request(
728727
payload, f"modelRun/{model_run_id}/predict_segmentation"
729728
)
@@ -921,9 +920,7 @@ def get_slice(self, slice_id: str) -> Slice:
921920
"""
922921
return Slice(slice_id, self)
923922

924-
def slice_info(
925-
self, slice_id: str
926-
) -> dict:
923+
def slice_info(self, slice_id: str) -> dict:
927924
"""
928925
This endpoint provides information about specified slice.
929926

tests/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def assert_polygon_annotation_matches_dict(
152152
def assert_segmentation_annotation_matches_dict(
153153
annotation_instance, annotation_dict
154154
):
155+
print("RETURNED: ", str(annotation_instance))
156+
print("ORIG: ", annotation_dict)
155157
assert annotation_instance.mask_url == annotation_dict["mask_url"]
156158
assert (
157159
annotation_instance.annotation_id == annotation_dict["annotation_id"]

0 commit comments

Comments
 (0)