Skip to content

Commit

Permalink
Fix comments with respect to earlier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Aug 13, 2024
1 parent eb0963b commit 5a51826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micro_manager/adaptivity/adaptivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _l1rel(self, data: np.ndarray) -> np.ndarray:
"""
pointwise_diff = data[np.newaxis, :] - data[:, np.newaxis]
# divide by data to get relative difference
# divide i,j by max(data[i],data[j]) to get relative difference
# divide i,j by max(abs(data[i]),abs(data[j])) to get relative difference
relative = np.nan_to_num(
(
pointwise_diff
Expand Down Expand Up @@ -316,7 +316,7 @@ def _l2rel(self, data: np.ndarray) -> np.ndarray:
"""
pointwise_diff = data[np.newaxis, :] - data[:, np.newaxis]
# divide by data to get relative difference
# divide i,j by max(data[i],data[j]) to get relative difference
# divide i,j by max(abs(data[i]),abs(data[j])) to get relative difference
relative = np.nan_to_num(
(
pointwise_diff
Expand Down

0 comments on commit 5a51826

Please sign in to comment.