Ticket #157 (closed task: fixed)
Split `common` into multiple files
| Reported by: | apdavison | Owned by: | apdavison |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7.0 |
| Component: | common | Version: | trunk |
| Keywords: | Cc: |
Description
The common module contains too many conceptually-different things. "common" can refer both to classes/functions that are independent of a particular simulator (for example, the Space class), and to classes/functions that provide a common implementation of parts of the simulator-dependent elements of the API (for example the Population class, which should be subclassed by each backend module). The former should be used by all backends. The latter (common implementation) may be used for convenience, but a backend could implement the API without having recourse to any of the common implementation.
I propose:
- to move Error classes into an errors module
- to move the Space class into a space module
- to move the standard model machinery into a standardmodels module
The various utility functions could perhaps be moved into a core module.
