def _receptive_field_window(self):
        """
        Open a Receptive Field plot for the unit currently
        identified by a right click.
        """
        if 'plot' in self._right_click_info:
            plot = self._right_click_info['plot']
            sheet = topo.sim[plot.plot_src_name]
            center_x, center_y = self._right_click_info['coords'][1]
            r, c = self._right_click_info['coords'][0]

            # RFHACK:
            # just matrixplot for whatever generators have the views
            for g in topo.sim.objects(GeneratorSheet).values():
                try:
                    view = g.sheet_views[('RFs', sheet.name, center_x,
                                          center_y)]
                    matrixplot(
                        view.view()[0],
                        title=
                        ("Receptive Field of %s unit (%d,%d) at coord (%3.0f, %3.0f) at time %s"
                         % (sheet.name, r, c, center_x, center_y,
                            topo.sim.timestr(view.timestamp))))

                except KeyError:
                    # maybe lose this warning
                    topo.sim.warning(
                        "No RF measurements are available yet for input_sheet %s; run the Receptive Field plot for that input_sheet to see the RF."
                        % g.name)
Ejemplo n.º 2
0
    def _receptive_field_window(self):
        """
        Open a Receptive Field plot for the unit currently
        identified by a right click.
        """
        if 'plot' in self._right_click_info:
            plot = self._right_click_info['plot']
            sheet = topo.sim[plot.plot_src_name]
            center_x,center_y=self._right_click_info['coords'][1]
            r,c = self._right_click_info['coords'][0]

            # RFHACK:
            # just matrixplot for whatever generators have the views
            for g in topo.sim.objects(GeneratorSheet).values():
                try:
                    view = sheet.views.rfs[g.name][center_x, center_y]
                    matrixplot(view.last.data,title=("Receptive Field of %s unit (%d,%d) at coord (%3.0f, %3.0f) at time %s" %
                                                    (sheet.name,r,c,center_x,center_y,topo.sim.timestr(view.timestamp))))
                except:
                    # maybe lose this warning
                    topo.sim.warning("No RF measurements are available yet for input_sheet %s; run the Receptive Field plot for that input_sheet to see the RF."%g.name)
Ejemplo n.º 3
0
 def matrixplot_trace(self):
     """
     Matrixplot membrane potential trace of the unit designated by the
     trace_coords list.
     """
     matrixplot(self.membrane_potential_trace, aspect=40)
Ejemplo n.º 4
0
 def matrixplot_trace(self):
     """
     Matrixplot membrane potential trace of the unit designated by the
     trace_coords list.
     """
     matrixplot(self.membrane_potential_trace,aspect=40)