Skip to content

Commit

Permalink
fix: dev: Convert contour data to numpy array for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
bastula committed Jan 9, 2025
1 parent 693a40a commit 81f0f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dicompylercore/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def show3d(self, rows=512, cols=512):
for structure in self.structures.values():
for loc, loccontours in structure.contours.items():
for contour in loccontours:
data = contour["data"]
data = np.array(contour["data"])
x = data[:, 0]
y = data[:, 1]
# Append the first point to the end
Expand Down Expand Up @@ -935,7 +935,7 @@ def show3d(self, rows=512, cols=512):

for loc, loccontours in contours.items():
for contour in loccontours:
data = contour["data"]
data = np.array(contour["data"])
x = data[:, 0]
y = data[:, 1]
# Append the first point to the end
Expand Down

0 comments on commit 81f0f82

Please sign in to comment.