message_ix
message_ix copied to clipboard
lp_diag parsing error
What happened?
When running lp_diag on my mps file the parser fails.
I get this type of parser fail
example of the line in the mps file
"G COMMODITY_BALANCE_GT(R12_AFR,'Fertilizer Use|Nitrogen',final_material,2035,year)"
Code Sample
in __init__ inside message_ix\tools\lp_diag
ln 248
in add_row
assert n_words == 2, (
^^^^^^^^^^^^
AssertionError: row declaration (line 7917) has 3 words instead of 2.
What did you expect to happen?
example of the line in the mps file
"G COMMODITY_BALANCE_GT(R12_AFR,'Fertilizer Use|Nitrogen',final_material,2035,year)"
Versions
Additional Context
No response