-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
30 lines (22 loc) · 878 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FOLDER_PATH= .
SRC_PATH=./ecg_qc
TEST_PATH=./tests
generate_datasets_folder:
mkdir -p $(FOLDER_PATH)/datasets/0_physionet_ecg; \
mkdir -p $(FOLDER_PATH)/datasets/1_ecg_and_annotation_creation; \
mkdir -p $(FOLDER_PATH)/datasets/2_dataset_creation; \
mkdir -p $(FOLDER_PATH)/datasets/3_ml_patients_consolidation; \
download_phyisonet_ecgs:
$(FOLDER_PATH)/ecg_qc-methodology/0_physionet_ecg/download_phyisonet_ecgs.sh
ecg_and_annotation_creation_batch:
. $(FOLDER_PATH)/env/bin/activate; \
$(FOLDER_PATH)/ecg_qc-methodology/1_ecg_and_annotation_creation/ecg_and_annotation_creation_batch.sh
ml_datasets_batch:
. $(FOLDER_PATH)/env/bin/activate; \
$(FOLDER_PATH)/ecg_qc-methodology/2_ml_dataset_creation/ml_dataset_creation_batch.sh
test:
pytest -s -vvv $(TEST_PATH)
test_all:
python -m pytest
coverage:
pytest --cov=$(SRC_PATH) --cov-report html $(TEST_PATH)