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
Guang
x-cigale
Commits
a5182b96
Commit
a5182b96
authored
Jun 12, 2019
by
Guang
Committed by
Guang
Oct 23, 2019
Browse files
bug fixed
parent
723aa139
Changes
2
Hide whitespace changes
Inline
Side-by-side
pcigale/sed_modules/fritz2006.py
View file @
a5182b96
...
...
@@ -142,9 +142,10 @@ class Fritz2006(SedModule):
lumin_agn_new
=
self
.
fritz2006
.
lumin_agn
*
ext_fac
lumin_scatt_new
=
self
.
fritz2006
.
lumin_scatt
*
ext_fac
# Calculate the total extincted luminosity averaged over all directions
# note that self.opening_angle is different from Fritz's definiting!
l_ext
=
np
.
trapz
(
self
.
fritz2006
.
lumin_intrin_agn
*
(
1
-
ext_fac
),
x
=
self
.
fritz2006
.
wave
)
*
\
(
1
-
np
.
sin
(
np
.
deg2rad
(
self
.
opening_angle
/
2.
)
))
(
1
-
np
.
cos
(
np
.
deg2rad
(
self
.
opening_angle
)
))
# Casey (2012) modified black body model
conv
=
self
.
c
/
(
self
.
fritz2006
.
wave
*
self
.
fritz2006
.
wave
)
lumin_blackbody
=
(
conv
*
(
1.
-
np
.
exp
(
-
(
lambda_0
/
self
.
fritz2006
.
wave
)
...
...
pcigale/sed_modules/xray.py
View file @
a5182b96
...
...
@@ -76,7 +76,7 @@ class Xray(SedModule):
# also have two components:
# 2.1 high-mass X-ray binaries (HMXB)
# 2.2 low-mass X-ray binaries (LMXB)
# Assuming gamma=2. for both components (Wu
et al.
2008)
# Assuming gamma=2. for both components (Wu
& Gu
2008)
# normalized such that L(2-10 keV) = 1.
self
.
lumin_xrb
=
self
.
wave
**-
1
/
np
.
log
(
5.
)
...
...
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