Commit 06e62139 authored by Theophile Terraz's avatar Theophile Terraz
Browse files

debug

No related merge requests found
Pipeline #57773 passed with stages
in 3 minutes and 24 seconds
Showing with 3 additions and 7 deletions
+3 -7
...@@ -411,7 +411,7 @@ class MeshingWithMageMailleurTT(AMeshingTool): ...@@ -411,7 +411,7 @@ class MeshingWithMageMailleurTT(AMeshingTool):
str, str,
[ [
st_file, m_file, st_file, m_file,
"update_rk", step, "update_kp", step,
limites[0], limites[1], limites[0], limites[1],
directrices[0], directrices[1], directrices[0], directrices[1],
orientation, lm, linear, origin, origin_value orientation, lm, linear, origin, origin_value
......
...@@ -651,8 +651,8 @@ class ProfileXYZ(Profile, SQLSubModel): ...@@ -651,8 +651,8 @@ class ProfileXYZ(Profile, SQLSubModel):
Returns: Returns:
Projection of the points of the profile on a plane. Projection of the points of the profile on a plane.
""" """
if self.nb_points < 3: if self.nb_points < 2:
return None return [0.0]
else: else:
return self._get_station(self.points) return self._get_station(self.points)
......
...@@ -313,10 +313,6 @@ class Plot(PamhyrPlot): ...@@ -313,10 +313,6 @@ class Plot(PamhyrPlot):
x_carto = self.data.x() x_carto = self.data.x()
y_carto = self.data.y() 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( self.profile_line2D, = self.canvas.axes.plot(
x, y, color=self.color_plot, x, y, color=self.color_plot,
lw=1.5, markersize=7, marker='+', lw=1.5, markersize=7, marker='+',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment