Skip to content
Snippets Groups Projects
Commit 524050fd authored by Ingrid Luijkx's avatar Ingrid Luijkx
Browse files

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

parent d4522c04
Branches
No related tags found
No related merge requests found
...@@ -48,13 +48,13 @@ class CtOptimizer(Optimizer): ...@@ -48,13 +48,13 @@ class CtOptimizer(Optimizer):
else: else:
self.localization = False self.localization = False
self.localizetype = 'None' self.localizetype = 'None'
self.tvalue = 0
logging.info("Current localization option is set to %s" % self.localizetype) logging.info("Current localization option is set to %s" % self.localizetype)
if self.tvalue == 0: if self.localization == True:
logging.error("Critical tvalue for localization not set for %i ensemble members"%(self.nmembers)) if self.tvalue == 0:
sys.exit(2) logging.error("Critical tvalue for localization not set for %i ensemble members"%(self.nmembers))
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)) 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): def localize(self, n):
""" localize the Kalman Gain matrix """ """ localize the Kalman Gain matrix """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment