lsqfit-gui

git repo docs

Graphical user interface for lsqfit using dash.

See here for the documentation.

Install

Run

pip install [-e] .

Usage

Either directly use a fit object to spawn a server

# some_script.py
from lsqfit import nonlinear_fit
from lsqfitgui import run_server
...
fit = nonlinear_fit(data, fcn=fcn, prior=prior)
run_server(fit)

or use the console script entry point pointing to a gvar pickeled fit (and a fit function which is not stored in the pickled file)

#other_script.py
import gvar as gv
from lsqfit import nonlinear_fit

def fcn(x, p):
    y = ...
    return y

...

fit = nonlinear_fit(data, fcn=fcn, prior=prior)
gv.dump(fit, "fit.p")

and run

lsqfitgui [--function other_script.py:fcn] fit.p

Both commands will spawn a local server hosting the lsqfit interface.

Advanced configuration

It is possible to also set up fit meta information, i.e., allowing different fit models. See also the example directory for more details.

The following script spawns the server which generated the above image

python example/entrypoint.py

2021

lsqfit-gui

less than 1 minute read

Graphical user interface for lsqfit using dash.

Back to top ↑

2020

spacetime-plots

2 minute read

A python noteboook for plotting points and lines, expressly written for making spacetime diagrams. To get started with a tutorial, launch the binder inst...

Back to top ↑