Skip to content

Commit 9c26669

Browse files
committed
fix bug with saving of the BalancingLearner
1 parent 06b9200 commit 9c26669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adaptive/learner/balancing_learner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def save(self, fname, compress=True):
350350
>>> learner.save(combo_fname) # use 'load' in the same way
351351
"""
352352
if isinstance(fname, Iterable):
353-
for l, _fname in zip(fname, self.learners):
353+
for l, _fname in zip(self.learners, fname):
354354
l.save(_fname, compress=compress)
355355
else:
356356
for l in self.learners:
@@ -374,7 +374,7 @@ def load(self, fname, compress=True):
374374
See the example in the `BalancingLearner.save` doc-string.
375375
"""
376376
if isinstance(fname, Iterable):
377-
for l, _fname in zip(fname, self.learners):
377+
for l, _fname in zip(self.learners, fname):
378378
l.load(_fname, compress=compress)
379379
else:
380380
for l in self.learners:

0 commit comments

Comments
 (0)