message_ix icon indicating copy to clipboard operation
message_ix copied to clipboard

lp_diag parsing error

Open Wegatriespython opened this issue 7 months ago • 0 comments

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

Wegatriespython avatar May 30 '25 08:05 Wegatriespython