guts-base 1.0.0__tar.gz → 1.0.1__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.

Potentially problematic release.


This version of guts-base might be problematic. Click here for more details.

Files changed (36) hide show
  1. {guts_base-1.0.0 → guts_base-1.0.1}/PKG-INFO +1 -1
  2. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/__init__.py +1 -1
  3. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/sim/ecx.py +7 -2
  4. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base.egg-info/PKG-INFO +1 -1
  5. {guts_base-1.0.0 → guts_base-1.0.1}/pyproject.toml +2 -2
  6. {guts_base-1.0.0 → guts_base-1.0.1}/LICENSE +0 -0
  7. {guts_base-1.0.0 → guts_base-1.0.1}/README.md +0 -0
  8. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/data/__init__.py +0 -0
  9. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/data/expydb.py +0 -0
  10. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/data/generator.py +0 -0
  11. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/data/openguts.py +0 -0
  12. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/data/preprocessing.py +0 -0
  13. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/data/survival.py +0 -0
  14. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/data/time_of_death.py +0 -0
  15. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/data/utils.py +0 -0
  16. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/mod.py +0 -0
  17. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/plot.py +0 -0
  18. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/prob.py +0 -0
  19. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/sim/__init__.py +0 -0
  20. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/sim/base.py +0 -0
  21. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/sim/constructors.py +0 -0
  22. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/sim/mempy.py +0 -0
  23. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/sim/report.py +0 -0
  24. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base/sim/utils.py +0 -0
  25. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base.egg-info/SOURCES.txt +0 -0
  26. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base.egg-info/dependency_links.txt +0 -0
  27. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base.egg-info/entry_points.txt +0 -0
  28. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base.egg-info/requires.txt +0 -0
  29. {guts_base-1.0.0 → guts_base-1.0.1}/guts_base.egg-info/top_level.txt +0 -0
  30. {guts_base-1.0.0 → guts_base-1.0.1}/setup.cfg +0 -0
  31. {guts_base-1.0.0 → guts_base-1.0.1}/tests/test_data_import.py +0 -0
  32. {guts_base-1.0.0 → guts_base-1.0.1}/tests/test_ecx.py +0 -0
  33. {guts_base-1.0.0 → guts_base-1.0.1}/tests/test_from_pymob.py +0 -0
  34. {guts_base-1.0.0 → guts_base-1.0.1}/tests/test_scripted_simulations.py +0 -0
  35. {guts_base-1.0.0 → guts_base-1.0.1}/tests/test_simulations.py +0 -0
  36. {guts_base-1.0.0 → guts_base-1.0.1}/tests/test_symbolic_solve.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: guts_base
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Basic GUTS model implementation in pymob
5
5
  Author-email: Florian Schunck <fluncki@protonmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -4,7 +4,7 @@ from . import data
4
4
  from . import prob
5
5
  from . import plot
6
6
 
7
- __version__ = "1.0.0"
7
+ __version__ = "1.0.1"
8
8
 
9
9
  from .sim import (
10
10
  GutsBase,
@@ -51,12 +51,17 @@ class ECxEstimator:
51
51
  # original observations (especially time), except the ID, which is overwritten
52
52
  # and taken from the x_in dataset
53
53
  pseudo_obs = self.sim.observations.isel(id=[0])
54
- pseudo_obs = pseudo_obs.drop(["exposure","survival"])
54
+ pseudo_obs = pseudo_obs.drop([v for v in pseudo_obs.data_vars.keys()])
55
55
  pseudo_obs["id"] = x_in["id"]
56
56
 
57
57
  self.sim.config.data_structure.survival.observed = False
58
58
  self.sim.observations = pseudo_obs
59
59
 
60
+ # overwrite x_in to make sure that parse_input takes x_in from exposure and
61
+ # does not use the string that is tied to another data variable which was
62
+ # originally present
63
+ self.sim.config.simulation.x_in = ["exposure=exposure"]
64
+
60
65
  # ensure correct coordinate order with x_in and raise errors early
61
66
  self.sim.model_parameters["x_in"] = self.sim.parse_input("x_in", x_in)
62
67
 
@@ -69,7 +74,7 @@ class ECxEstimator:
69
74
  self.sim.coordinates["time"], np.array(time, ndmin=1)
70
75
  ]))
71
76
 
72
- self.sim.model_parameters["y0"] = self.sim.parse_input("y0", drop_dims="time")
77
+ self.sim.model_parameters["y0"] = self.sim.parse_input("y0", drop_dims=["time"])
73
78
  self.sim.dispatch_constructor()
74
79
 
75
80
  self.results = pd.Series({
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: guts_base
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Basic GUTS model implementation in pymob
5
5
  Author-email: Florian Schunck <fluncki@protonmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "guts_base"
7
- version = "1.0.0"
7
+ version = "1.0.1"
8
8
  authors = [
9
9
  { name="Florian Schunck", email="fluncki@protonmail.com" },
10
10
  ]
@@ -48,7 +48,7 @@ import-openguts = "guts_base.data.openguts:create_database_and_import_data"
48
48
  convert-time-of-death-to-openguts = "guts_base.data.time_of_death:time_of_death_to_openguts"
49
49
 
50
50
  [tool.bumpver]
51
- current_version = "1.0.0"
51
+ current_version = "1.0.1"
52
52
  version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
53
53
  commit_message = "bump version {old_version} -> {new_version}"
54
54
  tag_message = "{new_version}"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes