Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ODA
api clients
oda_integral_wrapper
Commits
051cf47f
Commit
051cf47f
authored
Jun 17, 2022
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
oda_integral_wrapper/wrapper.py
View file @
051cf47f
...
...
@@ -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
(
'S
6
'
)
copy_tab
[
'Error'
]
=
copy_tab
[
'Error'
].
astype
(
'S
6
'
)
copy_tab
[
'Flux
(cts/s)
'
]
=
copy_tab
[
'Flux
(cts/s)
'
].
astype
(
'S
7
'
)
copy_tab
[
'Error
(cts/s)
'
]
=
copy_tab
[
'Error
(cts/s)
'
].
astype
(
'S
7
'
)
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment