Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ We are grateful to the providers of the example scans used in the tutorials (ori
## Coming Soon

- [x] Documentation
- [ ] Pip installation
- [x] Pip installation
- [ ] In-depth tutorials on finetuning SpineNet's grading network

We are always looking to extend SpineNet to make it a more useful tool. If you have a request for features please get in touch with us.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
[project]
name = "spinenet"
description = "Automated software for analysing clinical spinal MRI scans."
version = "2"
readme = "README.md"
license = { file = "LICENCE.md" }

[tool.setuptools]
packages = ["spinenet"]

[tool.black]
line-length = 79
include = '\.pyi?$'
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ shapely
torch
torchvision
tqdm
matplotlib
4 changes: 2 additions & 2 deletions spinenet/utils/extract_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def extract_volumes(

rotated_scan, new_bb = straighten_bb(scan, detection_poly)

new_bb_width = new_bb[:, 1].ptp()
new_bb_height = new_bb[:, 0].ptp()
new_bb_width = np.ptp(new_bb[:, 1])
new_bb_height = np.ptp(new_bb[:, 0])
edge_len = np.max([new_bb_height, new_bb_width])
y_min = int(new_bb[-1, 1] - extent * edge_len)
x_min = int(new_bb[-1, 0] - extent * edge_len)
Expand Down