check if pkl exist to apply modifications

This commit is contained in:
leno3003 2022-03-29 14:09:54 +02:00
parent a14bb4ae86
commit 230d7df17e

View file

@ -51,9 +51,9 @@ dictionary = {
with open('/home/deepfake/interact_dict.pkl', 'wb') as handle: with open('/home/deepfake/interact_dict.pkl', 'wb') as handle:
pickle.dump(dictionary, handle, protocol=4) pickle.dump(dictionary, handle, protocol=4)
#with open('/home/deepfake/interact_dict.pkl', 'rb') as handle: with open('/home/deepfake/interact_dict.pkl', 'rb') as handle:
# d = pickle.load(handle) d = pickle.load(handle)
#s = "Target iteration" s = "Use interactive merger"
#res = dict(filter(lambda item: s in item[0], d.items())) res = dict(filter(lambda item: s in item[0], d.items()))
#
#print(list(res.values())[0]) print(list(res.values())[0])