Commit 524050fd authored by Ingrid Luijkx's avatar Ingrid Luijkx
Browse files

Another small fix logging localization when set to None...

parent d4522c04
......@@ -48,13 +48,13 @@ class CtOptimizer(Optimizer):
else:
self.localization = False
self.localizetype = 'None'
self.tvalue = 0
logging.info("Current localization option is set to %s" % self.localizetype)
if self.tvalue == 0:
logging.error("Critical tvalue for localization not set for %i ensemble members"%(self.nmembers))
sys.exit(2)
else: logging.info("Used critical tvalue %0.05f is based on 95%% probability and %i ensemble members in a two-tailed student's T-test"%(self.tvalue,self.nmembers))
if self.localization == True:
if self.tvalue == 0:
logging.error("Critical tvalue for localization not set for %i ensemble members"%(self.nmembers))
sys.exit(2)
else: logging.info("Used critical tvalue %0.05f is based on 95%% probability and %i ensemble members in a two-tailed student's T-test"%(self.tvalue,self.nmembers))
def localize(self, n):
""" localize the Kalman Gain matrix """
......
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