Hi All,
Out of blue, I am having the following error when I try saving the PPG signal struct by using the function pyPPG.datahandling.save_data.
The error is:
Traceback (most recent call last):
File "C:\Users\annad\PycharmProjects\PPGproject\MUSIC_SYNCH_PPG.py", line 123, in
plot_fiducials(s, fp, savingfolder=fiducialsPointSavePath, legend_fontsize=12)
File "C:\Users\annad\ppgenv\lib\site-packages\pyPPG\datahandling.py", line 321, in plot_fiducials
canvas.print_png((tmp_dir+'%s_btwn_%s-%s.png') % (s.name,str_sig,end_sig))
File "C:\Users\annad\ppgenv\lib\site-packages\matplotlib_api\deprecation.py", line 410, in wrapper
return func(inner_args, **inner_kwargs)
File "C:\Users\annad\ppgenv\lib\site-packages\matplotlib\backends\backend_agg.py", line 520, in print_png
self._print_pil(filename_or_obj, "png", pil_kwargs, metadata)
File "C:\Users\annad\ppgenv\lib\site-packages\matplotlib\backends\backend_agg.py", line 467, in _print_pil
mpl.image.imsave(
File "C:\Users\annad\ppgenv\lib\site-packages\matplotlib\image.py", line 1656, in imsave
image.save(fname, **pil_kwargs)
File "C:\Users\annad\ppgenv\lib\site-packages\PIL\Image.py", line 2317, in save
fp = builtins.open(filename, "w+b")
FileNotFoundError: [Errno 2] No such file or directory: '\PPG_Figures\mus3_1212_Session1_Shimmer_238D_Calibrated_SD_brano1_btwn_0-17576.png'
I did not modify the script, that was working until few days ago.
The error is completely random. Sometimes, it fail while saving the sig_ratios or the derivs, sometimes the figure and not walways the same files.
I will try to disinstall and reinstall pyppg, but I am not sure it's the correct way to address the problem.
Did someone faced something similar?
Thanks,
Anna
Hi All,
Out of blue, I am having the following error when I try saving the PPG signal struct by using the function pyPPG.datahandling.save_data.
The error is:
Traceback (most recent call last):
File "C:\Users\annad\PycharmProjects\PPGproject\MUSIC_SYNCH_PPG.py", line 123, in
plot_fiducials(s, fp, savingfolder=fiducialsPointSavePath, legend_fontsize=12)
File "C:\Users\annad\ppgenv\lib\site-packages\pyPPG\datahandling.py", line 321, in plot_fiducials
canvas.print_png((tmp_dir+'%s_btwn_%s-%s.png') % (s.name,str_sig,end_sig))
File "C:\Users\annad\ppgenv\lib\site-packages\matplotlib_api\deprecation.py", line 410, in wrapper
return func(inner_args, **inner_kwargs)
File "C:\Users\annad\ppgenv\lib\site-packages\matplotlib\backends\backend_agg.py", line 520, in print_png
self._print_pil(filename_or_obj, "png", pil_kwargs, metadata)
File "C:\Users\annad\ppgenv\lib\site-packages\matplotlib\backends\backend_agg.py", line 467, in _print_pil
mpl.image.imsave(
File "C:\Users\annad\ppgenv\lib\site-packages\matplotlib\image.py", line 1656, in imsave
image.save(fname, **pil_kwargs)
File "C:\Users\annad\ppgenv\lib\site-packages\PIL\Image.py", line 2317, in save
fp = builtins.open(filename, "w+b")
FileNotFoundError: [Errno 2] No such file or directory: '\PPG_Figures\mus3_1212_Session1_Shimmer_238D_Calibrated_SD_brano1_btwn_0-17576.png'
I did not modify the script, that was working until few days ago.
The error is completely random. Sometimes, it fail while saving the sig_ratios or the derivs, sometimes the figure and not walways the same files.
I will try to disinstall and reinstall pyppg, but I am not sure it's the correct way to address the problem.
Did someone faced something similar?
Thanks,
Anna