Skip to content

Asserion error while using Otoole Results #219

@vignesh1987

Description

@vignesh1987

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions