Skip to content

Commit 372a531

Browse files
committed
Merge branch 'development' into appBar
2 parents d9951d6 + bcb4a8d commit 372a531

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ node_js:
88
env:
99
global:
1010
secure: dn0FPQ5IG4M/3kdwnyI78ElQ308Vc3QnKAvkWfwMFb8QxDqxQdnTo7AV1qTMtbLrDNkeEWIgi4nc7jmXNtvGTwOfhAULVh6606Qs5B+ezTdwzajbbFMI8SKQx/pnTojOMu8dx7V4lMoR/YWcojR0VC1IWVC62TGbSB1k5BDGgH0=
11+
before_install:
12+
- sudo apt-get install -y xserver-xorg-dev libxext-dev libxi-dev
1113
install:
1214
- git clone --quiet https://github.com/MetaCell/geppetto-netpyne.git
1315
- cd geppetto-netpyne

netpyne_ui/netpyne_geppetto.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import threading
1313
import time
1414
import traceback
15-
15+
import re
1616

1717
from netpyne import specs, sim, analysis
1818
from netpyne.specs.utils import validateFunction
@@ -365,11 +365,11 @@ def rename(self, path, oldValue,newValue):
365365
command = 'sim.rename('+path+',"'+oldValue+'","'+newValue+'")'
366366
logging.debug('renaming '+command)
367367
eval(command)
368-
369368
for model, synched_component in list(GeppettoJupyterGUISync.synched_models.items()):
370-
if model != '' and oldValue in model:
369+
if model != '' and oldValue in model and path in model: #
371370
GeppettoJupyterGUISync.synched_models.pop(model)
372-
newModel = model.replace(oldValue,newValue)
371+
newModel = re.sub("(['])(?:(?=(\\?))\2.)*?\1", lambda x:x.group(0).replace(oldValue,newValue, 1), model)
372+
logging.debug("Rename funct - Model is "+model+" newModel is "+newModel)
373373
GeppettoJupyterGUISync.synched_models[newModel]=synched_component
374374

375375
def getPlotSettings(self, plot):

utilities/install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os, sys
66
from shutil import copyfile
77

8-
branch = "development"
8+
branch = None
99

1010
#by default clones branch (which can be passed as a parameter python install.py branch test_branch)
1111
#if branch doesnt exist clones the default_branch
@@ -26,7 +26,7 @@ def checkout(folder, default_branch, cwdp):
2626
os.chdir(newPath)
2727
python_git=subprocess.Popen("git branch -a",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
2828
outstd,errstd=python_git.communicate()
29-
if branch in str(outstd):
29+
if branch and branch in str(outstd):
3030
subprocess.call(['git', 'checkout', branch], cwd='./')
3131
else:
3232
subprocess.call(['git', 'checkout', default_branch], cwd='./')

0 commit comments

Comments
 (0)