pep8: Fix code format for model.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-10-11 11:47:09 +02:00
1 parent 2c592b25b9
commit 9f2b81d385
17 files changed
+106 -68

No files matched your search

+8 -5
View File
@@ -102,7 +102,7 @@ class Reach(SQLSubModel):
@property
def name(self):
if self._parent == None:
if self._parent is None:
return ""
return self._parent.name
@@ -345,12 +345,12 @@ class Reach(SQLSubModel):
for guide in guide_set:
self._guidelines[guide] = flatten(
map(
lambda l: list(
lambda lst: list(
# Filter point with name (we assume we have
# only one point by profile)
filter(
lambda p: p.name == guide,
l
lst
)
),
named_points
@@ -385,7 +385,9 @@ class Reach(SQLSubModel):
reduce(
lambda acc, h: acc + h,
map(
lambda l: list(set(l).symmetric_difference(guide_set)),
lambda lst: list(
set(lst).symmetric_difference(guide_set)
),
points_name
),
[]
@@ -469,7 +471,8 @@ class Reach(SQLSubModel):
"""Import a geometry from file (.ST or .st)
Args:
file_path_name: The absolute path of geometry file (.ST or .st) to import.
file_path_name: The absolute path of geometry file (.ST or .st)
to import.
Returns:
Nothing.