sterbini / cl2pd

A simple package to convert CERN Logging information (using pytimber/CALS, mat-files, massi-files, TFS-files...) in to pandas dataframes.
GNU General Public License v3.0
1 stars 7 forks source link

Tfs to pandas with not complete twiss files #37

Open apoyet opened 6 years ago

apoyet commented 6 years ago

Hi,

I just got the error using the tfs2pd function:

AttributeError: _TFS instance has no attribute 'S'

Indeed, I'm trying to read a twiss file produced without any details on the columns names, and therefore has not 'S' written in it. Should this function be completely generic? Or should it be meant to be used with s-indexing?

sterbini commented 6 years ago

Hi, 'S' is needed (in the present approach at least) being used as index. Share you use case (twiss file) so that we can propose a solution. Cheers, G.

sterbini commented 6 years ago

Axel, can you give me an example of the problem?

apoyet commented 6 years ago

Dear Guido,

Here is my use case: try to open this file /eos/user/a/apoyet/SWAN_projects/2018/Simulation_Input/temp_f_test/dynaptune :)

sterbini commented 6 years ago

Hi,

it should be fixed. Cheers, G.