mirror of https://gitlab.com/pamhyr/pamhyr2
Compare commits
No commits in common. "c065b19ef8236025daf23923e4860cd1512746a6" and "d66e75c1833fe78d9c58816ae490a42a4ddf3a29" have entirely different histories.
c065b19ef8
...
d66e75c183
|
|
@ -47,10 +47,6 @@ class InternalMeshing(AMeshingTool):
|
||||||
if profiles is None:
|
if profiles is None:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
for p in profiles:
|
|
||||||
if len(p) < 1:
|
|
||||||
return []
|
|
||||||
|
|
||||||
guide_list = self.get_guide_list(reach, profiles)
|
guide_list = self.get_guide_list(reach, profiles)
|
||||||
if guide_list is None:
|
if guide_list is None:
|
||||||
return []
|
return []
|
||||||
|
|
|
||||||
|
|
@ -1101,9 +1101,11 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||||
self.point(i+1).z = 0.5 * self.point(i).z + 0.5 * self.point(i+2).z
|
self.point(i+1).z = 0.5 * self.point(i).z + 0.5 * self.point(i+2).z
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
p = ProfileXYZ(name=self.name,
|
p = ProfileXYZ(id=self.id,
|
||||||
|
name=self.name,
|
||||||
rk=self.rk,
|
rk=self.rk,
|
||||||
reach=self.reach,
|
reach=self.reach,
|
||||||
|
num=self.num,
|
||||||
status=self._status)
|
status=self._status)
|
||||||
for i, k in enumerate(self.points):
|
for i, k in enumerate(self.points):
|
||||||
p.insert_point(i, k.copy())
|
p.insert_point(i, k.copy())
|
||||||
|
|
|
||||||
|
|
@ -195,9 +195,7 @@ class Reach(SQLSubModel):
|
||||||
"""
|
"""
|
||||||
if profile in self._profiles:
|
if profile in self._profiles:
|
||||||
self.undelete([profile])
|
self.undelete([profile])
|
||||||
profile.num = index
|
|
||||||
else:
|
else:
|
||||||
profile.num = index
|
|
||||||
self._profiles.insert(index, profile)
|
self._profiles.insert(index, profile)
|
||||||
|
|
||||||
self.modified()
|
self.modified()
|
||||||
|
|
|
||||||
|
|
@ -58,11 +58,7 @@ logger = logging.getLogger()
|
||||||
|
|
||||||
class TableModel(PamhyrTableModel):
|
class TableModel(PamhyrTableModel):
|
||||||
def get_true_data_row(self, row):
|
def get_true_data_row(self, row):
|
||||||
|
bc = self._data.data[row]
|
||||||
if len(self._data.data) > 0:
|
|
||||||
bc = self._data.data[row]
|
|
||||||
else:
|
|
||||||
return 0
|
|
||||||
|
|
||||||
return next(
|
return next(
|
||||||
map(
|
map(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue