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

nway-create-fake-catalogue ValueError #20

Open
mn-velazquez opened this issue Jun 30, 2022 · 1 comment
Open

nway-create-fake-catalogue ValueError #20

mn-velazquez opened this issue Jun 30, 2022 · 1 comment

Comments

@mn-velazquez
Copy link

Hello,
I recently used the nway-create-fake-catalogue.py command. However, when I try to create the fake catalogue, I get a "ValueError: high <= 0." I have attached the traceback error message here. I was wondering what could be the issue, and what are ways to resolve it?

Thank you.
NWAY Traceback Error

@JohannesBuchner
Copy link
Owner

There are no sources found nearby, so it could not generate a new source in between.

Stare at your input file for a bit, and try to understand the method of nway-create-fake-catalogue.py

Perhaps you want nway-create-shifted-catalogue.py

Often you need to create your own custom fake catalog for testing per-chance associations, which makes sense for your problem. This depends on your survey coverage, layout, error sizes, and other details.

There should probably be a better error message for this. Adding
assert len(b_nearest)>0, "Method failed: No sources found nearby, could not interpolate a fake source."
above should help. If you have time, could you make the change through a pull request?

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