Skip to content

Commit a9f7b85

Browse files
authored
Merge pull request #708 from MetaCell/fix/plots-paths-osb2
Fix paths that prevent lfpykit plots from showing on osb
2 parents 0efb8f5 + bd91fe2 commit a9f7b85

2 files changed

Lines changed: 19 additions & 14 deletions

File tree

netpyne_ui/mod_utils.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,22 @@ def is_loaded_mechanisms():
2828

2929
def loadModMechFiles(compileMod, modFolder):
3030
# Create Symbolic link
31-
if compileMod:
32-
modPath = os.path.join(str(modFolder), "x86_64")
33-
34-
if os.path.exists(modPath):
35-
shutil.rmtree(modPath)
3631

37-
os.chdir(modFolder)
38-
subprocess.call(["nrnivmodl"])
39-
os.chdir('..')
40-
41-
try:
42-
neuron.load_mechanisms(str(modFolder))
43-
except:
44-
raise
32+
if compileMod:
33+
try:
34+
owd = os.getcwd()
35+
modPath = os.path.join(str(modFolder), "x86_64")
36+
37+
if os.path.exists(modPath):
38+
shutil.rmtree(modPath)
39+
40+
os.chdir(modFolder)
41+
subprocess.call(["nrnivmodl"])
42+
os.chdir('..')
43+
44+
try:
45+
neuron.load_mechanisms(str(modFolder))
46+
except:
47+
raise
48+
finally:
49+
os.chdir(owd)

webapp/Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { LoadingSpinner } from '@metacell/geppetto-meta-client/components';
88
import { NetPyNE } from './components';
99
import theme from './theme';
1010
import store from './redux/store';
11-
import '@metacell/geppetto-meta-ui/flex-layout/style/dark.scss';
11+
import '@metacell/geppetto-meta-ui/flex-layout/style/dark.css';
1212

1313
global.GEPPETTO_CONFIGURATION = require('./GeppettoConfiguration.json');
1414
const { initGeppetto } = require('@metacell/geppetto-meta-client/GEPPETTO');

0 commit comments

Comments
 (0)