From e24f06feac5b07992e89ed124bb56d2109352242 Mon Sep 17 00:00:00 2001
From: pgleeson
Date: Tue, 20 Feb 2024 20:06:06 +0000
Subject: [PATCH] Add slight delay in generate network when
extra_lems_components present
---
neuromllite/NetworkGenerator.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/neuromllite/NetworkGenerator.py b/neuromllite/NetworkGenerator.py
index 0e2182c..ed5fbb5 100644
--- a/neuromllite/NetworkGenerator.py
+++ b/neuromllite/NetworkGenerator.py
@@ -11,6 +11,7 @@
import numpy as np
import os
import random
+import time
import lems.api as lems # from pylems
@@ -913,6 +914,7 @@ def generate_neuroml2_from_network(
if len(extra_lems_components.components) > 0:
extra_lems_components.export_to_file(extra_lems_file)
+ time.sleep(0.5)
if validate and format == "xml":
from pyneuroml import pynml