Skip to content
Snippets Groups Projects
Commit b6d7da05 authored by jarsi's avatar jarsi
Browse files

Adapt memory query to support current NEST release

parent cc95a4c3
No related branches found
No related tags found
1 merge request!10Adapt memory query to support current NEST release
......@@ -311,7 +311,10 @@ class Simulation:
"""
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):
return mem['heap']
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