mboquien / cigale

10 stars 0 forks source link

pcigale genconf: Problem in reading the input Data File #96

Open maitreyakun opened 1 week ago

maitreyakun commented 1 week ago

I have been using CIGALE (version 2022.1) for a long time. Recently I had to install it on a new machine. Now, when using a standard data-file in the pcigale.ini File, when I use pcigale genconf, the following Exception is raised:

Exception: Column id not present in input file

However, the ID Column is present the Input Data File, which goes as follows: #id redshift VLA_C VLA_C_err galex.FUV galex.FUV_err galex.NUV galex.NUV_err sdss.ip sdss.ip_err sdss.gp sdss.gp_err sdss.rp sdss.rp_err sdss.ip sdss.ip_err sdss.zp sdss.zp_err WISE1 WISE1_err WISE2 WISE2_err WISE3 WISE3_err WISE4 WISE4_err 0p2to0p5 0p2to0p5_err 094735.08+583046.4 0.9372 131.1 1.31 0.0802 0.0048 0.2559 0.0041 0.248 0.0015 0.2714 0.0022 0.2992 0.0025 0.2724 0.0031 0.297 0.0026 0.769 0.0083 1.2653 0.0132 2.6056 0.0469 6.0752 0.3305 6.731e-05 2.567e-06 This file is also attached here. AGN Contribution.txt

Is there any way to resolve this? Thanks!

mboquien commented 1 week ago

This is curious. Can you try to load the table with astropy.table.Table and see if it reads your file correctly. The only case I have issues is what the file has formatting issues and astropy cannot read it correctly.