Skip to content

Commit 7453edd

Browse files
author
avishaihalev
committed
diff update
1 parent 1f776e3 commit 7453edd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/expfig/namespacify.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .functions import depth, flatten
1212
from .logging import make_sequential_log_dir
1313

14+
from expfig.utils.api import is_dict_like
1415
from expfig.utils.get_pandas import pandas as pd
1516

1617

@@ -132,7 +133,9 @@ def difference(self, other):
132133
"""
133134
diff = {}
134135
for k, v in self.items():
135-
if k not in other:
136+
if not is_dict_like(other):
137+
diff[k] = v
138+
elif k not in other:
136139
diff[k] = v
137140
elif not equal(v, other[k]):
138141
if isinstance(v, Namespacify):

0 commit comments

Comments
 (0)