bindmc 0.1.7__tar.gz → 0.1.8__tar.gz
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.
- {bindmc-0.1.7 → bindmc-0.1.8}/PKG-INFO +1 -1
- {bindmc-0.1.7 → bindmc-0.1.8}/pyproject.toml +1 -1
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/data_model.py +15 -7
- {bindmc-0.1.7 → bindmc-0.1.8}/README.md +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/__init__.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/__main__.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/main.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/Class model.md +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/TODO.md +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/TODO_old.md +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/__init__.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/app.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/BindingConstant.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/ChemicalShiftParam.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/Component.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/ExptData.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/ExptDataType.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/FitResult.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/MCMCSim.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/Model.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/RawData.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/Simulation.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/UIBindings.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/__init__.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/__init__.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/base.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/bayes.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/bayes_priors.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/binding_model.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/body.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/data_gen.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/data_import.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/fitting.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/graph.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/header.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/simulation.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/default_models.json +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/export/__init__.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/export/notebook_exporter.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/state/__init__.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/state/statemanager.py +0 -0
- {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/utils.py +0 -0
|
@@ -292,19 +292,27 @@ class DataModelPanel(BaseComponent):
|
|
|
292
292
|
delta_for_eqn = active_expt.delta_to_spec[i].copy()
|
|
293
293
|
|
|
294
294
|
for ij, el in enumerate(delta_for_eqn):
|
|
295
|
-
|
|
295
|
+
val = 0.0
|
|
296
|
+
if el is not None:
|
|
297
|
+
if hasattr(el, "value"):
|
|
298
|
+
val = el.value
|
|
299
|
+
else:
|
|
300
|
+
try:
|
|
301
|
+
val = float(el)
|
|
302
|
+
except (TypeError, ValueError):
|
|
303
|
+
val = 0.0
|
|
304
|
+
|
|
305
|
+
if np.isclose(val, 0):
|
|
296
306
|
delta_for_eqn[ij] = 0
|
|
297
307
|
else:
|
|
298
308
|
if (f"{self.sm.species[ij]}_free", shift) in active_expt.limiting_shifts:
|
|
299
309
|
s = active_expt.limiting_shifts[f"{self.sm.species[ij]}_free", shift]
|
|
300
310
|
if s.value:
|
|
301
|
-
delta_for_eqn[ij] =
|
|
311
|
+
delta_for_eqn[ij] = val / s.value
|
|
302
312
|
else:
|
|
303
|
-
delta_for_eqn[ij] = 1
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
# delta_for_eqn[delta_for_eqn != 0] = 1
|
|
313
|
+
delta_for_eqn[ij] = 1.0
|
|
314
|
+
else:
|
|
315
|
+
delta_for_eqn[ij] = val
|
|
308
316
|
|
|
309
317
|
value = self.vec_to_conc_expression(
|
|
310
318
|
delta_for_eqn, [f"{x}_free" for x in self.sm.species]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|