mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr: Fix pep8.
This commit is contained in:
1 parent
3585b29b03
commit
6288f039d2
2 files changed
+13
-7
No files matched your search
@@ -462,7 +462,10 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
"name": point[3],
|
||||
}
|
||||
|
||||
pt = PointXYZ(id=-1, **named_args, profile=self, status=self._status)
|
||||
pt = PointXYZ(
|
||||
id=-1, **named_args, profile=self,
|
||||
status=self._status
|
||||
)
|
||||
self._points.append(pt)
|
||||
|
||||
self.modified()
|
||||
@@ -524,7 +527,10 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
Returns:
|
||||
Nothing.
|
||||
"""
|
||||
point_xyz = PointXYZ(x=0., y=0., z=0., profile=self, status=self._status)
|
||||
point_xyz = PointXYZ(
|
||||
x=0., y=0., z=0., profile=self,
|
||||
status=self._status
|
||||
)
|
||||
self.points.append(point_xyz)
|
||||
|
||||
self.modified()
|
||||
|
||||
@@ -431,9 +431,9 @@ class Reservoir(SQLSubModel):
|
||||
|
||||
def add(self, index: int):
|
||||
data = Data(
|
||||
elevation = self._default_elevation,
|
||||
surface = self._default_surface,
|
||||
status = self._status,
|
||||
elevation=self._default_elevation,
|
||||
surface=self._default_surface,
|
||||
status=self._status,
|
||||
)
|
||||
|
||||
self._data.insert(index, data)
|
||||
@@ -443,8 +443,8 @@ class Reservoir(SQLSubModel):
|
||||
def insert(self, index: int, value):
|
||||
if type(value) is tuple or type(value) is list:
|
||||
value = Data(
|
||||
elevation = value[0],
|
||||
surface = value[1]
|
||||
elevation=value[0],
|
||||
surface=value[1]
|
||||
)
|
||||
|
||||
self._data.insert(index, value)
|
||||
|
||||
Reference in new issue
Block a user