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 Dec 25, 2023
1 parent fda4f63 commit b339e56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion jord/qgis_utilities/configuration/project_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def restore_default_project_settings(defaults={}, *, project_name=PROJECT_NAME):


def store_project_setting(key, value, *, project_name=PROJECT_NAME):

if isinstance(value, bool):
qgis_project.writeEntryBool(project_name, key, value)
elif isinstance(value, float):
Expand Down
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 b339e56

Please sign in to comment.