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

TypeError: LephareInformer.__init__() got an unexpected keyword argument 'aliases' #54

Open
3 tasks done
hdante opened this issue Aug 15, 2024 · 1 comment
Open
3 tasks done
Labels
bug Something isn't working

Comments

@hdante
Copy link

hdante commented Aug 15, 2024

Hello, when calling LephareInformer.make_stage(), an error is returned:

(base) [henrique.almeida@loginapl01 testlephare]$ rail-train -a lephare ~/data/ref/training_set_dp0.2.pq 
Start: 2024-08-15 10:29:18.498113
Estimator algorithm: lephare
Bins: 301
HDF5 group name: ""
Column template for magnitude data: "mag_{band}"
Column template for error data: "magerr_{band}"
Extra parameter file: "None"
Starting setup.
Loading all program modules...
User defined LEPHAREDIR is set. Code runs depend on all required
auxiliary data being present at /lustre/t1/cl/lsst/tmp/henrique.almeida/lephare-data.
LEPHAREWORK is being set to the default cache directory:
/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/var/cache/lephare/work
Default work cache is already linked. 
This is linked to the run directory:
/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/var/cache/lephare/runs/20240814T192302
Number of keywords read in the config file: 86
Number of keywords read in the config file: 86
Configuring trainer...
Traceback (most recent call last):
  File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-train", line 212, in <module>
    if __name__ == '__main__': main()
                               ^^^^^^
  File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-train", line 202, in main
    ctx = setup(cfg)
          ^^^^^^^^^^
  File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-train", line 166, in setup
    trainer = setup_trainer(cfg.estimator, cfg.output, cfg.column_template,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-train", line 139, in setup_trainer
    trainer = Trainer.make_stage(**all_args)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lustre/t1/cl/lsst/tmp/henrique.almeida/miniconda3/lib/python3.11/site-packages/ceci/stage.py", line 123, in make_stage
    stage = cls(kwcopy, comm=comm, aliases=aliases)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: LephareInformer.__init__() got an unexpected keyword argument 'aliases'

Versions:

  • rail_lephare 0.2 (from PyPI)

  • lephare 0.1.11.dev4+gff46ff8 (from main branch)

  • python 3.11.9 (from conda default channel)

  • ceci 2.0.1 (from PyPI)

  • 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.

@hdante hdante added the bug Something isn't working label Aug 15, 2024
@mairanteodoro
Copy link

Any updates on this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants