There was an error while loading. Please reload this page.
1 parent 747fe5e commit a28afb6Copy full SHA for a28afb6
bayesflow/adapters/transforms/nan_to_num.py
@@ -80,6 +80,8 @@ def inverse(self, data: dict[str, any], **kwargs) -> dict[str, any]:
80
data = data.copy()
81
82
# Retrieve mask and values to reconstruct NaNs
83
+ if self.key not in data.keys():
84
+ return data
85
values = data[self.key]
86
87
if not self.return_mask:
0 commit comments