Plots all spike records inside of ``spike_record``. Keeps unique plots for all unique tags that are given. :param spike_record: Dictionary of spikes to be rasterized. :param tag: A unique tag to associate the data with. :param step: The step of the pipeline.
(
self,
spike_record: Dict[str, torch.Tensor],
tag: str = "spike",
step: int = None,
)
| 210 | reward_ax.autoscale_view() |
| 211 | |
| 212 | def plot_spikes( |
| 213 | self, |
| 214 | spike_record: Dict[str, torch.Tensor], |
| 215 | tag: str = "spike", |
| 216 | step: int = None, |
| 217 | ) -> None: |
| 218 | # language=rst |
| 219 | """ |
| 220 | Plots all spike records inside of ``spike_record``. Keeps unique |
| 221 | plots for all unique tags that are given. |
| 222 | |
| 223 | :param spike_record: Dictionary of spikes to be rasterized. |
| 224 | :param tag: A unique tag to associate the data with. |
| 225 | :param step: The step of the pipeline. |
| 226 | """ |
| 227 | if tag not in self.plots: |
| 228 | self.plots[tag] = plot_spikes(spike_record) |
| 229 | else: |
| 230 | s_im, s_ax = self.plots[tag] |
| 231 | self.plots[tag] = plot_spikes(spike_record, ims=s_im, axes=s_ax) |
| 232 | |
| 233 | def plot_voltages( |
| 234 | self, |
nothing calls this directly
no test coverage detected