Index: wflow-py/wflow/wflow_bmi.py =================================================================== diff -u -r0cecb8cccca20c2a4b0cba6d6538b4002c627187 -r0040bd54b0f7000f114e1bd023e2a508b5d1a4ba --- wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision 0cecb8cccca20c2a4b0cba6d6538b4002c627187) +++ wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision 0040bd54b0f7000f114e1bd023e2a508b5d1a4ba) @@ -161,10 +161,8 @@ os.path.splitext(os.path.basename(configfile))[0], ) if useddef: - self.bmilogger.warn( - "Please specify modeltype in the model section of file: " + configfile - ) - self.bmilogger.warn("Assuming " + self.name + " as model type.") + self.bmilogger.warning("Please specify modeltype in the model section of file: " + configfile) + self.bmilogger.warning("Assuming " + self.name + " as model type.") maxNrSteps = 10000 maxNrSteps = 0 @@ -562,8 +560,9 @@ ) self.bmilogger.info("__init__: wflow_bmi object initialised.") if self.wrtodisk: - self.bmilogger.warn("Will write all bmi set and get grids to disk!...") + self.bmilogger.warning('Will write all bmi set and get grids to disk!...') + def initialize_config(self, filename, loglevel=logging.DEBUG): """ *Extended functionality*, see https://github.com/eWaterCycle/bmi/blob/master/src/main/python/bmi.py @@ -596,10 +595,8 @@ os.path.splitext(os.path.basename(filename))[0], ) if useddef: - self.bmilogger.warn( - "Please specify modeltype in the model section of file: " + fullpathname - ) - self.bmilogger.warn("Assuming " + self.name + " as model type.") + self.bmilogger.warning("Please specify modeltype in the model section of file: " + fullpathname) + self.bmilogger.warning("Assuming " + self.name + " as model type.") try: exec("import wflow." + self.name + " as wf") @@ -772,7 +769,7 @@ attrpath[0], attrpath[1], attribute_value ) else: - self.bmilogger.warn("Attributes should follow the name:option convention") + self.bmilogger.warning("Attributes should follow the name:option convention") raise Warning("attributes should follow the name:option convention") def initialize(self, filename, loglevel=logging.DEBUG):