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
928314ae
Commit
928314ae
authored
Nov 06, 2018
by
Médéric Boquien
Browse files
Allow pseudo filters for lines to be imported manually with pcigale-filter add.
parent
0f4f80e8
Changes
1
Show whitespace changes
Inline
Side-by-side
pcigale_filters/__init__.py
View file @
928314ae
...
...
@@ -70,7 +70,8 @@ def add_filters(fnames):
# We normalise the filter and compute the pivot wavelength. If the
# filter is a pseudo-filter used to compute line fluxes, it should
# not be normalised.
if
not
filter_name
.
startswith
(
'PSEUDO'
):
if
not
(
filter_name
.
startswith
(
'PSEUDO'
)
or
filter_name
.
startswith
(
'linefilter.'
)):
new_filter
.
normalise
()
else
:
new_filter
.
pivot_wavelength
=
np
.
mean
(
...
...
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