You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when running an estimation with a file using different column names for the magnitudes, I get the following error:
Process 0 running estimator on chunk 0 - 1561
Traceback (most recent call last):
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-estimate", line 260, in <module>
main()
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-estimate", line 256, in main
estimate(cfg, ctx)
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-estimate", line 248, in estimate
ctx.estimator.estimate(ctx.input)
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/miniconda3/lib/python3.11/site-packages/rail/estimation/estimator.py", line 97, in estimate
self.run()
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/miniconda3/lib/python3.11/site-packages/rail/estimation/estimator.py", line 110, in run
self._process_chunk(s, e, test_data, first)
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/miniconda3/lib/python3.11/site-packages/rail/estimation/algos/lephare.py", line 214, in _process_chunk
flux = np.array([data["mag_{}_lsst".format(b)] for b in "ugrizy"]).T
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/miniconda3/lib/python3.11/site-packages/rail/estimation/algos/lephare.py", line 214, in <listcomp>
flux = np.array([data["mag_{}_lsst".format(b)] for b in "ugrizy"]).T
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'mag_u_lsst'
I'm passing with the common parameters the correct name ("mag_u").
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.
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.
If I have a solution in mind, I have provided an explanation and/or pseudocode and/or task list.
The text was updated successfully, but these errors were encountered:
Hello, when running an estimation with a file using different column names for the magnitudes, I get the following error:
I'm passing with the common parameters the correct name ("mag_u").
The text was updated successfully, but these errors were encountered: