LSSTDESC / rail_lephare

RAIL wrapper to the LePHARE photometric redshift code
MIT License
1 stars 0 forks source link

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

Open hdante opened 2 months ago

hdante commented 2 months ago

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: