Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ODA
api clients
oda_integral_wrapper
Commits
254e79b9
Commit
254e79b9
authored
Oct 06, 2021
by
Carlo Ferrigno
Browse files
Write luminosity and all cyclotron line energies (assuming it is gabs)
V 1.3.20
parent
4034b8d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
oda_integral_wrapper/fit_cyclotron.py
oda_integral_wrapper/fit_cyclotron.py
+4
-4
setup.py
setup.py
+1
-1
No files found.
oda_integral_wrapper/fit_cyclotron.py
View file @
254e79b9
...
...
@@ -403,10 +403,10 @@ def fit_cyclotron(subcases_pattern, source_name, reference_location="subcases/sc
with
open
(
'res_%s.txt'
%
subcases_pattern
,
'w'
)
as
f
:
out_str
=
'%.5f %.5f '
%
((
tstop
+
tstart
)
/
2
,
(
tstop
-
tstart
)
/
2
)
x
=
fit_by_bin
[
subcases_pattern
][
'LineE__01'
]
out_str
+=
"%.3f %.3f %.3f "
%
(
x
[
0
],
x
[
1
]
-
x
[
0
],
x
[
2
]
-
x
[
0
]
)
x
=
fit_by_bin
[
subcases_pattern
][
'LineE__04'
]
out_str
+=
"%.3f %.3f %.3f "
%
(
x
[
0
],
x
[
1
]
-
x
[
0
],
x
[
2
]
-
x
[
0
]
)
out_str
+=
"%.4g %.4g %.4g "
%
(
luminosity
[
0
],
luminosity
[
1
],
luminosity
[
2
])
for
kk
,
ii
in
fit_by_bin
[
subcases_pattern
].
items
():
if
'LineE__'
in
kk
:
out_str
+=
"%.3f %.3f %.3f "
%
(
ii
[
0
],
ii
[
1
]
-
ii
[
0
],
ii
[
2
]
-
ii
[
0
])
f
.
write
(
'%s'
%
out_str
)
res
=
{
'fit_result'
:
fit_result
,
...
...
setup.py
View file @
254e79b9
...
...
@@ -15,7 +15,7 @@ include_package_data=True
scripts_list
=
glob
.
glob
(
'./bin/*'
)
setup
(
name
=
'oda_integral_wrapper'
,
version
=
"1.3.
19
"
,
version
=
"1.3.
20
"
,
description
=
'wrapper for INTEGRAL analysis using the API plugin for CDCI online data analysis'
,
author
=
'Carlo Ferrigno'
,
author_email
=
'carlo.ferrigno@unige.ch'
,
...
...
Write
Preview
Markdown
is supported
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