Skip to content

Commit 2fc092b

Browse files
committed
[CC] Before release 1.0.2
1 parent 366df3d commit 2fc092b

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

pyleecan/Functions/Plot/plot_3D.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def plot_3D(
133133
if is_logscale_z:
134134
ax.zscale("log")
135135
elif type == "surf":
136-
ax.plot_surface(Xdata, Ydata, Zdata, cmap=COLORMAP)
136+
ax.plot_surface(Xdata, Ydata, Zdata, cmap=COLORMAP, cstride=2, rstride=2)
137137
ax.set_xlim3d(x_max, x_min)
138138
ax.set_ylim3d(y_min, y_max)
139139
ax.set_zlim3d(z_min, z_max)
@@ -156,7 +156,15 @@ def plot_3D(
156156
if is_logscale_z:
157157
ax.zscale("log")
158158
elif type == "pcolor":
159-
c = ax.pcolormesh(Xdata, Ydata, Zdata, cmap=COLORMAP, vmin=z_min, vmax=z_max)
159+
c = ax.pcolormesh(
160+
Xdata,
161+
Ydata,
162+
Zdata,
163+
cmap=COLORMAP,
164+
vmin=z_min,
165+
vmax=z_max,
166+
shading="gouraud",
167+
)
160168
clb = fig.colorbar(c, ax=ax)
161169
clb.ax.set_title(zlabel, fontsize=FONT_SIZE_LEGEND, fontname=FONT_NAME)
162170
clb.ax.tick_params(labelsize=FONT_SIZE_LEGEND)

pyleecan/Methods/Optimization/OptiGenAlgNsga2Deap/solve.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,16 @@ class containing the results
236236

237237
# Save design variable values in ParamExplorerSet
238238
for i, param_explorer in enumerate(self.problem.design_var):
239+
if param_explorer._setter_str is None:
240+
setter = param_explorer._setter_func
241+
else:
242+
setter = param_explorer._setter_str
239243
xoutput.paramexplorer_list.append(
240244
ParamExplorerSet(
241245
name=param_explorer.name,
242246
unit=param_explorer.unit,
243247
symbol=param_explorer.symbol,
244-
setter=param_explorer.setter,
248+
setter=setter,
245249
value=paramexplorer_value[:, i].tolist(),
246250
)
247251
)

pyleecan/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
dictConfig(LOGGING_CONFIG_CONSOLE)
88

9-
__version__ = "1.0.1.post1"
9+
__version__ = "1.0.2"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Release 1.1.0 : 1.1.0
2222
# First post release of the release 1.1.0 : 1.1.0.post1
2323

24-
PYLEECAN_VERSION = "1.0.1.post1"
24+
PYLEECAN_VERSION = "1.0.2"
2525

2626

2727
with open("README.md", "r") as fh:

0 commit comments

Comments
 (0)