mirror of https://gitlab.com/pamhyr/pamhyr2
debug
parent
5204b2cef2
commit
06e621399b
|
|
@ -411,7 +411,7 @@ class MeshingWithMageMailleurTT(AMeshingTool):
|
|||
str,
|
||||
[
|
||||
st_file, m_file,
|
||||
"update_rk", step,
|
||||
"update_kp", step,
|
||||
limites[0], limites[1],
|
||||
directrices[0], directrices[1],
|
||||
orientation, lm, linear, origin, origin_value
|
||||
|
|
|
|||
|
|
@ -651,8 +651,8 @@ class ProfileXYZ(Profile, SQLSubModel):
|
|||
Returns:
|
||||
Projection of the points of the profile on a plane.
|
||||
"""
|
||||
if self.nb_points < 3:
|
||||
return None
|
||||
if self.nb_points < 2:
|
||||
return [0.0]
|
||||
else:
|
||||
return self._get_station(self.points)
|
||||
|
||||
|
|
|
|||
|
|
@ -313,10 +313,6 @@ class Plot(PamhyrPlot):
|
|||
x_carto = self.data.x()
|
||||
y_carto = self.data.y()
|
||||
|
||||
if (len(x_carto) < 3 or len(y_carto) < 3 or len(x) < 3):
|
||||
# Noting to do in this case
|
||||
return
|
||||
|
||||
self.profile_line2D, = self.canvas.axes.plot(
|
||||
x, y, color=self.color_plot,
|
||||
lw=1.5, markersize=7, marker='+',
|
||||
|
|
|
|||
Loading…
Reference in New Issue