-
Notifications
You must be signed in to change notification settings - Fork 37
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
Cannot change exchange amount #19
Comments
Original comment by Benjamin W. Portner (Bitbucket: pommespapst, GitHub: pommespapst). Better-formatted code:
|
Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel). Sorry, that is frustrating! I can't reproduce this:
Some things to try:
|
Original comment by Benjamin W. Portner (Bitbucket: pommespapst, GitHub: pommespapst). Looks like the error occurs if the handle to the exchange is not saved:
|
Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel). There are two important details here:
|
Original comment by Benjamin W. Portner (Bitbucket: pommespapst, GitHub: pommespapst). Thanks for the clarification! Concerning the order of exchanges: it is changing every time indeed. Thanks for the hint! |
Original report by Anonymous.
I'm using brightway2 with miniconda in PyCharm IDE on Windows OS. I am trying to change the amount of an exchange, however my change is not being executed. I get no errors, the number simply does not change.
Sample code:
oActivity = bw.Database('some_db').search("some_activity")[0]
oExchange = list(oActivity.exchanges())[1]
oExchange["amount"]
The text was updated successfully, but these errors were encountered: