Skip to content

Commit 6d9d6cc

Browse files
committed
aligning open PRs regarding the change from trial to condition
1 parent 6604012 commit 6d9d6cc

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

netpyne_ui/experiments.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def get_model_specification(name: str, trial: str) -> dict:
154154
"""
155155
path = get_trial_output_path(name, trial, fallback=True)
156156
if path is None or not os.path.exists(path):
157-
raise ExperimentsError(f"Trial file {path} not found")
157+
raise ExperimentsError(f"Condition file {path} not found")
158158

159159
with open(path, "r") as f:
160160
trial_output = json.load(f)
@@ -273,7 +273,7 @@ def onerror(func, path, exc_info):
273273

274274

275275
def _create_base_model_trial() -> model.Trial:
276-
return model.Trial(name="Trial 1", id=BASE_TRIAL_ID)
276+
return model.Trial(name="Condition 1", id=BASE_TRIAL_ID)
277277

278278

279279
def _create_trials(experiment: model.Experiment) -> List[model.Trial]:
@@ -315,7 +315,7 @@ def _create_trials(experiment: model.Experiment) -> List[model.Trial]:
315315

316316
filename = combinations["filenames"][combIdx][1:]
317317
indices = combinations["indices"][combIdx]
318-
name = f"Trial {combIdx + 1}"
318+
name = f"Condition {combIdx + 1}"
319319

320320
trials.append(
321321
model.Trial(name=name, params=params, indices=indices, id=filename)

netpyne_ui/netpyne_geppetto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def viewExperimentResult(self, payload: dict):
138138

139139
file = experiments.get_trial_output_path(name, trial)
140140
if file is None or not os.path.exists(file):
141-
return utils.getJSONError(f"Couldn't find output file of trial. Please take a look at the simulation log.", "")
141+
return utils.getJSONError(f"Couldn't find output file of condition. Please take a look at the simulation log.", "")
142142

143143
if self.doIhaveInstOrSimData()['haveInstance']:
144144
sim.clearAll()

webapp/components/experiments/ExperimentView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function EnhancedTableHead (props) {
269269
id: 'name',
270270
numeric: false,
271271
disablePadding: true,
272-
label: 'TRIAL NAME',
272+
label: 'EXPERIMENTAL CONDITIONS',
273273
},
274274
...paramHeaders,
275275
];
@@ -564,7 +564,7 @@ const ExperimentView = (props) => {
564564
experimentFinished={experimentFinished}
565565
/>
566566
<TableBody>
567-
{stableSort(filteredRows, getComparator(order, orderBy))
567+
{stableSort(filteredRows, getComparator(order, 'indices'))
568568
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
569569
.map((row) => (
570570
<TableRow tabIndex={-1} key={row.name}>

webapp/components/general/PlotViewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import HTMLViewer from '../index';
2+
import HTMLViewer from './HTMLViewer';
33

44
const PlotViewer = ({ key, id, method }) => {
55
const data = window.plotCache[id];

webapp/components/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,6 @@ export const SelectCellTemplate = connect(
357357
}),
358358
)(_SelectCellTemplate);
359359

360-
export const PlotViewer = connect(
361-
null,
362-
null,
363-
)(_PlotViewer);
364360
// ---------------------------------------------------------------------------------------- //
365361

366362
// DEFAULTS

webapp/dev_package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"react-redux": "^7.2.0",
3737
"react-sortable-tree": "^2.8.0",
3838
"redux": "^4.1.0",
39-
"three": "0.111.0",
39+
"sass": "^1.49.0",
4040
"sass-loader": "^7.2.0",
41-
"node-sass": "^4.0.0"
41+
"three": "0.111.0"
4242
},
4343
"resolutions": {
4444
"@material-ui/core": "4.11.4"

webapp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"react-redux": "^7.2.0",
3737
"react-sortable-tree": "^2.8.0",
3838
"redux": "^4.1.0",
39-
"three": "0.111.0",
39+
"sass": "^1.49.0",
4040
"sass-loader": "^7.2.0",
41-
"node-sass": "^5.0.0"
41+
"three": "0.111.0"
4242
},
4343
"resolutions": {
4444
"@material-ui/core": "4.11.4"

webapp/update-geppetto-ui.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ set -e
44

55
app=$(pwd)
66

7+
cd ../src/geppetto-meta/geppetto.js/geppetto-core
8+
yarn && yarn build:dev && yarn publish:yalc
9+
10+
cd $app
711
cd ../src/geppetto-meta/geppetto.js/geppetto-ui
812
yarn && yarn build:dev && yarn publish:yalc
913

0 commit comments

Comments
 (0)