Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
astro
astrotools
Commits
4787d00a
Commit
4787d00a
authored
Dec 05, 2019
by
Marcus Wirtz
Browse files
[simulations] Teresa's shame commit
parent
c636fbb2
Pipeline
#215275
failed with stages
in 3 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
astrotools/simulations.py
View file @
4787d00a
...
...
@@ -488,7 +488,7 @@ class SourceBound(BaseSimulation):
def
set_charges
(
self
,
charges
):
"""
Define fraction of charge groups in form of dictionary (e.g. {'h':0.5, 'fe':0.5}) at source
or as keyword 'first_minimum'/'second_minimum' f
o
rm Auger's best fit paper (arXiv:1612.07155)
or as keyword 'first_minimum'/'second_minimum' fr
o
m Auger's best fit paper (arXiv:1612.07155)
If string is given, gamma and Rcut are also set to the respective best fit values.
:param charges: dictionary hosting the fractions of injected elements (H, He, N, Si, Fe possible)
...
...
@@ -502,10 +502,10 @@ class SourceBound(BaseSimulation):
elif
isinstance
(
charges
,
str
):
if
charges
==
'first_minimum'
:
self
.
energy_setting
[
'gamma'
],
self
.
energy_setting
[
'log10_cut'
]
=
-
0.96
,
18.68
self
.
charge_weights
=
{
'h'
:
0.
,
'he'
:
0.673
,
'n'
:
0.281
,
'si'
:
0.046
,
'fe'
:
0.
}
self
.
charge_weights
=
{
'he'
:
0.673
,
'n'
:
0.281
,
'si'
:
0.046
}
elif
charges
==
'second_minimum'
:
self
.
energy_setting
[
'gamma'
],
self
.
energy_setting
[
'log10_cut'
]
=
-
2.04
,
19.88
self
.
charge_weights
=
{
'h'
:
0.
,
'he'
:
0.
,
'n'
:
0.798
,
'si'
:
0.202
,
'fe'
:
0.
}
self
.
charge_weights
=
{
'n'
:
0.798
,
'si'
:
0.202
}
else
:
raise
Exception
(
'Charge keyword not understood (first_minimum/second_minimum)'
)
self
.
energy_setting
[
'rig_cut'
]
=
True
...
...
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