Skip to content

Commit 6d2be92

Browse files
added unit to dot
1 parent 102421c commit 6d2be92

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sparse3d"
3-
version = "1.2.5"
3+
version = "1.2.6"
44
description = ""
55
authors = ["Christina Hedges <christina.l.hedges@nasa.gov>"]
66
packages = [{include = "sparse3d", from = "src"}]

src/sparse3d/sparse3d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ def dot(self, other: np.ndarray) -> np.ndarray:
260260
.reshape((*self.imshape, nt))
261261
.transpose([2, 0, 1])
262262
)
263+
if hasattr(other, "unit"):
264+
return result * other.unit
263265
return result
264266

265267
def _index(self, offset=(0, 0)):

0 commit comments

Comments
 (0)