Skip to content

Commit

Permalink
Merge pull request #195 from Akshita07/handleDatadictNoneCase
Browse files Browse the repository at this point in the history
Allow empty dataset if datadict is none
  • Loading branch information
jenshnielsen committed Jun 4, 2021
2 parents e648047 + 1c26f09 commit 9a27028
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plottr/data/datadict.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,10 @@ def combine_datadicts(*dicts: DataDict) -> Union[DataDictBase, DataDict]:
dep_axes = [ax_map[ax] for ax in d[d_dep]['axes']]
ret[newdep] = d[d_dep]
ret[newdep]['axes'] = dep_axes
assert ret is not None
ret.validate()

if ret is None:
ret = DataDict()
else:
ret.validate()

return ret

0 comments on commit 9a27028

Please sign in to comment.