You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to format the floating point numbers in certain way when I make a table into a ascii file.
I've noticed that the default format for float64 is '25.17e'.
I tried to use format keyword:
t = atpy.Table()
t.add_column('name', data, format='%10.3f')
but when I check t.format('name') = '%1' (i.e. the first two characters..)
I've tried '%10.3f' which gives "Not all argument converted ' error, and '10.3f' which also gives error.
I wasn't able to find any example for the format keyword.
What is the right way to use this keyword?
The text was updated successfully, but these errors were encountered:
Try specifying the format without the % and make sure you are using ATpy 0.9.6 - does this work? If so, I can try and make it more robust to whether % is included or not.
I want to format the floating point numbers in certain way when I make a table into a ascii file.
I've noticed that the default format for float64 is '25.17e'.
I tried to use format keyword:
t = atpy.Table()
t.add_column('name', data, format='%10.3f')
but when I check t.format('name') = '%1' (i.e. the first two characters..)
I've tried '%10.3f' which gives "Not all argument converted ' error, and '10.3f' which also gives error.
I wasn't able to find any example for the format keyword.
What is the right way to use this keyword?
The text was updated successfully, but these errors were encountered: