Skip to content

Commit a717600

Browse files
committed
fix typo
1 parent 86f6f41 commit a717600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bayesflow/simulators/model_comparison_simulator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _handle_key_conflicts(self, sims, batch_sizes):
144144
sims = [{k: v for k, v in sim.items() if k in common_keys} for sim in sims]
145145
return sims
146146

147-
# try to fill values with key_conflicts to shape of sims from other models
147+
# try to fill with key_conflicts to shape of the values from other model
148148
if isinstance(self.key_conflicts, (float, int)):
149149
combined_sims = {}
150150
for sim in sims:
@@ -153,7 +153,7 @@ def _handle_key_conflicts(self, sims, batch_sizes):
153153
for i, sim in enumerate(sims):
154154
for missing_key in missing_keys[i]:
155155
shape = combined_sims[missing_key].shape
156-
shape = [s for s in shape]
156+
shape = list(shape)
157157
shape[0] = batch_sizes[i]
158158

159159
sim[missing_key] = np.full(shape=shape, fill_value=self.key_conflicts)

0 commit comments

Comments
 (0)