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

Error when using Nautilus sampler #162

Open
ajshajib opened this issue Dec 19, 2024 · 0 comments · May be fixed by #163
Open

Error when using Nautilus sampler #162

ajshajib opened this issue Dec 19, 2024 · 0 comments · May be fixed by #163

Comments

@ajshajib
Copy link

I am getting this error when sampling with the Nautilus sampler.

Traceback (most recent call last):
  File "/home/ajshajib/env/envs/cosmosis/bin/cosmosis", line 4, in <module>
    status = cosmosis.main.main()
             ^^^^^^^^^^^^^^^^^^^^
  File "/home/ajshajib/env/envs/cosmosis/lib/python3.12/site-packages/cosmosis/main.py", line 554, in main
    return run_cosmosis(ini=args.inifile, pool=pool, override=args.params, profile_mem=args.mem, profile_cpu=args.profile, variables=args.variables, only=args.only)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ajshajib/env/envs/cosmosis/lib/python3.12/site-packages/cosmosis/main.py", line 425, in run_cosmosis
    sampler_main_loop(sampler, output, pool, is_root)
  File "/home/ajshajib/env/envs/cosmosis/lib/python3.12/site-packages/cosmosis/main.py", line 72, in sampler_main_loop
    sampler.execute()
  File "/home/ajshajib/env/envs/cosmosis/lib/python3.12/site-packages/cosmosis/samplers/nautilus/nautilus_sampler.py", line 103, in execute
    posts = results[2] + results[3][:, 0]
                         ~~~~~~~~~~^^^^^^
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
@ajshajib ajshajib linked a pull request Dec 27, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant