arras-energy / gridlabd

Arras Energy simulator
https://www.arras.energy/
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

Convert subcommand and automatic converter use different syntax for options #115

Open aivanova5 opened 9 months ago

aivanova5 commented 9 months ago

Problem description

This works correctly, gridlabd convert -i MODEL_NAME.csv -o MODEL_NAME.glm -f csv-table -t glm-object -O module:powerflow

However -M or --module or -O pick up

{'-O': True, 'module:powerflow': True} gets passed to convert()

In addition, the implementation with : is inconsistent with other converters.

Archive.zip

dchassin commented 9 months ago

This issue is more complicated that it seems at first. The convert subcommand and the automatic converter options use different syntax. These need to be consistent.