Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing import os in SynthObs.py #8

Open
dylanmikesell opened this issue Feb 9, 2021 · 0 comments
Open

Missing import os in SynthObs.py #8

dylanmikesell opened this issue Feb 9, 2021 · 0 comments

Comments

@dylanmikesell
Copy link

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.

dylanmikesell added a commit to dylanmikesell/BayHunter that referenced this issue Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant