Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lscsoft
bayeswave
Commits
389dc5ac
Commit
389dc5ac
authored
Aug 18, 2020
by
Meg Millhouse
Browse files
fix signal residual histograms
parent
ecf8d57c
Changes
1
Hide whitespace changes
Inline
Side-by-side
BayesWaveUtils/scripts/megaplot.py
View file @
389dc5ac
...
...
@@ -92,8 +92,8 @@ htmlDir = 'html/'
#### --fullOnly ###
fullOnly_flag
=
0
if
os
.
path
.
exists
(
postDir
+
'full'
):
fullOnly_flag
=
1
print
(
"Found --fullOnly flag
\n
"
)
fullOnly_flag
=
1
print
(
"Found --fullOnly flag
\n
"
)
#Adopt common color scheme for different models
...
...
@@ -102,7 +102,7 @@ gcolor = 'darkgoldenrod'
scolor
=
'darkorchid'
ifoColors
=
[
'darkgoldenrod'
,
'darkkhaki'
,
'darkseagreen'
,
'olive'
,
'cadetblue'
,
'green'
,
'slategray'
,
'darkcyan'
]
signal_ifoColorList
=
[
'darkorchid'
,
'indigo'
,
'orchid'
,
'slateblue'
,
'mediumvioletred'
,
'palevioletred'
]
signal_ifoColorList
=
[
'darkorchid'
,
'
fuchsia'
,
'
indigo'
,
'orchid'
,
'slateblue'
,
'mediumvioletred'
,
'palevioletred'
]
injcolor
=
'teal'
...
...
@@ -1035,13 +1035,13 @@ def plot_model_dims(modelList, ifoList, ifoNames, plotsDir, fullOnly_flag=0):
def
whitened_residual_plots
(
model
,
ifoList
,
ifoNames
,
fullOnly_flag
=
0
):
if
model
==
'glitch'
:
c
olo
u
r
=
gc
olor
lineC
olor
s
=
ifoC
olor
s
elif
model
==
'signal'
:
c
olo
u
r
=
s
color
lineC
olor
s
=
s
ignal_ifoColorList
elif
model
==
'noise'
:
colour
=
ncolor
lineColors
=
ifoColors
lineColors
=
ifoColors
hashlist
=
[
'solid'
,
'dashed'
,
'dashdot'
,
'solid'
,
'dashed'
,
'dashdot'
]
plt
.
clf
()
...
...
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