mirror of https://gitlab.com/pamhyr/pamhyr2
Pamhyr: Fix pep8.
parent
3585b29b03
commit
6288f039d2
|
|
@ -462,7 +462,10 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||||
"name": point[3],
|
"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._points.append(pt)
|
||||||
|
|
||||||
self.modified()
|
self.modified()
|
||||||
|
|
@ -524,7 +527,10 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||||
Returns:
|
Returns:
|
||||||
Nothing.
|
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.points.append(point_xyz)
|
||||||
|
|
||||||
self.modified()
|
self.modified()
|
||||||
|
|
|
||||||
|
|
@ -431,9 +431,9 @@ class Reservoir(SQLSubModel):
|
||||||
|
|
||||||
def add(self, index: int):
|
def add(self, index: int):
|
||||||
data = Data(
|
data = Data(
|
||||||
elevation = self._default_elevation,
|
elevation=self._default_elevation,
|
||||||
surface = self._default_surface,
|
surface=self._default_surface,
|
||||||
status = self._status,
|
status=self._status,
|
||||||
)
|
)
|
||||||
|
|
||||||
self._data.insert(index, data)
|
self._data.insert(index, data)
|
||||||
|
|
@ -443,8 +443,8 @@ class Reservoir(SQLSubModel):
|
||||||
def insert(self, index: int, value):
|
def insert(self, index: int, value):
|
||||||
if type(value) is tuple or type(value) is list:
|
if type(value) is tuple or type(value) is list:
|
||||||
value = Data(
|
value = Data(
|
||||||
elevation = value[0],
|
elevation=value[0],
|
||||||
surface = value[1]
|
surface=value[1]
|
||||||
)
|
)
|
||||||
|
|
||||||
self._data.insert(index, value)
|
self._data.insert(index, value)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue