Commit 11e7555a authored by karolina's avatar karolina
Browse files

moved rc importing to the top of the module

parent 39ee37e5
......@@ -30,6 +30,7 @@ from string import join
import as rc
from import create_dirs, to_datetime
from da.baseclasses.observationoperator import ObservationOperator
......@@ -196,8 +197,6 @@ class TM5ObservationOperator(ObservationOperator):
This method loads a TM5 rc-file with settings for this simulation
import as rc
self.rcfile = rc.RcFile(name)
self.tm_settings = self.rcfile.values
self.rc_filename = name
......@@ -304,7 +303,6 @@ class TM5ObservationOperator(ObservationOperator):
Write the rc-file settings to a tm5.rc file in the rundir
import as rc
rc.write(tm5rcfilename, self.tm_settings)
logging.debug("Modified rc file for TM5 written (%s)" % tm5rcfilename)
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