python - 如何以二进制格式存储来自 NEST 模拟器的记录数据?
问题描述
我正在尝试将尖峰检测器数据以二进制格式写入 .gdf 文件,但我不能。
我binary
将spikedetector的参数设置为True
(我使用检查过nest.GetStatus
),但文件是用ASCII编写的:
neurons = nest.Create('iaf_psc_alpha', 5)
sr = nest.Create('spike_recorder')
nest.Connect(neurons, sr)
sr.SetStatus({'binary': True})
我正在使用 NEST 2.18
解决方案
NEST 2.18 和 2.20 的文档在这方面具有误导性。该binary
选项无效(它ios::binary
在打开文件时设置标志,但这不会产生重大影响)。
如果要以二进制格式编写尖峰信号,则需要切换到 NEST 3.0 并通过设置记录器的属性来使用sionlib 记录后端:record_to
neurons = nest.Create('iaf_psc_alpha', 5)
sr = nest.Create('spike_recorder')
nest.Connect(neurons, sr)
sr.SetStatus({'record_to': 'sionlib'})
文档中提供了用于记录模拟的指南。
推荐阅读
- docker - 跨主机和 docker 容器的权限
- sql - 查看未运行 - percentile_cont
- python - 发生这种情况是因为存在 NaN 吗?
- c# - 如何在 Repository .Net Web API 中使用多个 DataContexts(DbContext)
- java - 如何检查Java接口是否有实现?
- node.js - 获取不是由我的帐户托管的广播的实时聊天
- python - CSV 输入上的 Heatmap.py IndexError
- ruby-on-rails - 为什么圆形 CI 无法找到 rails 凭据但规范测试在本地工作?
- python - SQLite BUSY 提交回调
- azure-active-directory - 洞察/共享返回 403 而洞察/使用返回成功响应