Skip to content

fit.scan modifies input parameter fix_pars #545

@0ctagon

Description

@0ctagon

In fit.scan, this line fixes the parameter in the fit, but if the user provides his own fix_pars list, the parameter stays fixed once the scan if finished.

fix_pars[par_index] = True # hold scan parameter constant in fits

I think adding a .copy() would fix the problem;

init_pars = init_pars.copy() or model.config.suggested_init()
fix_pars = fix_pars.copy() or model.config.suggested_fixed()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions