multifit: simultaneous fitting to multiple data sets. Module ‘loggedminuit’: Handle logging of the fit process done by iminuit.
Copyright (C) 2026 Johannes Sørby Heines
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
- class multifit.loggedminuit.LoggedMinuit(m: Minuit, logfile: TextIO)
Bases:
objectA wrapper around the Minuit class that writes logs to a json file.
Public variables: json_settings: dict – keyword arguments to pass to json.dumps when
writing the logs.
While the logs are human readable, it is usually easier to extract and visualise the relevant data.
- update_infoline()
Update the first line so in gives the count for each function. This relies on the length of the first line staying constant, so using json.dumps is risky.
- class multifit.loggedminuit.MinuitLog(migrad: list, hesse: list, minos: list)
Bases:
objectRead and extract data from the writte log file.