Support for various types of System History #74
Replies: 1 comment
|
The latest version, 1.0RC2, addresses heads-on most of the issues previously raised in this thread! Low-level support for history keeping, of both tabular and non-tabular data, has long been available in Life123, provided by the python classes And now, with the latest release, high-level support is also made available by means of the new python class Now, the various simulation modules, such as
The new high-level python classes for history keeping, typically for use by the various simulation modules rather than by the end user, are:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
As of the current version 1.0RC1, support for convenient history-keeping is provided by the
UniformCompartmentclass, which facilitates the creation and management of 2 types of history:self.history, of typeCollectionTabular, and primarily created thru calls to the methodadd_snapshot()self.rate_history, of typeCollectionTabular, and created thru calls toself.rate_history.store()Defaults:
UniformCompartmentsingle_compartment_react()single_compartment_react()Currently, there's no way to completely disable snapshots, other than to request a very high value for "frequency" in the dictionary passed as the argument
snapshotstosingle_compartment_react()By contrast, 1D systems (class
BioSim1D) and 2D systems (classBioSim2D) currently provide no substantial support for automated history keeping.BioSim1Doffers a method calledadd_snapshot(), but largely it is the user's responsibility to create and maintain any desired data snapshots.Also, for any simulation of reaction/diffusion or reaction for 1D or 2D systems, no history support is provided by the lower-level class
UniformCompartment, because the calls to it don't go thru the methodsingle_compartment_react().Considerations and Design Ideas:
Low-level support for the maintenance of tabular data, and data in other formats, is provided by the classes
CollectionTabular,CollectionArray, andCollection. However, no general or standardized high-level support for the management of historical data is currently offered across Life123 : it's the responsibility of individual modules (best exemplified byUniformCompartment), or the user, to create and manage the desired data snapshots.Possible future directions might involve a module or modules for high-level management of various types of histories. Support provided by them might include operations such as:
Note: low-level diagnostic data (meant for debugging and development, rather than for general users) is a separate entity, and is currently supported by the class
Diagnostics(but only for reaction data.)All reactions