Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2025
1 parent f9badea commit e3669df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/microsim/schema/detectors/_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def quantize_electrons(
self, total_electrons: npt.NDArray, xp: NumpyAPI
) -> npt.NDArray:
voltage = xp.norm_rvs(total_electrons, self.read_noise) * self.gain
return xp.maximum(
xp.round((voltage / self.adc_gain) + self.offset), 0
) # type: ignore
return xp.maximum(xp.round((voltage / self.adc_gain) + self.offset), 0) # type: ignore

def apply_post_quantization_binning(
self, gray_values: npt.NDArray, binning: int, mode: str = "sum"
Expand Down

0 comments on commit e3669df

Please sign in to comment.