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
8ae3ba4c
Commit
8ae3ba4c
authored
Nov 06, 2018
by
Médéric Boquien
Browse files
Set units to W/m² for line pseudo-filters.
parent
928314ae
Changes
2
Show whitespace changes
Inline
Side-by-side
pcigale/managers/models.py
View file @
8ae3ba4c
...
...
@@ -55,7 +55,7 @@ class ModelsManager(object):
table
=
Table
()
table
.
add_column
(
Column
(
self
.
block
,
name
=
'id'
))
for
band
in
sorted
(
self
.
flux
.
keys
()):
if
band
.
startswith
(
'line.'
):
if
band
.
startswith
(
'line.'
)
or
band
.
startswith
(
'linefilter.'
)
:
unit
=
'W/m^2'
else
:
unit
=
'mJy'
...
...
pcigale/managers/results.py
View file @
8ae3ba4c
...
...
@@ -397,7 +397,7 @@ class ResultsManager(object):
name
=
"best."
+
prop
))
for
band
in
self
.
obs
.
bands
:
if
band
.
startswith
(
'line.'
):
if
band
.
startswith
(
'line.'
)
or
band
.
startswith
(
'linefilter.'')
:
unit = '
W
/
m
^
2
'
else:
unit = '
mJy
'
...
...
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