Skip to content

Spawning Simulations with config file and provided population fails #20

Description

@JohannesPonge

Ideally, this should work:

sim = Simulation("data/DefaultConf.toml", population = "SH")

But we're getting:

ERROR: "Warning: Unhandled arguments provided - Base.Pairs(:population => \"SH\"). You cannot overwrite parameters in a provided config file"
Stacktrace:
 [1] Simulation(configfile::String, populationidentifier::String; settingsfile::String, label::String,
 stepmod::Function, params::Nothing, simargs::@Kwargs{…})
   @ GEMS C:\Users\JPong\Documents\git\GEMS_GitHub\src\structs\simulation.jl:487
 [2] #Simulation#279
   @ C:\Users\JPong\Documents\git\GEMS_GitHub\src\structs\simulation.jl:672 [inlined]
 [3] top-level scope
   @ c:\Users\JPong\Documents\git\GEMS_GitHub\localtests.jl:131
Some type information was truncated. Use `show(err)` to see complete types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions