bindmc 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. bindmc/main.py +67 -0
  2. bindmc/webgui/__init__.py +0 -0
  3. bindmc/webgui/app.py +54 -0
  4. bindmc/webgui/classes/BindingConstant.py +23 -0
  5. bindmc/webgui/classes/ChemicalShiftParam.py +40 -0
  6. bindmc/webgui/classes/Component.py +111 -0
  7. bindmc/webgui/classes/ExptData.py +485 -0
  8. bindmc/webgui/classes/ExptDataType.py +92 -0
  9. bindmc/webgui/classes/FitResult.py +173 -0
  10. bindmc/webgui/classes/MCMCSim.py +232 -0
  11. bindmc/webgui/classes/Model.py +86 -0
  12. bindmc/webgui/classes/RawData.py +36 -0
  13. bindmc/webgui/classes/Simulation.py +104 -0
  14. bindmc/webgui/classes/UIBindings.py +19 -0
  15. bindmc/webgui/classes/__init__.py +28 -0
  16. bindmc/webgui/components/__init__.py +29 -0
  17. bindmc/webgui/components/base.py +24 -0
  18. bindmc/webgui/components/bayes.py +689 -0
  19. bindmc/webgui/components/bayes_priors.py +351 -0
  20. bindmc/webgui/components/binding_model.py +330 -0
  21. bindmc/webgui/components/body.py +276 -0
  22. bindmc/webgui/components/data_gen.py +419 -0
  23. bindmc/webgui/components/data_import.py +450 -0
  24. bindmc/webgui/components/data_model.py +609 -0
  25. bindmc/webgui/components/fitting.py +886 -0
  26. bindmc/webgui/components/graph.py +649 -0
  27. bindmc/webgui/components/header.py +124 -0
  28. bindmc/webgui/components/simulation.py +385 -0
  29. bindmc/webgui/export/__init__.py +0 -0
  30. bindmc/webgui/export/notebook_exporter.py +727 -0
  31. bindmc/webgui/state/__init__.py +1 -0
  32. bindmc/webgui/state/statemanager.py +2043 -0
  33. bindmc/webgui/utils.py +322 -0
  34. bindmc-0.1.0.dist-info/METADATA +22 -0
  35. bindmc-0.1.0.dist-info/RECORD +37 -0
  36. bindmc-0.1.0.dist-info/WHEEL +5 -0
  37. bindmc-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,29 @@
1
+ # webgui/components/__init__.py
2
+ from .base import BaseComponent
3
+ from .header import BindToolsHeader
4
+ from .data_gen import DataGenerationPanel
5
+ from .data_import import DataImportPanel
6
+ from .data_model import DataModelPanel
7
+ from .simulation import SimulationPanel
8
+ from .binding_model import BindingModelPanel
9
+ from .fitting import FittingPanel
10
+ from .bayes import BayesPanel
11
+ from .graph import Graph
12
+ from .body import Body
13
+
14
+ # from .data_generation import DataGenerationPanel
15
+ # from .data_import import DataImportPanel
16
+
17
+ __all__ = [
18
+ "BaseComponent",
19
+ "BindToolsHeader",
20
+ "DataGenerationPanel",
21
+ "DataModelPanel",
22
+ "DataImportPanel",
23
+ "SimulationPanel",
24
+ "BindingModelPanel",
25
+ "FittingPanel",
26
+ "BayesPanel",
27
+ "Graph",
28
+ "Body",
29
+ ]
@@ -0,0 +1,24 @@
1
+ from abc import ABC, abstractmethod
2
+ from ..state import StateManager
3
+
4
+ class BaseComponent(ABC):
5
+ """Base class for all UI components."""
6
+
7
+ def __init__(self, state_manager: StateManager):
8
+ self.sm: StateManager = state_manager
9
+ self.container = None
10
+ self.setup_nicegui()
11
+ self.setup_bindings()
12
+
13
+ @abstractmethod
14
+ def setup_nicegui(self):
15
+ """Set up the UI elements."""
16
+ pass
17
+
18
+ def setup_bindings(self):
19
+ """Set up data bindings and listeners. Override if needed."""
20
+ pass
21
+
22
+ def refresh(self):
23
+ """Refresh the component. Override if needed."""
24
+ pass