Skip to content

Commit 08b6887

Browse files
committed
Remove head model preemptive loading
1 parent 73c04d5 commit 08b6887

2 files changed

Lines changed: 1 addition & 25 deletions

File tree

netpyne_ui/__init__.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,7 @@
1111
"https://d8bf7e40eec34cb9891f6dd8207b5e83@sentry.metacell.us/6"
1212
)
1313

14-
def init_eeg():
15-
import sys
16-
from netpyne_ui.constants import HERE
17-
# FIXES library asking for input to download
18-
sys.stdin = open(os.path.join(HERE, "resources/stdin.txt"),'r')
19-
from lfpykit.eegmegcalc import NYHeadModel
20-
try:
21-
NYHeadModel() # Downloads the model if does not exist
22-
except:
23-
logging.error("Error initializing the EEG head model", exc_info=True)
24-
25-
from multiprocessing import Process
26-
thread = Process(target = init_eeg)
27-
thread.start()
14+
2815

2916

3017
RouteManager.add_controller(api.NetPyNEController)

netpyne_ui/netpyne_geppetto.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,6 @@ def __init__(self):
8080
if not simulations.local.is_running():
8181
[experiments.set_to_error(e) for e in running_exps]
8282

83-
# sys.stdin = open(os.path.join(constants.HERE, "stdin.txt"),'r') # FIXES library asking for input to download -- eg lfpykit models
84-
85-
# from ipykernel import kernelbase
86-
87-
# def raw_input(self, prompt=''):
88-
# return "y"
89-
# kernelbase.Kernel.raw_input = raw_input
90-
91-
# from lfpykit.eegmegcalc import NYHeadModel
92-
# NYHeadModel()
93-
9483
def getData(self):
9584
return {
9685
"metadata": metadata,

0 commit comments

Comments
 (0)