Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
astro
astrotools
Commits
6dc14fd8
Commit
6dc14fd8
authored
Dec 12, 2019
by
teresa.bister
Browse files
[simulations] order chargegroups always the same way for naming
parent
72d8c504
Pipeline
#218264
passed with stages
in 4 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
astrotools/simulations.py
View file @
6dc14fd8
...
...
@@ -714,7 +714,9 @@ class SourceBound(BaseSimulation):
def
_get_charge_id
(
self
):
""" Return charge id of universe """
return
''
.
join
([
'__%s_%s'
%
(
key
,
self
.
charge_weights
[
key
])
for
key
in
self
.
charge_weights
])
chargegroups
=
[
'h'
,
'he'
,
'n'
,
'si'
,
'fe'
]
return
''
.
join
([
'__%s_%s'
%
(
key
,
self
.
charge_weights
[
key
])
for
key
in
chargegroups
if
key
in
self
.
charge_weights
])
def
_select_representative_set
(
self
):
# pragma: no cover
""" Select a representative set in terms of anisotropies """
...
...
@@ -908,7 +910,7 @@ class SourceBound(BaseSimulation):
yerr
=
yerr_heavy
)
plt
.
axvline
(
x
=
self
.
universe
.
rmax
,
color
=
'0.5'
,
linestyle
=
'dashed'
,
label
=
'Source shell'
)
plt
.
ylabel
(
r
'flux
/ percent
/ %s Mpc'
%
bin_width
,
fontsize
=
22
)
plt
.
ylabel
(
r
'flux
[a.u.]
/ %s Mpc'
%
bin_width
,
fontsize
=
22
)
plt
.
xlabel
(
'distance / Mpc'
,
fontsize
=
22
)
plt
.
xticks
(
fontsize
=
22
)
plt
.
yticks
(
fontsize
=
22
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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