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.
Files changed (42) hide show
  1. {bindmc-0.1.7 → bindmc-0.1.8}/PKG-INFO +1 -1
  2. {bindmc-0.1.7 → bindmc-0.1.8}/pyproject.toml +1 -1
  3. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/data_model.py +15 -7
  4. {bindmc-0.1.7 → bindmc-0.1.8}/README.md +0 -0
  5. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/__init__.py +0 -0
  6. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/__main__.py +0 -0
  7. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/main.py +0 -0
  8. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/Class model.md +0 -0
  9. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/TODO.md +0 -0
  10. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/TODO_old.md +0 -0
  11. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/__init__.py +0 -0
  12. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/app.py +0 -0
  13. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/BindingConstant.py +0 -0
  14. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/ChemicalShiftParam.py +0 -0
  15. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/Component.py +0 -0
  16. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/ExptData.py +0 -0
  17. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/ExptDataType.py +0 -0
  18. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/FitResult.py +0 -0
  19. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/MCMCSim.py +0 -0
  20. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/Model.py +0 -0
  21. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/RawData.py +0 -0
  22. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/Simulation.py +0 -0
  23. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/UIBindings.py +0 -0
  24. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/classes/__init__.py +0 -0
  25. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/__init__.py +0 -0
  26. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/base.py +0 -0
  27. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/bayes.py +0 -0
  28. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/bayes_priors.py +0 -0
  29. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/binding_model.py +0 -0
  30. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/body.py +0 -0
  31. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/data_gen.py +0 -0
  32. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/data_import.py +0 -0
  33. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/fitting.py +0 -0
  34. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/graph.py +0 -0
  35. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/header.py +0 -0
  36. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/components/simulation.py +0 -0
  37. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/default_models.json +0 -0
  38. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/export/__init__.py +0 -0
  39. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/export/notebook_exporter.py +0 -0
  40. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/state/__init__.py +0 -0
  41. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/state/statemanager.py +0 -0
  42. {bindmc-0.1.7 → bindmc-0.1.8}/src/bindmc/webgui/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bindmc
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Keywords: chemistry,analytical chemistry,binding constants,supramolecular
5
5
  Author: Martin Peeks
6
6
  Author-email: Martin Peeks <martinp23@googlemail.com>, m.peeks@unsw.edu.au
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "bindmc"
7
- version = "0.1.7"
7
+ version = "0.1.8"
8
8
  readme = "README.md"
9
9
  keywords = ["chemistry", "analytical chemistry", "binding constants", "supramolecular"]
10
10
  classifiers = [
@@ -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
- if np.isclose(el, 0):
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] = delta_for_eqn[ij] / s.value
311
+ delta_for_eqn[ij] = val / s.value
302
312
  else:
303
- delta_for_eqn[ij] = 1
304
-
305
- # self.sm.active_expt_data.limiting_shifts[f'{self.sm.species[i]}_free',shift].value
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