示例#1
0
文件: nodes.py 项目: mgeplf/snap
def _get_population_name(h5_filepath):
    populations = libsonata.NodeStorage(h5_filepath).population_names
    if len(populations) != 1:
        raise BlueSnapError(
            "Only single-population node collections are supported (found: %d)" % len(populations)
        )
    return list(populations)[0]
示例#2
0
文件: nodes.py 项目: MFSY/snap
 def storage(self):
     """Access to the libsonata node storage."""
     return libsonata.NodeStorage(self._h5_filepath)