TerraME / terrame

TerraME is a programming environment for spatial dynamical modelling
www.terrame.org
GNU Lesser General Public License v3.0
36 stars 13 forks source link

Chart using data should get any class that is a table #1134

Closed pedro-andrade-inpe closed 8 years ago

pedro-andrade-inpe commented 8 years ago

The current implementation of Chart requires that the data argument to be a table. In fact, it should use isTable(). See the example in https://github.com/pedro-andrade-inpe/calibration/blob/master/examples/sir-campaign.lua. Remove the line that sets the metatable to nil for the MultipleRuns object in order to allow using it as argument to Chart.

pedro-andrade-inpe commented 8 years ago

Changes were lost. Add them again.