Closed hdante closed 5 months ago
Another problem: the input_iterator()
method always inserts an HDF5 group name attribute in the options dictionary:
try:
self.config.hdf5_groupname
except:
self.config.hdf5_groupname = None
It causes the following error:
Traceback (most recent call last):
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-estimate", line 221, in <module>
main()
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-estimate", line 217, in main
estimate(cfg, ctx)
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/slurm-home/bin/rail-estimate", line 210, 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 96, in estimate
self.run()
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/miniconda3/lib/python3.11/site-packages/rail/estimation/estimator.py", line 108, in run
for s, e, test_data in iterator:
File "/lustre/t1/cl/lsst/tmp/henrique.almeida/miniconda3/lib/python3.11/site-packages/tables_io/ioUtils.py", line 441, in iterPqToDataFrame
parquet_file = pq.read_table(filepath, columns=columns, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: read_table() got an unexpected keyword argument 'groupname'
@ztq1996 Thank you for bringing this to my attention. I added the tables_io functions to use parquet files but forgot to add them inside rail. I'm currently sending a PR to be able to use the parquet files in the estimators.
Bug report Hello, I'm currently unable to start estimations with parquet file, RAIL tries to open the file as HDF5 in the following method:
Full backtrace follows:
Before submitting Please check the following: