-
Notifications
You must be signed in to change notification settings - Fork 19
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
Asserion error while using Otoole Results #219
Comments
Hey @vignesh1987, thanks for reporting the error! :) Are you able to try running your results command using the non pre-processed data file? (ie. the datafile without the additional While this may solve the issue, we should probably leave this issue open since more people are running into it! Not sure if this bug originates from amply or otoole tho? |
HI @trevorb1 |
@vignesh1987, sorry, my response may have been unclear! I guess I meant, still run the model with the pre-processed data file, but then in the otoole results conversion use the non-pre-processed data file! Off the top of my head, I believe amply has trouble parsing the pre-processed datafile with the updated sets (but this could be wrong!) |
@trevorb1 : Yes, the assertion error is avoided when using the original data file instead of the pre-processed one. Shall I close this bug, or do we still have this open? May be I can add somewhere in the documentation (as a caveat) about this. This can be a temporary solution. |
@vignesh1987, thanks for confirming it works! I agree with you, adding this in the documentation should be enough to close this bug, as the error (I think) originates with amply. Maybe this then gets converted to a new issue of "Cannot parse preprocessed datafiles" which links to amply. |
The Issue
When I use Otoole to create result CSVs, I get an Assertion Error. I thought that this could be because I had hashed out important result variables like ProductionByTechnologyAnnual. However, the error persists even after I run the model with the variables enabled. Any pointers on what the reason could be? I have attached the error log along with the posts.
otoole_results_errorlog.txt
Expected Behavior
I did not expect any assertion error.
Steps To Reproduce
I used GLPSOL to create the *.lp file. I used otoole and ran CBC to create a solution file and then used otoole results to produce the results. Attached my model file and data file for reproduction.
osemosys_processed.txt
data_processed.txt
Log output
No response
Operating System
Windows
What version of otoole are you running?
1.1.2
Possible Solution
The member list on Amply.py does not match in length with some variables. I doubt if this is because I have not enabled any particular result variable that Otoole considers in its default results template. Or maybe there is a mismatch between my config file (result variables) and the result variables enabled in the model file. I will investigate the latter.
Anything else?
No response
The text was updated successfully, but these errors were encountered: