Skip to content

Commit 516620c

Browse files
committed
Merge branch 'hotfix/single-voxel-voi' into 'main'
hotfix 0.2.8 to allow single voxel structures See merge request e040/e0404/pyRadPlan!82
2 parents f709cdf + 5650b68 commit 516620c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyRadPlan/cst/_cst.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ def create_cst(
270270
idx_list = []
271271
# Only one scenario (3D CT)
272272
if not isinstance(vdata[3], list):
273-
idx_list.append(vdata[3].astype(int).tolist())
273+
idx_list.append(np.asarray(vdata[3]).astype(int).tolist())
274+
274275
# Multiple scenarios (4D CT)
275276
else:
276277
for vdata_scen in vdata[3]:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pyRadPlan = ["data/**/*"]
1010

1111
[project]
1212
name = "pyRadPlan"
13-
version = "0.2.7"
13+
version = "0.2.8"
1414
# dynamic = ["version"] # Will be used in the future
1515
authors = [
1616
{ name="Niklas Wahl", email = "[email protected]"},

0 commit comments

Comments
 (0)