pyglotaran 0.8.0
“The Glotaran fitting engine.”
Module is one triple-quoted Python literalArchive contains at least 120 members
SHA-256a9c547f76cae47a2027e9589c8dfcaefa10554545fc74d0d6d6a7e73a310b110
Evidence
1"""Glotaran package root."""
2
3from __future__ import annotations
4
5from glotaran.plugin_system.base_registry import load_plugins
6
7load_plugins()
8
9__version__ = "0.8.0"
1from __future__ import annotations
2
3from typing import TYPE_CHECKING
4from typing import Any
5from typing import ClassVar
6from typing import Literal
7
8import numpy as np
9import xarray as xr
10
11from glotaran.model.element import Element
12
13if TYPE_CHECKING:
14 from glotaran.model.data_model import DataModel
15 from glotaran.typing.types import ArrayLike
16
17
⋯14 lines
32 ) -> tuple[list[str], ArrayLike]:
33 clp_label = [self.clp_label()]
34 matrix = np.ones((model_axis.size, 1), dtype=np.float64)
35 return clp_label, matrix
36
⋯9 lines
1"""K-Matrix."""
2
3from __future__ import annotations
4
5import itertools
6from functools import reduce
7from typing import TYPE_CHECKING
8from typing import Annotated
9
10import numpy as np
11from pydantic import BeforeValidator
12from pydantic import PlainSerializer
13from scipy.linalg import eig
14from scipy.linalg import solve
15
16from glotaran.model.item import Item
17from glotaran.model.item import ParameterType
18
19if TYPE_CHECKING:
20 from glotaran.typing.types import ArrayLike
21
22
23def convert_string_key_to_tuple(value: str | tuple[str, str]) -> tuple[str, str]:
24 """Ensure the value is a tuple of two strings."""
25 if isinstance(value, str):
26 to_compartment, _, f …
98:4… """
99
100 size = len(self.compartments)
101 array = np.zeros((size, size), dtype=np.float64)
102 for (to_comp, from_comp), rate in self.rates.items():
103 to_idx = self.compartments.index(to …
154:27… rtment used to order the matrix.
155 initial_concentration: np.ndarray
156 The initial concentration.
157 """
158 if concentrations is not None and self.is_sequential(concentrations) …
Showing the top 5 files — 7 more files (54 regions) not shown.
No evidence locations were recorded for this file. Raw result