Skip to content
Snippets Groups Projects
Unverified Commit 5284c6e6 authored by Sacha van Albada's avatar Sacha van Albada Committed by GitHub
Browse files

Merge pull request #10 from jarsi/Fix_memory_thisJob

Adapt memory query to support current NEST release
parents cc95a4c3 b6d7da05
No related branches found
No related tags found
No related merge requests found
...@@ -311,7 +311,10 @@ class Simulation: ...@@ -311,7 +311,10 @@ class Simulation:
""" """
Use NEST's memory wrapper function to record used memory. Use NEST's memory wrapper function to record used memory.
""" """
mem = nest.sli_func('memory_thisjob') try:
mem = nest.sli_func('memory_thisjob')
except AttributeError:
mem = nest.ll_api.sli_func('memory_thisjob')
if isinstance(mem, dict): if isinstance(mem, dict):
return mem['heap'] return mem['heap']
else: else:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment