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
I was trying to save synthetic dispersion curves to a given file name. I got the following error.
SynthObs.save_data(syn_disp, outfile=disp_file)
File "/Users/dmikesell/anaconda3/envs/tomo/lib/python3.7/site-packages/BayHunter/SynthObs.py", line 108, in save_data
name, ext = os.path.splitext(outfile)
NameError: name 'os' is not defined
I will add os to the import list in this file. I will also fix an error in the "ext" and the ".". When providing a file name, it ends up having two dots in the extension because "ext" already contains a dot.
The text was updated successfully, but these errors were encountered:
I was trying to save synthetic dispersion curves to a given file name. I got the following error.
File "/Users/dmikesell/anaconda3/envs/tomo/lib/python3.7/site-packages/BayHunter/SynthObs.py", line 108, in save_data
name, ext = os.path.splitext(outfile)
NameError: name 'os' is not defined
I will add os to the import list in this file. I will also fix an error in the "ext" and the ".". When providing a file name, it ends up having two dots in the extension because "ext" already contains a dot.
The text was updated successfully, but these errors were encountered: