diff --git a/ImaerPlugin/connect/aerius_connection.py b/ImaerPlugin/connect/aerius_connection.py index 32e16fa..173d551 100644 --- a/ImaerPlugin/connect/aerius_connection.py +++ b/ImaerPlugin/connect/aerius_connection.py @@ -68,7 +68,7 @@ def _log(self, msg): print(f'AeriusConnection: {msg}') else: self.plugin.log(msg, user=self.user) - + def is_valid(self): if self.version is None: return False diff --git a/ImaerPlugin/imaer_plugin.py b/ImaerPlugin/imaer_plugin.py index c07c76c..b222b00 100644 --- a/ImaerPlugin/imaer_plugin.py +++ b/ImaerPlugin/imaer_plugin.py @@ -195,7 +195,7 @@ def run_import_calc_result(self, checked=False, gml_fn=None): if gml_fn is None: gml_fn, _ = self.calc_result_file_dialog.getOpenFileName(caption="Open Calculator result GML file", filter='*.gml', parent=self.iface.mainWindow()) # self.log(f'gml_fn: {gml_fn}') - + if gml_fn == '' or gml_fn is None: return @@ -214,7 +214,7 @@ def run_import_calc_result(self, checked=False, gml_fn=None): task = ImportImaerCalculatorResultTask(self, gml_fn, gpkg_fn, self.import_calc_result_callback) task_result = self.task_manager.addTask(task) # self.log(f'task result: {task_result}') - + def import_calc_result_callback(self, result, gpkg_fn=None): # self.log(result) if result['status'] == 'ok': @@ -269,7 +269,7 @@ def load_calculation_results_gpkg(self, gpkg_fn, layer_names=None, zoom=True, ma layer_crs = layer.crs() extent_transform = QgsCoordinateTransform(layer_crs, canvas_crs, QgsProject.instance()) - + try: layer_extent = extent_transform.transformBoundingBox(layer.extent()) except QgsCsException: diff --git a/ImaerPlugin/tasks/import_calc_result.py b/ImaerPlugin/tasks/import_calc_result.py index 0ee0f22..4b9516d 100644 --- a/ImaerPlugin/tasks/import_calc_result.py +++ b/ImaerPlugin/tasks/import_calc_result.py @@ -75,7 +75,7 @@ def run(self): # metadata gpkg.set_metadata('gml_fn', doc.gml_fn) gpkg.set_metadata('imaer_version', doc.get_version().to_string()) - + if doc.metadata is None: situation_name = '' elif doc.metadata.situation is None: diff --git a/ImaerPlugin/version.py b/ImaerPlugin/version.py index 487913a..8b6ec94 100644 --- a/ImaerPlugin/version.py +++ b/ImaerPlugin/version.py @@ -35,7 +35,7 @@ def to_integer(self): result += self.numbers[1] * 100 result += self.numbers[2] return result - + def round(self, lvl=1): if lvl < 3: self.numbers[2] = 0 @@ -95,4 +95,4 @@ def __ge__(self, other): vn1.round(2) assert vn1.to_string() == '3.28.0' - assert vn1 == vn3 \ No newline at end of file + assert vn1 == vn3