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 c6c3b28 commit 60fed1bCopy full SHA for 60fed1b
src/pachyderm/binned_data.py
@@ -1140,8 +1140,9 @@ def to_boost_histogram(self) -> Any:
1140
h = bh.Histogram(*axes, storage=bh.storage.Weight())
1141
# Need to shape the array properly so that it will actually be able to assign to the boost histogram.
1142
arr = np.zeros(shape=h.view().shape, dtype=h.view().dtype)
1143
- arr["value"] = self.values
1144
- arr["variance"] = self.variances
+ # NOTE: We're relying on the h.view() supporting structured arrays. Surprisingly, this seems to work.
+ arr["value"] = self.values # type: ignore[call-overload]
1145
+ arr["variance"] = self.variances # type: ignore[call-overload]
1146
h[...] = arr
1147
1148
return h
0 commit comments