Skip to content

sim.run.multirun : problem with kwargs_optim #24

@mtewes

Description

@mtewes

Hi @martin-millon,

a user contacted me about a problem with a demo script (probably inspired by the ones given with pycs): it seems that this is related to a change in the positional arguments (namely, adding kwargs_optim) in sim.run.multirun.

Error:

Traceback (most recent call last):
File "pycs_test_j1206.py", line 70, in <module>
 pycs.sim.run.multirun("copies", lcs, myopt.spl,  optset="spl", tsrand=10.0, keepopt=True)
TypeError: multirun() takes at least 4 arguments (6 given)

Could you make this kwargs_optim optional, by setting it to None, and later "if None, make it an empty dict"? I'm asking you, as you are likely most aware of any potential related changes. Or if you prefer, modify the doc and demo files. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions