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

Tutorial_Evoked_Responses_In_The_Visual_Cortex is incorrect

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5
    • None
    • None

    Description

      Reported on Google group by Toygun Ba┼čaklar:

      Hi everyone,

      So I'm new to TVB and dealing with the evoked responses in the visual cortex. So I found this tutorial (https://github.com/the-virtual-brain/tvb-documentation/blob/master/tutorials/Tutorial_Evoked_Responses_In_The_Visual_Cortex.ipynb) and tried to observe the outcome of this. I tried it in both scripting interface and the web based GUI. I did what exactly the tutorial says but after this line,

      rec = (monitors.TemporalAverage(period=1e3 / 2048.), monitors.EEG(projection_matrix_data = pr, period=1e3/2048.))
      

      I get this error:

      Traceback (most recent call last):
        File "<pyshell#8>", line 1, in <module>
          rec = (monitors.TemporalAverage(period=1e3 / 2048.), monitors.EEG(projection_matrix_data = pr, period=1e3/2048.))
      NameError: name 'pr' is not defined
      

      But "pr" is defined in the above code like this

      root_path = os.path.dirname(simulator.__file__)
      proj_mat_path = os.path.join(root_path,'files', "connectivity","o52r00_irp2008", "projection_eeg_1020_62.mat")
      matlab_data = io.matlab.loadmat(proj_mat_path)
      eeg_projection = matlab_data["ProjectionMatrix"]
          
      pr = projections.ProjectionRegionEEG()
      pr.projection_data = eeg_projection
      

      I can't solve the problem. Can you help me ?

      Also when I tried to apply this tutorial on web based GUI, It also gives me an error like this:

      'Discrete equation' has no attribute '_pattern'

      And I read all the manuals for the web based GUI, I believe I did not do nothing wrong. Although when I select the "Spatiotemporal stimulus" as "None", It gives me default EEG signals.

      Thanks in advance

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                lia.domide Lia Domide
                tester TVB Testing environment (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 1 day Original Estimate - 1 day
                    1d
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 day, 1 hour
                    1d 1h