Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Sep 8, 2024
1 parent 41eff1e commit c3d7c2c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions adafruit_mlx90393.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,15 @@ def read_data(self) -> Tuple[int, int, int]:
if self._temperature_compensation and not resolutions.issubset(
valid_tcomp_resolutions
):
resolutions_output = f"Current Resolutions:\n\tresolution_x: {self.resolution_x}\n\tresolution_y: {self.resolution_y}\n\tresolution_z: {self.resolution_z}"
resolutions_output = (
f"Current Resolutions:\n\t"
f"resolution_x: {self.resolution_x}\n\t"
f"resolution_y: {self.resolution_y}\n\t"
f"resolution_z: {self.resolution_z}"
)
raise ValueError(
f"All resolutions must be RESOLUTION_16 or RESOLUTION_17 if temperature compensation is enabled.\n {resolutions_output}"
f"All resolutions must be RESOLUTION_16 or RESOLUTION_17"
f" if temperature compensation is enabled.\n {resolutions_output}"
)

# Set conversion delay based on filter and oversampling
Expand Down

0 comments on commit c3d7c2c

Please sign in to comment.