arras-energy / gridlabd

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

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

Open aivanova5 opened 1 year ago

aivanova5 commented 1 year 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 1 year 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.