Skip to content

Commit 639bd05

Browse files
committed
Merge branch 'feature/152' of https://github.com/MetaCell/NetPyNE-UI into feature/152
2 parents 1686cea + 656d842 commit 639bd05

4 files changed

Lines changed: 22 additions & 14 deletions

File tree

requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ certifi==2020.4.5.2
1010
certipy==0.1.3
1111
cffi==1.14.0
1212
chardet==3.0.4
13-
conda==4.8.2
14-
conda-package-handling==1.6.0
1513
cryptography==2.9.2
1614
cycler==0.10.0
1715
decorator==4.4.2
@@ -97,4 +95,4 @@ urllib3==1.25.9
9795
webencodings==0.5.1
9896
widgetsnbextension==3.5.1
9997
wrapt==1.12.1
100-
zipp==3.1.0
98+
zipp==3.1.0

webapp/components/topbar/menuConfiguration.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,31 @@ const firstItemCustom = { fontWeight: 'bold', paddingLeft: `calc(${gutter} / 2)`
6161

6262
const firstItemStyle = { standard: { ...topLevelMenuItemStyle.standard, ...firstItemCustom }, hover: { ...topLevelMenuItemStyle.hover, ...firstItemCustom } }
6363

64+
65+
const tutorialsList = {
66+
"tut1": "Tut 1: Simple cell network",
67+
"tut2": "Tut 2: Detailed cell network",
68+
"tut3": "Tut 3: Multiscale network",
69+
"tut3_ip3high": "Tut 3: Multiscale network (high IP3)"
70+
}
71+
6472
export const getTutorials = () => {
6573
const { tuts } = window
6674
if (!tuts) {
6775
return []
6876
}
69-
return tuts.sort().map(tutFile => (
70-
{
71-
label: tutFile.replace(".py", "").replace("gui", '').replace("_", " "),
77+
return tuts.sort().map(tutFile => {
78+
let tutName = tutFile.replace(".py", "").replace("gui", '').replace("_", "");
79+
let tutLabel = tutorialsList[tutName] !== undefined ? tutorialsList[tutName] : tutName;
80+
return {
81+
label: tutLabel,
7282
icon: "",
7383
action: {
7484
handlerAction: "redux",
7585
parameters: [loadTutorial, tutFile]
7686
}
7787
}
78-
))
88+
})
7989

8090
}
8191

@@ -338,15 +348,15 @@ export const getModelMenu = props => (
338348
label: "Explore view options",
339349
list: [
340350
{
341-
label: "Automatic instantiation",
351+
label: "Automatic creation",
342352
icon: props.automaticInstantiation ? checkedIcon : 'fa',
343353
action: {
344354
handlerAction: "redux",
345355
parameters: [changeAutomaticInstantiation, true]
346356
}
347357
},
348358
{
349-
label: "Manual instantiation",
359+
label: "Manual creation",
350360
icon: !props.automaticInstantiation ? checkedIcon : 'fa',
351361
action: {
352362
handlerAction: "redux",
@@ -374,4 +384,4 @@ export const getModelMenu = props => (
374384
},
375385

376386
]
377-
)
387+
)

webapp/constants.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export const TOPBAR_CONSTANTS = {
4848
NEW_MODEL: 'NEW_MODEL',
4949
UPLOAD_FILES: 'UPLOAD_FILES',
5050
DOWNLOAD_FILES: 'DOWNLOAD_FILES',
51-
CREATE_NETWORK: 'Instantiate',
52-
CREATE_AND_SIMULATE_NETWORK:'Instantiate and simulate',
53-
SIMULATE: 'Simulate',
51+
CREATE_NETWORK: 'Create network',
52+
CREATE_AND_SIMULATE_NETWORK:'Create and simulate network',
53+
SIMULATE: 'Simulate network',
5454
EXPLORE_EXISTING_NETWORK:'Explore model',
5555
BACK_TO_EDITION: 'Back to edit',
5656
NEW_PAGE: 'NEW_PAGE'

webapp/redux/reducers/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const GENERAL_DEFAULT_STATE = {
1111
dialogOpen: false,
1212
dialogTitle: '',
1313
dialogMessage: '',
14-
automaticSimulation: true,
14+
automaticSimulation: false,
1515
automaticInstantiation: true
1616
};
1717

0 commit comments

Comments
 (0)