Closed hdante closed 2 months ago
can you specify which example you are starting with? It looks like we need to cut a more recent pypi release, this codebase is lagging behind. If you look at https://github.com/lephare-photoz/lephare/blob/9faf282467b8870a5522bff204623432adcda1e4/src/lephare/data_retrieval.py you can see that indeed the keymap is set to None by default, which will not work with https://github.com/lephare-photoz/lephare/blob/9faf282467b8870a5522bff204623432adcda1e4/src/lephare/prepare.py .
You can compare with main : https://github.com/lephare-photoz/lephare/blob/main/src/lephare/data_retrieval.py where the case keymap=None is treated.
So the root problem seems to be that doc is not reflecting pypi release codebase.
Again as a temporary solution while we fix the PyPI deployment you could run:
lp.data_retrieval.get_auxiliary_data(keymap=lp.default_cosmos_config)
Which will just download the default additional data sets.
Hello, everyone, tested with lephare 0.1.10 and it worked, thanks,
closed as resolved with v0.1.10
Hello, when running code similar to the example:
Gives:
Versions:
lephare 0.1.9 (from PyPI)
python 3.11.9 (from conda default channel)
[x] I have described the situation in which the bug arose, including what code was executed, information about my environment, and any applicable data others will need to reproduce the problem.
[x] I have included available evidence of the unexpected behavior (including error messages, screenshots, and/or plots) as well as a descriprion of what I expected instead.
[x] If I have a solution in mind, I have provided an explanation and/or pseudocode and/or task list.