Commit 051cf47f authored by Carlo Ferrigno's avatar Carlo Ferrigno
Browse files

Needed to use the right name in table for html output.

currect number of digits in string for flux.
v1.3.31
parent 536ea9bd
......@@ -410,8 +410,8 @@ class INTEGRALwrapper(object):
copy_tab['RA'] = copy_tab['RA'].astype('S8')
copy_tab['Dec'] = copy_tab['Dec'].astype('S8')
copy_tab['Flux'] = copy_tab['Flux'].astype('S6')
copy_tab['Error'] = copy_tab['Error'].astype('S6')
copy_tab['Flux (cts/s)'] = copy_tab['Flux (cts/s)'].astype('S7')
copy_tab['Error (cts/s)'] = copy_tab['Error (cts/s)'].astype('S7')
copy_tab['Significance'] = copy_tab['Significance'].astype('S6')
for i, s in enumerate(fluxed_catalog['significance']):
......@@ -419,8 +419,8 @@ class INTEGRALwrapper(object):
for i, s in enumerate(zip(fluxed_catalog['FLUX'], fluxed_catalog['FLUX_ERR'])):
format_str = '%.' + str(1 + int(np.abs(np.floor(np.log10(s[1]))))) + 'f'
copy_tab['Flux'][i] = format_str % s[0]
copy_tab['Error'][i] = format_str % s[1]
copy_tab['Flux (cts/s)'][i] = format_str % s[0]
copy_tab['Error (cts/s)'][i] = format_str % s[1]
local_html = HTML(htmldict)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment