Skip to content

Commit fc09d62

Browse files
authored
Update src/probeinterface/probe.py
1 parent e002f92 commit fc09d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/probeinterface/probe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def to_numpy(self, complete: bool = False) -> np.array:
878878
dtype += [(f"plane_axis_{dim}_0", "float64")]
879879
dtype += [(f"plane_axis_{dim}_1", "float64")]
880880
for k, v in self.contact_annotations.items():
881-
dtype += [(f"{k}", np.array(v).dtype)]
881+
dtype += [(f"{k}", np.array(v, copy=False).dtype)]
882882

883883
arr = np.zeros(self.get_contact_count(), dtype=dtype)
884884
arr["x"] = self.contact_positions[:, 0]

0 commit comments

Comments
 (0)