Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondEhlers committed Dec 24, 2024
1 parent c6c3b28 commit 60fed1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pachyderm/binned_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,9 @@ def to_boost_histogram(self) -> Any:
h = bh.Histogram(*axes, storage=bh.storage.Weight())
# Need to shape the array properly so that it will actually be able to assign to the boost histogram.
arr = np.zeros(shape=h.view().shape, dtype=h.view().dtype)
arr["value"] = self.values
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]
arr["variance"] = self.variances # type: ignore[call-overload]
h[...] = arr

return h
Expand Down

0 comments on commit 60fed1b

Please sign in to comment.