Skip to content

Commit

Permalink
Change in DE results to pass directly ndarray and not dict
Browse files Browse the repository at this point in the history
  • Loading branch information
elenafuengar authored Jan 24, 2025
1 parent 1cf20e7 commit 76bcf72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/004_Wakefield_simulation_and_extrapolation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@
],
"source": [
"plt.figure(figsize=(10, 6))\n",
"result_DE_MIN = np.abs(iddefix.Impedances.n_Resonator_longitudinal_imp(wake.f, iddefix.objectiveFunctions.pars_to_dict(DE_model.evolutionParameters)))\n",
"result_DE_MIN = np.abs(iddefix.Impedances.n_Resonator_longitudinal_imp(wake.f, DE_model.evolutionParameters))\n",
"\n",
"plt.plot(wake.f, np.abs(wake.Z), lw=5, label='Simulation', color='black')\n",
"plt.plot(wake.f, result_DE_MIN, lw=2, label='DE + Min. - Extrapolation')\n",
Expand Down

0 comments on commit 76bcf72

Please sign in to comment.