Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent efc8470 commit 03041ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jord/qgis_utilities/numpy_utilities/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__all__ = ["get_qimage_from_numpy"]


def get_qimage_from_numpy(img, debug=False)->QtGui.QImage:
def get_qimage_from_numpy(img, debug=False) -> QtGui.QImage:
# if isinstance(img, Image):
# img = img.data
# if isinstance(img, numpy.ndarray):
Expand All @@ -24,7 +24,7 @@ def get_qimage_from_numpy(img, debug=False)->QtGui.QImage:
return QtGui.QImage(img, width, height, bytes_per_line, QtGui.QImage.Format_RGB888)


def transform_coordinates(coordinates, fromCRS, toCRS)->list:
def transform_coordinates(coordinates, fromCRS, toCRS) -> list:
"""
function to transform a set of coordinates from one CRS to another"""
Expand All @@ -49,7 +49,7 @@ def transform_coordinates(coordinates, fromCRS, toCRS)->list:
] # transform the QgsPoint objects back to a list of coordinates


def get_coordinates_of_layer_extent(layer)->list:
def get_coordinates_of_layer_extent(layer) -> list:
"""
function to get coordinates of a layer extent
Expand Down

0 comments on commit 03041ca

Please sign in to comment.