Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for unsupported operand type(s) for |: 'dict' and 'dict' #135

Open
j-l-s opened this issue Mar 31, 2022 · 0 comments
Open

fix for unsupported operand type(s) for |: 'dict' and 'dict' #135

j-l-s opened this issue Mar 31, 2022 · 0 comments

Comments

@j-l-s
Copy link

j-l-s commented Mar 31, 2022

I had this error (unsupported operand type(s) for |: 'dict' and 'dict') at line 170 of acq4/util/LogWindow.py
[Python 3.8.13 on mac OSX Monterey]

The fix is to replace:
self.saveEntries({saveName: entry | {"id": savedId}})

by:
new_entry = entry.copy(); new_entry.update( {"id": savedId} ); self.saveEntries({saveName: new_entry})

hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant