Skip to content

Commit

Permalink
Merge pull request #2 from tpugnat/main
Browse files Browse the repository at this point in the history
Fixed loading line.
  • Loading branch information
freddieknets authored Dec 16, 2022
2 parents e885d23 + ef625c2 commit 408b03b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xdyna/da.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ def load_line_from_file(self, file=None):
if self.meta.nseeds > 0:
if len(line.keys()) > self.meta.nseeds:
raise ValueError("Line file not compatible with seeds! Expected a dict of lines with seeds as keys.")
line = {int(seed): l for seed, l in line.items()}
line = {int(seed): xt.Line.from_dict(l) for seed, l in line.items()}
else:
line = xt.Line.from_dict(line)
self._line = line
self.line_file = file

Expand Down

0 comments on commit 408b03b

Please sign in to comment.