Skip to content

Commit

Permalink
use f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
TjarkMiener committed Sep 18, 2024
1 parent 4d30599 commit a99bd9b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dl1_data_handler/image_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def __init__(

if geometry.pix_type != PixelShape.SQUARE:
raise ValueError(
"SquareMapper is only available for square pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
f"SquareMapper is only available for square pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
)

# Set shape of the image for the square camera
Expand Down Expand Up @@ -540,7 +540,7 @@ def __init__(

if geometry.pix_type != PixelShape.HEXAGON:
raise ValueError(
"AxialMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
f"AxialMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
)
# Creating the hexagonal and the output grid for the conversion methods.
(
Expand Down Expand Up @@ -675,7 +675,7 @@ def __init__(

if geometry.pix_type != PixelShape.HEXAGON:
raise ValueError(
"ShiftingMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
f"ShiftingMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
)

# Creating the hexagonal and the output grid for the conversion methods.
Expand Down Expand Up @@ -783,7 +783,7 @@ def __init__(

if geometry.pix_type != PixelShape.HEXAGON:
raise ValueError(
"OversamplingMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
f"OversamplingMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
)

self.internal_shape = self.image_shape
Expand Down Expand Up @@ -832,7 +832,7 @@ def __init__(

if geometry.pix_type != PixelShape.HEXAGON:
raise ValueError(
"NearestNeighborMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
f"NearestNeighborMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
)

# At the edges of the cameras the mapping methods run into issues.
Expand Down Expand Up @@ -888,7 +888,7 @@ def __init__(

if geometry.pix_type != PixelShape.HEXAGON:
raise ValueError(
"BilinearMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
f"BilinearMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
)

# At the edges of the cameras the mapping methods run into issues.
Expand Down Expand Up @@ -961,7 +961,7 @@ def __init__(

if geometry.pix_type != PixelShape.HEXAGON:
raise ValueError(
"BicubicMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
f"BicubicMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
)

# At the edges of the cameras the mapping methods run into issues.
Expand Down Expand Up @@ -1194,7 +1194,7 @@ def __init__(

if geometry.pix_type != PixelShape.HEXAGON:
raise ValueError(
"RebinMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
f"RebinMapper is only available for hexagonal pixel cameras. Pixel type of the selected camera is '{geometry.pix_type}'."
)

# At the edges of the cameras the mapping methods run into issues.
Expand Down

0 comments on commit a99bd9b

Please sign in to comment.