From 03041ca2ca739240f1685560c097305ab06c698f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:09:37 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jord/qgis_utilities/numpy_utilities/conversion.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jord/qgis_utilities/numpy_utilities/conversion.py b/jord/qgis_utilities/numpy_utilities/conversion.py index 710c50b..d87d6ca 100644 --- a/jord/qgis_utilities/numpy_utilities/conversion.py +++ b/jord/qgis_utilities/numpy_utilities/conversion.py @@ -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): @@ -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""" @@ -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