Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-1711

Generalize History implementation in Simulator

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: TVB-Simulator
    • Labels:
      None

      Description

      The computation of delayed state data is currently hard coded in the the simulator implementation, and should be factored out into a history module where multiple implementations shall be provided (dense, sparse, etc.).

      The interface for a history implementation will look something like

      class IHistory:

      def update(self, time: float, state: ndarray):
      pass

      def query(self, time: float) -> ndarray:
      pass

      In the current implementation, the history is backed by a buffer, and updates & queries are not interpolated wrt. time, but nearest. For more advanced cases, such as local connectivity with delays, it will be imperative to have interpolation wrt. time, hence the use of time and not sample / index / step.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                marmaduke.woodman Marmaduke Woodman
                Reporter:
                marmaduke.woodman Marmaduke Woodman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 week
                  1w
                  Remaining:
                  0m
                  Logged:
                  Time Not Required
                  Not Specified