ckoerber / lsqfit-gui

Graphical user interface for performing Bayesian Inference (Bayesian fits).
https://lsqfitgui.readthedocs.io
MIT License
1 stars 0 forks source link

[WIP] App wrapper #34

Closed ckoerber closed 3 years ago

ckoerber commented 3 years ago

Slightly more clean setup API for the GUI class to hide standard dependencies.

app = Dash(...)
fit_gui.setup(app)

now becomes

fit_gui.setup_app()

Which hides the Dash setup.

It is also possible to pass a preconfigured app. Furthermore

fit_gui.run_server(...)

now configures an app if not done before.

This required changing a few unit tests, and should be merged after the docs PR #18.

A few more (mental) tests are needed.