pypharm 1.4.0__tar.gz → 1.4.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.
- {pypharm-1.4.0 → pypharm-1.4.1}/PKG-INFO +4 -3
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/models/pbpk.py +39 -10
- {pypharm-1.4.0 → pypharm-1.4.1}/README.md +3 -3
- {pypharm-1.4.0 → pypharm-1.4.1}/pypharm.egg-info/PKG-INFO +4 -3
- {pypharm-1.4.0 → pypharm-1.4.1}/setup.py +1 -1
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/__init__.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/algorithms/__init__.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/algorithms/country_optimization.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/algorithms/country_optimization_v2.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/algorithms/country_optimization_v3.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/algorithms/genetic_optimization.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/algorithms/gold_digger_optimization.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/constants.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/models/__init__.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/PyPharm/models/compartment_models.py +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/pypharm.egg-info/SOURCES.txt +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/pypharm.egg-info/dependency_links.txt +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/pypharm.egg-info/requires.txt +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/pypharm.egg-info/top_level.txt +0 -0
- {pypharm-1.4.0 → pypharm-1.4.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pypharm
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: Module for solving pharmacokinetic problems
|
|
5
5
|
Home-page: https://github.com/Krash13/PyPharm
|
|
6
6
|
Author: Krash13
|
|
@@ -235,7 +235,7 @@ res = model(90, d=5700, compartment_number=0)
|
|
|
235
235
|
Если оба параметра не заданы, то модель выраздается
|
|
236
236
|
в простую BaseCompartmentModel.
|
|
237
237
|
|
|
238
|
-
**5) Модель
|
|
238
|
+
**5) Модель ReleaseCompartmentModel**
|
|
239
239
|
|
|
240
240
|
Данная модель учитывает поправку на высвобождение
|
|
241
241
|
ЛВ в модель вводятся дополнительные параметры:
|
|
@@ -576,7 +576,7 @@ of variables.
|
|
|
576
576
|
If both parameters are not set, then the model is deleted
|
|
577
577
|
into a simple BaseCompartmentModel.
|
|
578
578
|
|
|
579
|
-
**5) The
|
|
579
|
+
**5) The ReleaseCompartmentModel model**
|
|
580
580
|
|
|
581
581
|
This model takes into account the release adjustment
|
|
582
582
|
medicinal substance additional parameters are introduced into the model:
|
|
@@ -692,3 +692,4 @@ print(c)
|
|
|
692
692
|
|
|
693
693
|
The data is stored in list format [current_iteration, x0, ... , xn, f], works only for the country_optimization algorithm.
|
|
694
694
|
|
|
695
|
+
|
|
@@ -21,17 +21,11 @@ class PBPKmod:
|
|
|
21
21
|
_organs = ['lung', 'heart', 'brain', 'muscle', 'adipose', 'skin', 'bone', 'kidney',
|
|
22
22
|
'liver', 'gut', 'spleen', 'stomach', 'pancreas', 'venous_blood', 'arterial_blood']
|
|
23
23
|
_cl_organs = ['kidney', 'liver']
|
|
24
|
-
_optim = False
|
|
25
|
-
know_k = {}
|
|
26
|
-
know_cl = {}
|
|
27
24
|
|
|
28
|
-
def __init__(self, know_k=
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if know_cl is not None:
|
|
33
|
-
self.know_cl = know_cl
|
|
34
|
-
|
|
25
|
+
def __init__(self, know_k={}, know_cl={}, numba_option=False):
|
|
26
|
+
self.know_k = know_k
|
|
27
|
+
self.know_cl = know_cl
|
|
28
|
+
self._optim = False
|
|
35
29
|
self.numba_option = numba_option
|
|
36
30
|
if numba_option:
|
|
37
31
|
self.cnst_v_rat = Dict.empty(
|
|
@@ -373,3 +367,38 @@ class PBPKmod:
|
|
|
373
367
|
dC_kidney_dt, dC_liver_dt, dC_gut_dt, dC_spleen_dt, dC_stomach_dt, dC_pancreas_dt, dC_venouse_dt,
|
|
374
368
|
dC_arterial_dt]).astype(np.float64)
|
|
375
369
|
return y_new
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
model = PBPKmod(numba_option=True)
|
|
373
|
+
print(model.get_unknown_params())
|
|
374
|
+
model.load_optimization_data(
|
|
375
|
+
time_exp=[12, 60, 3 * 60, 5* 60, 15 * 60, 24 * 60],
|
|
376
|
+
dict_c_exp = {ORGAN_NAMES.LIVER: [103.2 * 1e-6, 134.54 * 1e-6, 87.89 * 1e-6, 81.87 * 1e-6, 45.83 * 1e-6, 28.48 * 1e-6],
|
|
377
|
+
ORGAN_NAMES.LUNG: [26.96 * 1e-6, 22.67 * 1e-6, 15.51 * 1e-6, 12.07 * 1e-6, 4.53 * 1e-6, 0 * 1e-6],
|
|
378
|
+
ORGAN_NAMES.SPLEEN: [11.84 * 1e-6, 12.22 * 1e-6, 8.52 * 1e-6, 7.01 * 1e-6, 3.65 * 1e-6, 2.16 * 1e-6]
|
|
379
|
+
},
|
|
380
|
+
start_c_in_venous=150 * 1e-3 / MODEL_CONST['rat']['venous_blood']['V']
|
|
381
|
+
)
|
|
382
|
+
|
|
383
|
+
result = model.optimize(
|
|
384
|
+
method='country_optimization',
|
|
385
|
+
Xmin=17 * [0.0001],
|
|
386
|
+
Xmax=17 * [5],
|
|
387
|
+
M=20,
|
|
388
|
+
N=25,
|
|
389
|
+
n=[1, 10],
|
|
390
|
+
p=[0.00001, 2],
|
|
391
|
+
m=[1, 8],
|
|
392
|
+
k=8,
|
|
393
|
+
l=3,
|
|
394
|
+
ep=[0.2, 0.4],
|
|
395
|
+
tmax=3,
|
|
396
|
+
printing=True,
|
|
397
|
+
)
|
|
398
|
+
model.update_know_params(result)
|
|
399
|
+
|
|
400
|
+
result = model(max_time=24 * 60, start_c_in_venous=150 * 1e-3 / MODEL_CONST['rat']['venous_blood']['V'], step=0.1)
|
|
401
|
+
|
|
402
|
+
model_furs = PBPKmod(numba_option=True)
|
|
403
|
+
|
|
404
|
+
print()
|
|
@@ -219,7 +219,7 @@ res = model(90, d=5700, compartment_number=0)
|
|
|
219
219
|
Если оба параметра не заданы, то модель выраздается
|
|
220
220
|
в простую BaseCompartmentModel.
|
|
221
221
|
|
|
222
|
-
**5) Модель
|
|
222
|
+
**5) Модель ReleaseCompartmentModel**
|
|
223
223
|
|
|
224
224
|
Данная модель учитывает поправку на высвобождение
|
|
225
225
|
ЛВ в модель вводятся дополнительные параметры:
|
|
@@ -560,7 +560,7 @@ of variables.
|
|
|
560
560
|
If both parameters are not set, then the model is deleted
|
|
561
561
|
into a simple BaseCompartmentModel.
|
|
562
562
|
|
|
563
|
-
**5) The
|
|
563
|
+
**5) The ReleaseCompartmentModel model**
|
|
564
564
|
|
|
565
565
|
This model takes into account the release adjustment
|
|
566
566
|
medicinal substance additional parameters are introduced into the model:
|
|
@@ -674,4 +674,4 @@ print(c)
|
|
|
674
674
|
# ShareableList([4, 3.5192100752465563, 1.4158559227257506, 1.7264077213115414, 0.008336751860551, 0.2549196311342251, 0.5160375718404234, 6.915499993374695, 2.944744649331201, 0.5, 1.907294741996761], name='wnsm_0c50aa90')
|
|
675
675
|
```
|
|
676
676
|
|
|
677
|
-
The data is stored in list format [current_iteration, x0, ... , xn, f], works only for the country_optimization algorithm.
|
|
677
|
+
The data is stored in list format [current_iteration, x0, ... , xn, f], works only for the country_optimization algorithm.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pypharm
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: Module for solving pharmacokinetic problems
|
|
5
5
|
Home-page: https://github.com/Krash13/PyPharm
|
|
6
6
|
Author: Krash13
|
|
@@ -235,7 +235,7 @@ res = model(90, d=5700, compartment_number=0)
|
|
|
235
235
|
Если оба параметра не заданы, то модель выраздается
|
|
236
236
|
в простую BaseCompartmentModel.
|
|
237
237
|
|
|
238
|
-
**5) Модель
|
|
238
|
+
**5) Модель ReleaseCompartmentModel**
|
|
239
239
|
|
|
240
240
|
Данная модель учитывает поправку на высвобождение
|
|
241
241
|
ЛВ в модель вводятся дополнительные параметры:
|
|
@@ -576,7 +576,7 @@ of variables.
|
|
|
576
576
|
If both parameters are not set, then the model is deleted
|
|
577
577
|
into a simple BaseCompartmentModel.
|
|
578
578
|
|
|
579
|
-
**5) The
|
|
579
|
+
**5) The ReleaseCompartmentModel model**
|
|
580
580
|
|
|
581
581
|
This model takes into account the release adjustment
|
|
582
582
|
medicinal substance additional parameters are introduced into the model:
|
|
@@ -692,3 +692,4 @@ print(c)
|
|
|
692
692
|
|
|
693
693
|
The data is stored in list format [current_iteration, x0, ... , xn, f], works only for the country_optimization algorithm.
|
|
694
694
|
|
|
695
|
+
|
|
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
|