TerraME / calibration

A TerraME package with calibration functionalities.
GNU General Public License v3.0
1 stars 4 forks source link

remove scenario from parameters? #176

Open pedro-andrade-inpe opened 7 years ago

pedro-andrade-inpe commented 7 years ago

Is is possible to remove the scenario from the parameters when there is only one? For example:

local m = MultipleRuns{
    model = Fire,
    repetition = 30,
    showProgress = true,
    parameters = {scenario = {
        --empty = 0.4,
        empty = Choice{min = 0.2, max = 0.9, step = 0.1},--0.4,
        dim = 30
    }},
    forest = function(model)
        return model.cs:state().forest or 0
    end,
    -- ...

could be

local m = MultipleRuns{
    model = Fire,
    repetition = 30,
    showProgress = true,
    parameters = {
        --empty = 0.4,
        empty = Choice{min = 0.2, max = 0.9, step = 0.1},--0.4,
        dim = 30
    },
    forest = function(model)
        return model.cs:state().forest or 0
    end,