tmdt-buw / python-plantsim

Other
17 stars 11 forks source link

Update table class for tables without indexes #3

Open ebroda opened 1 year ago

ebroda commented 1 year ago

On my first try I had a table without indices, in this case PlantSimulation throw an error, as no value is in cell[0,0] in this case. To circumvent this problem, I've updated the table class to check if the table has a ColumnIndex or RowIndex and set the starting values of range() accordingly. Additionally, some getters are updated to respect the (non)-existence of column or row indices.