Skip to content

Commit d042422

Browse files
committed
Merge branch 'development' of github.com:MetaCell/NetPyNE-UI into fix/bug-fastdelete
2 parents f89555f + e09838e commit d042422

26 files changed

Lines changed: 1381 additions & 170 deletions

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,28 @@ jobs:
102102
npm run Save_Open_File_test
103103
env:
104104
CI: true
105+
RxD-test:
106+
# The type of runner that the job will run on
107+
runs-on: ubuntu-20.04
108+
container: lironavon/docker-puppeteer-container:14.16.0
109+
env:
110+
CI: true
111+
steps:
112+
- uses: actions/checkout@v1
113+
- name: Use Node.js ${{ matrix.node-version }}
114+
uses: actions/setup-node@v1
115+
with:
116+
node-version: ${{ matrix.node-version }}
117+
cache-dependency-path: frontend/e2e/tests/package-lock.json
118+
- name: Test for RxD plot
119+
run: |
120+
cd tests/frontend/e2e
121+
#install dependencies
122+
npm ci
123+
# run RxD Plot test
124+
npm run RxD_test
125+
env:
126+
CI: true
105127
Tutorial_1-SmokeTest:
106128
# The type of runner that the job will run on
107129
runs-on: ubuntu-20.04

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ venv
3030
webapp/build
3131
webapp/.yalc
3232
node_modules
33-
sa_nyhead.mat
33+
sa_nyhead.mat
34+
workspace

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ WORKDIR $FOLDER
3636
COPY --chown=1000:1000 requirements.txt requirements.txt
3737
RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip && pip install -r requirements.txt --prefer-binary
3838

39-
COPY --chown=$NB_UID:1000 . .
40-
COPY --from=jsbuild --chown=$NB_UID:1000 /app webapp
39+
COPY --chown=jovyan:1000 . .
40+
COPY --from=jsbuild --chown=jovyan:1000 /app webapp
4141

4242

4343
RUN jupyter nbextension install --py --symlink --sys-prefix jupyter_geppetto

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
![Screenshot](https://github.com/MetaCell/NetPyNE-UI/raw/documentation/docs/netpyneui.png)
99

10-
This repository hosts the User Interface for [NetPyNE](http://www.neurosimlab.org/netpyne/). NetPyNE is a python package
10+
This repository hosts the User Interface for [NetPyNE](https://netpyne.v2.opensourcebrain.org/). NetPyNE is a python package
1111
to facilitate the development, parallel simulation and analysis of biological neuronal networks using the NEURON
1212
simulator.
1313

@@ -116,4 +116,4 @@ docker-compose up --abort-on-container-exit --exit-code-from netpyne-ui-e2e
116116
## Additional Notes
117117

118118
NetPyNE-UI is being developed in collaboration with the [Neurosim Lab](http://neurosimlab.org/). See
119-
the [Wiki](https://github.com/MetaCell/NetPyNE-UI/wiki) for more info!
119+
the [Wiki](https://github.com/MetaCell/NetPyNE-UI/wiki) for more info!

netpyne_ui/mod_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def loadModMechFiles(compileMod, modFolder, forceRecompile=False):
5151
neuron.load_mechanisms(str(modFolder))
5252
except:
5353
logging.exception("Error loading mechanisms")
54+
if not forceRecompile:
55+
logging.info("Trying to recompile mod files")
56+
loadModMechFiles(True, modFolder, forceRecompile=True)
5457
raise
5558
finally:
5659
os.chdir(owd)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
22
launch: {
33
headless: true,
4-
args: ['--no-sandbox', '--disable-setuid-sandbox'],
54
defaultViewport: {
65
width: 1300,
76
height: 1024
87
},
98
timeout: 120000
109
},
10+
exitOnPageError: false,
1111
}

tests/frontend/e2e/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"Tutorial_4_test":"jest --verbose Tut#4_smoke ",
1616
"Control_Panel_test": "jest --verbose ControlPanel ",
1717
"Save_Open_File_test": "jest --verbose SaveOpenFile",
18+
"RxD_test": "jest --verbose RxD",
1819
"lint": "eslint --fix --ext .js,.jsx ."
1920
},
2021
"dependencies": {

tests/frontend/e2e/tests/EEG_and_Dipole_Tut#1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ beforeAll(async () => {
6060

6161
describe('EEG and Dipole Plot Test using Tutorial#1', () => {
6262

63-
it.skip('Open new page', async () => {
63+
it('Open new page', async () => {
6464

6565
console.log('Opening a new NetPyNE page')
6666

0 commit comments

Comments
 (0)