Skip to content

Commit 1ebf1cd

Browse files
committed
fixes for standardize=None case
1 parent 1944186 commit 1ebf1cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bayesflow/approximators/continuous_approximator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
if isinstance(standardize, str) and standardize != "all":
6060
self.standardize = [standardize]
6161
else:
62-
self.standardize = standardize
62+
self.standardize = standardize or []
6363

6464
if self.standardize == "all":
6565
# we have to lazily initialize these

bayesflow/approximators/model_comparison_approximator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(
5858
if isinstance(standardize, str) and standardize != "all":
5959
self.standardize = [standardize]
6060
else:
61-
self.standardize = standardize
61+
self.standardize = standardize or []
6262

6363
if self.standardize == "all":
6464
# we have to lazily initialize these
@@ -333,6 +333,7 @@ def get_config(self):
333333
"adapter": self.adapter,
334334
"classifier_network": self.classifier_network,
335335
"summary_network": self.summary_network,
336+
"standardize": self.standardize,
336337
}
337338

338339
return base_config | serialize(config)

0 commit comments

Comments
 (0)