Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #40 #42

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bluepysnap/edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, config, circuit):
self._circuit = circuit
self._populations = {}

@cached_property
wizmer marked this conversation as resolved.
Show resolved Hide resolved
@property
def storage(self):
"""Access to the libsonata edge storage."""
return libsonata.EdgeStorage(self._h5_filepath)
Expand Down Expand Up @@ -109,7 +109,7 @@ def __init__(self, edge_storage, population_name):
self._edge_storage = edge_storage
self.name = population_name

@cached_property
@property
def _population(self):
return self._edge_storage.storage.open_population(self.name)

Expand Down
4 changes: 2 additions & 2 deletions bluepysnap/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, config, circuit):
self._circuit = circuit
self._populations = {}

@cached_property
@property
def storage(self):
"""Access to the libsonata node storage."""
return libsonata.NodeStorage(self._h5_filepath)
Expand Down Expand Up @@ -172,7 +172,7 @@ def _data(self):
"""Collected data for the node population as a pandas.DataFrame."""
return self._node_storage.load_population_data(self.name)

@cached_property
@property
def _population(self):
return self._node_storage.storage.open_population(self.name)

Expand Down