From decdd434d8c86064968e75fca7c0c4f42d14477d Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 14 Sep 2022 16:49:01 +0100 Subject: [PATCH] ai from_checkpoint: bugfix --- aimodel/src/lib/ai/RainfallWaterContraster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)