You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run the following command, an error related to the missing of "All_figures" directory appears.
Creating this directory "model-reduction-manifold-boundaries/Parameter_inference_real_data/figures/All_figures/" manually solved the problem.
python plot_params.py --model wang
model-reduction-manifold-boundaries/Parameter_inference_real_data/cmaesfits/plot_params.py:48: MatplotlibDeprecationWarning: The get_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
cmap = matplotlib.cm.get_cmap('winter_r')
Traceback (most recent call last):
File "model-reduction-manifold-boundaries/Parameter_inference_real_data/cmaesfits/plot_params.py", line 65, in <module>
plt.savefig('../figures/All_figures/' + filename + '.svg')
File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/matplotlib/pyplot.py", line 1119, in savefig
res = fig.savefig(*args, **kwargs) # type: ignore[func-returns-value]
File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/matplotlib/figure.py", line 3390, in savefig
self.canvas.print_figure(fname, **kwargs)
File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2193, in print_figure
result = print_method(
File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2043, in <lambda>
print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/matplotlib/backends/backend_svg.py", line 1328, in print_svg
with cbook.open_file_cm(filename, "w", encoding="utf-8") as fh:
File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/matplotlib/cbook.py", line 497, in open_file_cm
fh, opened = to_filehandle(path_or_file, mode, True, encoding)
File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/matplotlib/cbook.py", line 483, in to_filehandle
fh = open(fname, flag, encoding=encoding)
FileNotFoundError: [Errno 2] No such file or directory: '../figures/All_figures/Params-model-Wang-protocol-staircase1-iid-noise.svg
The text was updated successfully, but these errors were encountered:
When trying to run the following command, an error related to the missing of "All_figures" directory appears.
Creating this directory "model-reduction-manifold-boundaries/Parameter_inference_real_data/figures/All_figures/" manually solved the problem.
The text was updated successfully, but these errors were encountered: