Skip to content

Commit 132aab3

Browse files
StevenSongpaolodi
andauthored
clinical and full ECG view from partners ecg (#211)
* clinical and full view ECG plotting * add msttcorefonts to docker image * tmaps * import order, top panel func name, remove constrained layout warning * Pre-requirements not to have errors * Better comment for pre_requirements * period Co-authored-by: Paolo Di Achille <[email protected]>
1 parent 050f085 commit 132aab3

File tree

5 files changed

+371
-17
lines changed

5 files changed

+371
-17
lines changed

docker/vm_boot_images/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ RUN apt-get install python3-tk libgl1-mesa-glx libxt-dev -y
3333

3434
# Requirements for the tensorflow project
3535
RUN pip3 install --upgrade pip
36+
RUN pip3 install -r pre_requirements.txt
3637
RUN pip3 install -r tensorflow-requirements.txt
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# These are packages required to install the packages in tensorflow_requirements.txt.
2+
# pip currently fails to recognize them as necessary for installation.
3+
cvxopt
4+
cvxpy>=1.0
5+
cython>=0.29
6+
numexpr
7+
numpy
8+
osqp!=0.6.0,!=0.6.1
9+
pandas>=0.21
10+
scipy!=1.3.0,>=1.0
11+
scikit-learn<0.23,>=0.22.0
12+
pytest
13+
pytest-cov
14+
setuptools_scm

docker/vm_boot_images/config/ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
# Other necessities
44
apt-get update
5-
apt-get install -y wget unzip curl python-pydot python-pydot-ng graphviz
5+
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
6+
apt-get install -y wget unzip curl python-pydot python-pydot-ng graphviz ttf-mscorefonts-installer

ml4cvd/arguments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def parse_args():
200200
parser.add_argument('--inspect_model', default=False, action='store_true', help='Plot model architecture, measure inference and training speeds.')
201201
parser.add_argument('--inspect_show_labels', default=True, action='store_true', help='Plot model architecture with labels for each layer.')
202202
parser.add_argument('--alpha', default=0.5, type=float, help='Alpha transparency for t-SNE plots must in [0.0-1.0].')
203+
parser.add_argument('--plot_mode', default='clinical', choices=['clinical', 'full'], help='ECG view to plot for partners ECGs.')
203204

204205
# Training optimization options
205206
parser.add_argument('--num_workers', default=multiprocessing.cpu_count(), type=int, help="Number of workers to use for every tensor generator.")

0 commit comments

Comments
 (0)