Skip to content

Commit 7d20394

Browse files
committed
Documentation
1 parent 8bd436d commit 7d20394

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyat/at/latticetools/response_matrix.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ def reset_obs(self):
254254

255255
@property
256256
@abc.abstractmethod
257-
def varweights(self): ...
257+
def varweights(self) -> np.ndarray: ...
258258

259259
@property
260260
@abc.abstractmethod
261-
def obsweights(self): ...
261+
def obsweights(self) -> np.ndarray: ...
262262

263263
@property
264264
def shape(self) -> tuple[int, int]:
@@ -270,7 +270,7 @@ def solve(self) -> None:
270270
resp = self.weighted_response
271271
selected = np.ix_(self._obsmask, self._varmask)
272272
u, s, vh = np.linalg.svd(resp[selected], full_matrices=False)
273-
self._v = vh.T * (1 / s) * self.varweights[self._varmask].reshape(-1, 1)
273+
self._v = vh.T * (1.0 / s) * self.varweights[self._varmask].reshape(-1, 1)
274274
self._uh = u.T / self.obsweights[self._obsmask]
275275
self.singular_values = s
276276

@@ -434,7 +434,7 @@ def __str__(self):
434434
return f"{type(self).__name__}({no} observables, {nv} variables)"
435435

436436
@property
437-
def varweights(self):
437+
def varweights(self) -> np.ndarray:
438438
"""Variable weights."""
439439
return self.variables.deltas
440440

0 commit comments

Comments
 (0)