We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e002f92 commit fc09d62Copy full SHA for fc09d62
src/probeinterface/probe.py
@@ -878,7 +878,7 @@ def to_numpy(self, complete: bool = False) -> np.array:
878
dtype += [(f"plane_axis_{dim}_0", "float64")]
879
dtype += [(f"plane_axis_{dim}_1", "float64")]
880
for k, v in self.contact_annotations.items():
881
- dtype += [(f"{k}", np.array(v).dtype)]
+ dtype += [(f"{k}", np.array(v, copy=False).dtype)]
882
883
arr = np.zeros(self.get_contact_count(), dtype=dtype)
884
arr["x"] = self.contact_positions[:, 0]
0 commit comments