diff --git a/aimodel/src/lib/ai/RainfallWaterContraster.py b/aimodel/src/lib/ai/RainfallWaterContraster.py index e7953c6..e774610 100644 --- a/aimodel/src/lib/ai/RainfallWaterContraster.py +++ b/aimodel/src/lib/ai/RainfallWaterContraster.py @@ -52,7 +52,7 @@ class RainfallWaterContraster(object): @staticmethod def from_checkpoint(filepath_checkpoint, filepath_hyperparams=None): - if filepath_checkpoint is None: + if not filepath_checkpoint: filepath_checkpoint = find_paramsjson(filepath_checkpoint) hyperparams = json.loads(readfile(filepath_hyperparams)) return RainfallWaterContraster(filepath_checkpoint=filepath_checkpoint, **hyperparams)