zblz / naima

Derivation of non-thermal particle distributions through MCMC spectral fitting
http://naima.readthedocs.io
BSD 3-Clause "New" or "Revised" License
45 stars 54 forks source link

Unable to guess table format #165

Closed ZiweiOu closed 6 years ago

ZiweiOu commented 6 years ago

Hi, When I run the example script 'RXJ1713_IC.py', it is fine. However, when I replace the data with my data, which is the results of data challenge 1 of Cherenkov Telescope Arrays, it shows the error: 'ERROR: Unable to guess table format with the guesses listed below:' I am sure the format and structure of my data is the same as the original data 'RXJ1713_HESS_2007.dat' in the example script. So I don't understand where does my error come from. Hoping for suggestions.

zblz commented 6 years ago

Hi,

In that example script, the data table is read in one of the first line with a call to astropy.io.ascii.read. Is is difficult to see what the problem is without seeing the file contents, but you might want to look at the astropy docs for more information about the ascii module that might solve your problem. Most likely there is a formatting error in the file.

I'll close this issue as it is not a problem in the code of naima.