tempor.clinic.const module¶
- class tempor.clinic.const.SessionStateKeys(current_sample, current_timestep, interaction_state, data_field_prefix, time_index_prefix)[source]¶
Bases:
tupleCreate new instance of SessionStateKeys(current_sample, current_timestep, interaction_state, data_field_prefix, time_index_prefix)
- class tempor.clinic.const.Defaults(data_dir, assets_dir, logo, icon, time_index_field, key_sample_selector, key_edit_form_static, key_edit_form_temporal)[source]¶
Bases:
tupleCreate new instance of Defaults(data_dir, assets_dir, logo, icon, time_index_field, key_sample_selector, key_edit_form_static, key_edit_form_temporal)
- class tempor.clinic.const.DataSample(*, static: dict[str, Any], temporal: list[dict[str, Any]], event: list[dict[str, Any]])[source]¶
Bases:
BaseModelCreate a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'event': FieldInfo(annotation=List[Dict[str, Any]], required=True), 'static': FieldInfo(annotation=Dict[str, Any], required=True), 'temporal': FieldInfo(annotation=List[Dict[str, Any]], required=True)}¶ Metadata about the fields defined on the model, mapping of field names to [
FieldInfo][pydantic.fields.FieldInfo].This replaces
Model.__fields__from Pydantic V1.
-
model_config : ClassVar[ConfigDict] =