Skip to content

Commit

Permalink
fix: fixed Weights sum to zero error for rca tool (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinIgarashi authored Apr 9, 2024
1 parent 3c77903 commit 72431ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cogserver/algorithms/rca.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __call__(self, img: ImageData) -> ImageData:
#v = data.ptp()*.1
datam = (data > -v) & (data < v)
if self.threshold:
datam |= np.abs(data)< self.threshold
datam = datam | np.abs(data)< self.threshold
arr = numpy.ma.masked_array(data*100, dtype=self.output_dtype, mask=valid_mask | datam )
return ImageData(
arr,
Expand Down

0 comments on commit 72431ce

Please sign in to comment.