From 2b79af633e7392ceac1b75d8a87e1fb673b539af Mon Sep 17 00:00:00 2001
From: Ingrid Luijx <ingrid.vanderlaan@wur.nl>
Date: Fri, 12 Jul 2013 10:19:50 +0000
Subject: [PATCH] minor changes for init random seed

---
 da/tools/initexit.py | 2 +-
 template.rc          | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/da/tools/initexit.py b/da/tools/initexit.py
index ff15ab4..6a2aeea 100755
--- a/da/tools/initexit.py
+++ b/da/tools/initexit.py
@@ -252,7 +252,7 @@ class CycleControl(dict):
 
     def read_random_seed(self, first=False):
         if first:
-            filename = self.dasystem['random.seed.init']
+            filename = self['random.seed.init']
             logging.info("Initialised random seed from: %s"%filename)
         else: 
             filename = os.path.join(self['dir.restart'], 'randomseed_%s.pickle' % self['da.restart.tstamp'].strftime('%Y%m%d'))
diff --git a/template.rc b/template.rc
index cddffbe..38b7ecf 100644
--- a/template.rc
+++ b/template.rc
@@ -6,6 +6,7 @@ time.finish         : 2000-01-03 00:00:00
 time.cycle          : 1
 time.nlag           : 2
 dir.da_run          : template
+!datadir             : /Volumes/DataRaid/CO2/carbontracker/input/ctdas_2012/
 !random.seed.init    : ${datadir}/randomseedinit.pickle
 
 ! info on the resources needed
@@ -25,6 +26,7 @@ da.system.localization : CT2007
 
 da.obsoperator         : TM5
 da.obsoperator.rc      : ${HOME}/TM5/tm5-ctdas-ei-zoom.rc
+da.obsoperator.home    : ${HOME}/TM5
 da.optimizer.nmembers  : 150
 
 ! info on the archive task, if any
-- 
GitLab