""" Kinetic Image Dataset Descriptor"""
from glotaran.model import DatasetDescriptor
from glotaran.model import model_attribute
[docs]@model_attribute(
properties={
"initial_concentration": {"type": str, "allow_none": True},
"irf": {"type": str, "allow_none": True},
"baseline": {"type": bool, "allow_none": True},
}
)
class KineticImageDatasetDescriptor(DatasetDescriptor):
[docs] def get_k_matrices(self):
return [mat for mat in [cmplx.full_k_matrix() for cmplx in self.megacomplex] if mat]
[docs] def compartments(self):
compartments = []
for k in self.get_k_matrices():
compartments += k.involved_compartments()
return list(set(compartments))