Skip to content

Commit

Permalink
Fixes for pep8 check
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondnijssen committed Oct 2, 2024
1 parent 0d28778 commit ffa925d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ImaerPlugin/connect/aerius_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions ImaerPlugin/imaer_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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':
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion ImaerPlugin/tasks/import_calc_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions ImaerPlugin/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -95,4 +95,4 @@ def __ge__(self, other):
vn1.round(2)
assert vn1.to_string() == '3.28.0'

assert vn1 == vn3
assert vn1 == vn3

0 comments on commit ffa925d

Please sign in to comment.