Skip to content

Commit

Permalink
Debug coreneuron direct mode lfp reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jorblancoa committed Jul 4, 2024
1 parent be7bcd2 commit 5880956
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions neurodamus/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,10 @@ def _coreneuron_direct_mode(config: _SimConfig, run_conf):
logging.warning("--coreneuron-direct-mode not valid for save/restore, "
"continue with file mode")
direct_mode = False
if run_conf.get("LFPWeightsPath"):
logging.warning("--coreneuron-direct-mode not valid for LFP, "
"continue with file mode")
direct_mode = False
# if run_conf.get("LFPWeightsPath"):
# logging.warning("--coreneuron-direct-mode not valid for LFP, "
# "continue with file mode")
# direct_mode = False

if direct_mode:
logging.info("Run CORENEURON direct mode without writing model data to disk")
Expand Down
4 changes: 3 additions & 1 deletion neurodamus/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ def enable_reports(self):
CoreConfig.write_report_count(len(reports_conf))

for rep_name, rep_conf in reports_conf.items():
logging.info(" * [REPORT] %s: %s", rep_name, rep_conf["Target"])
target_spec = TargetSpec(rep_conf["Target"])
target = self._target_manager.get_target(target_spec)

Expand All @@ -842,7 +843,8 @@ def enable_reports(self):

# With coreneuron direct mode, enable fast membrane current calculation for i_membrane
if SimConfig.coreneuron_direct_mode and \
"i_membrane" in rep_params.report_on or rep_params.rep_type == "lfp":
("i_membrane" in rep_params.report_on or rep_params.rep_type == "lfp"):
logging.info("->>>>>>>>>> Enabling fast membrane current calculation for i_membrane in CORENEURON DIRECT MODE!!!")
Nd.cvode.use_fast_imem(1)

if not SimConfig.use_coreneuron or rep_params.rep_type == "Synapse":
Expand Down

0 comments on commit 5880956

Please sign in to comment.