multifit command line interface
- Usage:
multifit [–version] [–copying] [–help] COMMAND [ARGS…]
- Options:
- -h, --help
Print the help screen for the given command and exit.
- --version
Print version number and exit.
- --copying
Print copyright notice and exit.
- List of commands:
- config:
Generate a new config file.
- fit:
Fit a set of spectra.
- gate:
Run a GUI for gating on coincidence spectra.
- plot:
Plot a set of spectra, optionally including a fit result.
See multifit help COMMAND for more information on a specific command.
Copyright (C) 2026 Johannes Sørby Heines
Command config
Generate a multifit configuration file.
Usage: multifit config
- -h, --help
Print this help screen and exit.
Copyright (C) 2026 Johannes Sørby Heines
Command plot
Plot a dataset and (optionally) a fit result.
- Usage:
multifit plot CONFIG [LOG] [–color MAP [–import MODULE]] [–xlabel LABEL] [–ylabel LABEL] [–callnumber N] [–background INDEX] [–no-normalize]
- Positional arguments:
- CONFIG:
yaml configuration file.
- LOG:
json log file generated by multifit fit.
- Options:
- -h, --help
Print this help screen and exit.
- -x, --xlabel LABEL
Label on the x axis. [default: value]
- -y, --ylabel LABEL
Label on the y axis. [default: counts per bin]
- -c, --color MAP
Name of the colormap to use. [default: viridis]
- -i, --import MODULE
Use a third party colormap from MODULE.
- --no-normalize
Don’t nomralize the histogram.
- Fit selection options (only relevant if LOG is provided):
- --callnumber N
Number of the migrad iteration to plot. Starts at 1, supports reverse indexing. [default: -1]
- -b, --background INDEX
Use this component of the model cdf as the background when plotting.
Copyright (C) 2026 Johannes Sørby Heines
Command fit
Fit a density to multiple histograms simulatneously.
- Usage:
multifit fit CONFIG LOG [-v] [-r | -a] [–minos PARAM…] [options]
- Positional arguments:
- CONFIG:
yaml configuration file.
- LOG:
json log file. By default, raises an error if the file already exists.
- Options:
- -h, --help
Show this help screen and exit.
- -v, --verbose
Print runtime information.
- -r, --recreate
Replace an existing log file.
- -a, --append
Append to an existing log file.
- --tries N
Number of times to run the migrad minimiser before giving up. [default: 5]
- --strategy N
Strategy to use for the minimisation. Choices are 0 (fast), 1, 2 (careful). See the iminuit documentation for details. [default: 1]
- –minos PARAM… Calculate minos errors for the given parameters,
or use ‘all’ for all parameters (not usually necessary). This can take several minutes.
- --retries N
Rerun migrad this number of times after a minimum has been found. [default: 0]
- --no-delete
Keep the log file after an exception. The state of this file is undefined.
Copyright (C) 2026 Johannes Sørby Heines
- Usage:
multifit gate CONFIG [options]
- General options:
- -h, --help
Print this help screen and exit.
- -e, --export PATH
Export location for gated spectra. If not given, uses the location of the data files. This can be changed before each export.
- Plotting options:
- -c, --color MAP
Name of the colormap to use. [default: cmc.lajolla_r]
- -x, --xlabel LABEL
Label for the x axis. [default: value]
- -y, --ylabel LABEL
Label for the y axis. [default: counts per bin]
- -g, --gridsep VALUE
Fixed separation of the gridlines on the y axis.
- Debugging options:
- --printargs
Print arguments and exit.
Copyright (C) 2026 Johannes Sørby Heines