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

zCluster fails with user-input photometry catalogue #24

Open
DavidT3 opened this issue Apr 1, 2023 · 0 comments
Open

zCluster fails with user-input photometry catalogue #24

DavidT3 opened this issue Apr 1, 2023 · 0 comments

Comments

@DavidT3
Copy link

DavidT3 commented Apr 1, 2023

The error is:

Traceback (most recent call last):
File "/opt/anaconda3/envs/zcluster/bin/zcluster", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/Users/dt237/software/zCluster/bin/zCluster", line 556, in
extraRetriever, extraOptions, extraPassbandSet=retrievers.getRetriever(args.addExtraPhoto)
File "/Users/dt237/software/zCluster/zCluster/retrievers.py", line 114, in getRetriever
elif database.find("DECaLS") != -1:
AttributeError: 'NoneType' object has no attribute 'find'

It stems from the slightly different treatment of DECaLS in getRetriever - as the value of database being passed into that function is None, rather than a string as is assumed by the use of .find, it just errors.

Replacing line 114 of retrievers.py with:
elif database is not None and database.find("DECaLS") != -1:

Allows it to progress.

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