updated default_parameters.xml to newest version.

parent 2b7650af
......@@ -2,3 +2,4 @@
from likelihood import Likelihood
from ensemble_likelihood import *
from simple_likelihood import SimpleLikelihood
# -*- coding: utf-8 -*-
from simple_likelihood import SimpleLikelihood
......@@ -7,9 +7,9 @@ from imagine.magnetic_fields.wmap3yr_magnetic_field import WMAP3yrMagneticField
class WMAP3yrMixin(MagneticFieldModel):
def update_parameter_xml(self, root):
custom_parameters = [
['./Galaxy/MagneticField/Regular', 'type', 'WMAP'],
['./Galaxy/MagneticField/Random', 'cue', '1'],
['./Galaxy/MagneticField/Random', 'type', 'Anisoglob']]
['./MagneticField/Regular', 'type', 'WMAP'],
['./MagneticField/Random', 'cue', '1'],
['./MagneticField/Random', 'type', 'Global']]
for parameter in custom_parameters:
root.find(parameter[0]).set(parameter[1], str(parameter[2]))
......
......@@ -17,5 +17,5 @@ class DMMixin(ObservableMixin):
def update_parameter_xml(self, root):
element = et.Element('DM', {'cue': '1',
'filename': self.obs_name+'.fits'})
output = root.find('Output')
output = root.find('Obsout')
output.append(element)
......@@ -17,5 +17,5 @@ class FDMixin(ObservableMixin):
def update_parameter_xml(self, root):
element = et.Element('Faraday', {'cue': '1',
'filename': self.obs_name+'.fits'})
output = root.find('Output')
output = root.find('Obsout')
output.append(element)
Markdown is supported
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