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

number of step of the simulation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.6
    • Fix Version/s: None
    • Component/s: TVB-Simulator
    • Labels:
    • Environment:
      python 3.6

      Description

      When I try to do step by step simulation, I get a problems.

      I propose to change the line 391 of simulator file : 

      n_steps = int(math.ceil(self.simulation_length / self.integrator.dt))

      by the following line :

      n_steps = numpy.rint(self.simulation_length / self.integrator.dt).astype(int)

      The change is to round at the nearest interger and not the highest integer.
      This modification avoids error when the floating number is convert to integer.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              marmaduke.woodman Marmaduke Woodman
              Reporter:
              lionel.kusch Lionel Kusch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified