add relative logic to _modDict
@@ -147,6 +147,9 @@ def _modDict(originaldict, moddict, relative=False):
for key in moddict:
try:
+ if relative:
+ newdict[key] = moddict[key] + newdict[key]
+ else:
newdict[key] = moddict[key]
except:
print("Wrong key in modified dictionary")
