Skip to content

Commit 32b513e

Browse files
committed
linting
1 parent 32d5dc4 commit 32b513e

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

loopstructural/gui/map2loop_tools/paint_stratigraphic_order_widget.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
import os
44

55
from PyQt5.QtWidgets import QMessageBox, QWidget
6-
from qgis.core import QgsMapLayerProxyModel, QgsProject
6+
from qgis.core import QgsMapLayerProxyModel
77
from qgis.PyQt import uic
88

9-
from loopstructural.toolbelt.preferences import PlgOptionsManager
109

1110
from ...main.m2l_api import paint_stratigraphic_order
1211

loopstructural/gui/map2loop_tools/thickness_calculator_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import os
44

5-
from PyQt5.QtWidgets import QLabel, QMessageBox, QWidget
5+
from PyQt5.QtWidgets import QMessageBox, QWidget
66
from qgis.core import QgsMapLayerProxyModel
77
from qgis.PyQt import uic
88

loopstructural/main/m2l_api.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from typing import final
21

32
import pandas as pd
43
from map2loop.contact_extractor import ContactExtractor
@@ -14,7 +13,7 @@
1413
from osgeo import gdal
1514
from qgis.core import QgsVectorLayer
1615

17-
from ..main.vectorLayerWrapper import qgsLayerToDataFrame, qgsLayerToGeoDataFrame
16+
from ..main.vectorLayerWrapper import qgsLayerToGeoDataFrame
1817
from .debug.export import export_debug_package
1918

2019
# Mapping of sorter names to sorter classes
@@ -574,8 +573,8 @@ def paint_stratigraphic_order(
574573
geology_layer: 'QgsVectorLayer',
575574
stratigraphic_order: list,
576575
unit_name_field: str = "UNITNAME",
577-
debug_manager: 'DebugManager' = None,
578-
updater: 'Updater' = None,
576+
debug_manager = None,
577+
updater = None,
579578
):
580579
"""Paint stratigraphic order onto geology polygons.
581580
Parameters
@@ -595,7 +594,7 @@ def paint_stratigraphic_order(
595594
None
596595
"""
597596
if updater:
598-
updater(f"Painting stratigraphic order...")
597+
updater("Painting stratigraphic order...")
599598
# check unit_name_field exists in geology_layer
600599
# Use the QGIS layer directly (if provided), otherwise accept a GeoDataFrame
601600
if geology_layer is None:
@@ -665,5 +664,5 @@ def paint_stratigraphic_order(
665664
# Commit changes
666665
geology_layer.commitChanges()
667666
if updater:
668-
updater(f"Stratigraphic order painted successfully.")
667+
updater("Stratigraphic order painted successfully.")
669668
return

loopstructural/processing/provider.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def loadAlgorithms(self):
6767
self.addAlgorithm(UserDefinedStratigraphyAlgorithm())
6868
self.addAlgorithm(ThicknessCalculatorAlgorithm())
6969
self.addAlgorithm(SamplerAlgorithm())
70-
self.addAlgorithm(PaintStratigraphicOrderAlgorithm())
7170

7271
def id(self) -> str:
7372
"""Unique provider id, used for identifying it. This string should be unique, \

0 commit comments

Comments
 (0)