1- from typing import final
21
32import pandas as pd
43from map2loop .contact_extractor import ContactExtractor
1413from osgeo import gdal
1514from qgis .core import QgsVectorLayer
1615
17- from ..main .vectorLayerWrapper import qgsLayerToDataFrame , qgsLayerToGeoDataFrame
16+ from ..main .vectorLayerWrapper import qgsLayerToGeoDataFrame
1817from .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
0 commit comments