Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for interface #48

Merged
merged 35 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7735214
added session 1 & 2 notebooks
Marsolo1 Mar 11, 2024
cd74fbc
Merge branch 'main' of https://github.com/clement-moulin-frier/vivari…
Marsolo1 Mar 12, 2024
8e692d5
Merge branch 'martial/panel_tutorial' of https://github.com/clement-m…
Marsolo1 Mar 12, 2024
cb2ad87
renamed interface.md
Marsolo1 Mar 12, 2024
d7a6106
started to split quickstart into sessions
Marsolo1 Mar 12, 2024
4eee4f7
Merge branch 'main' of https://github.com/clement-moulin-frier/vivari…
Marsolo1 Mar 13, 2024
4b923d4
stop agents when initiating notebook controller
Marsolo1 Mar 13, 2024
99ccb17
Merge branch 'main' of https://github.com/clement-moulin-frier/vivari…
Marsolo1 Mar 14, 2024
98776dc
added interface test
Marsolo1 Mar 14, 2024
8b27a3b
modified test interface
Marsolo1 Mar 15, 2024
3c67506
changed test interface
Marsolo1 Mar 15, 2024
c30fa3e
test positive callback value
Marsolo1 Mar 15, 2024
ae324e2
modified test interface
Marsolo1 Mar 15, 2024
f0c96e3
Merge branch 'main' of https://github.com/clement-moulin-frier/vivari…
Marsolo1 Mar 26, 2024
4e0581b
test
Marsolo1 Mar 26, 2024
ddce2f0
modified interface test
Marsolo1 Mar 26, 2024
3799d80
fix negative value callback
Marsolo1 Mar 26, 2024
e89f9b8
fix negative callback again
Marsolo1 Mar 26, 2024
c8b51d9
fix negative callback again
Marsolo1 Mar 26, 2024
309aa5f
fix again
Marsolo1 Mar 26, 2024
c213e59
removed curl from interface test
Marsolo1 Mar 26, 2024
5e701a3
fix interface test again
Marsolo1 Mar 26, 2024
11985e2
removed useless imports
Marsolo1 Mar 26, 2024
7a15d61
Merge branch 'main' of https://github.com/clement-moulin-frier/vivari…
Marsolo1 Apr 2, 2024
15742cf
test interface
Marsolo1 Apr 2, 2024
1faa9b4
test interface
Marsolo1 Apr 2, 2024
a6109d5
test interface
Marsolo1 Apr 2, 2024
6496c3c
e
Marsolo1 Apr 2, 2024
6277ae5
test interface
Marsolo1 Apr 2, 2024
b848a21
test interface
Marsolo1 Apr 2, 2024
2ecfb5f
test interface
Marsolo1 Apr 2, 2024
08b5c7a
typo
Marsolo1 Apr 2, 2024
e6095a0
Merge branch 'main' of https://github.com/clement-moulin-frier/vivari…
Marsolo1 Apr 4, 2024
b4b6ecd
Revert wrong changes
corentinlger Apr 9, 2024
b5744a6
Add error checking server/client connection test
corentinlger Apr 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -37,3 +36,11 @@ jobs:
- name: Test with pytest
run: |
pytest
- name: Run server
run: python scripts/run_server.py &
- name: Test interface
run: |
set -e
panel serve scripts/run_interface.py --port 5006 --allow-websocket-origin=localhost:5006 &
sleep 5 &&
curl -I http://localhost:5006
2 changes: 2 additions & 0 deletions vivarium/interface/panel_app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from contextlib import contextmanager

import logging
import numpy as np
import panel as pn

Expand All @@ -11,6 +12,7 @@
from vivarium.controllers.panel_controller import PanelController
from vivarium.simulator.states import EntityType

lg = logging.getLogger(__name__)

pn.extension()

Expand Down
Loading