diff --git a/refl1d/webview/server/cli.py b/refl1d/webview/server/cli.py index 2e8ca824..6eab9dda 100644 --- a/refl1d/webview/server/cli.py +++ b/refl1d/webview/server/cli.py @@ -10,18 +10,13 @@ from refl1d import __version__ # Register the refl1d model loader -# from refl1d.bumps_interface import fitplugin -# from .profile_plot import plot_sld_profile_plotly +# and the serialized model migrations +from refl1d.bumps_interface import fitplugin +from bumps.cli import install_plugin -CLIENT_PATH = Path(__file__).parent.parent / "client" +install_plugin(fitplugin) -# from dataclasses import dataclass -# from bumps.webview.server.cli import BumpsOptions, SERIALIZERS -# @dataclass -# class Refl1DOptions(BumpsOptions): -# serializer: SERIALIZERS = "dataclass" -# headless: bool = True -# bumps_cli.OPTIONS_CLASS = Refl1DOptions +CLIENT_PATH = Path(__file__).parent.parent / "client" def main():