Ticket #157 (closed task: fixed)

Opened 7 months ago

Last modified 1 month ago

Split `common` into multiple files

Reported by: apdavison Assigned to: 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.

Change History

02/16/10 11:00:06 changed by apdavison

  • status changed from new to assigned.

the errors part was done in r711

05/12/10 17:43:55 changed by apdavison

this is pretty much done. Possibly is_conductance(), check_weight() and check_delay() should still go, but the rest definitely belongs in common.

08/03/10 18:10:23 changed by apdavison

  • status changed from assigned to closed.
  • resolution set to fixed.

Good enough.