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 config file on new_api branch #14

Open
NiallMac opened this issue Jan 6, 2021 · 1 comment
Open

Missing config file on new_api branch #14

NiallMac opened this issue Jan 6, 2021 · 1 comment

Comments

@NiallMac
Copy link
Contributor

NiallMac commented Jan 6, 2021

Importing utils generates the following error due to a missing config file on the new_api branch.

>>> from falafel import utils
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/global/u1/m/maccrann/cmb/lensing/code/falafel/falafel/utils.py", line 14, in <module>
    config = io.config_from_yaml(os.path.dirname(os.path.abspath(__file__)) + "/../input/config.yml")
  File "/global/homes/m/maccrann/.conda/envs/lenspipe/lib/python3.7/site-packages/orphics/io.py", line 96, in config_from_yaml
    with open(filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/global/u1/m/maccrann/cmb/lensing/code/falafel/falafel/../input/config.yml'
@msyriac
Copy link
Member

msyriac commented Jan 6, 2021

Thanks Niall, a config file was missing. I've pushed it now. You'll need to do the usual of copying input/config_template.yml to input/config.yml and editing it with paths relevant to the system you are on. I'll think about how this can be made more seamless.

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

2 participants