Commit 6dc14fd8 authored by teresa.bister's avatar 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
......@@ -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):
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment