nina-m-m
commited on
Commit
β’
9e4b4a3
1
Parent(s):
44cdef4
Refactor deprecated code
Browse files- src/{demo.py β deprecated/__init__.py} +0 -0
- src/{configs.py β deprecated/configs.py} +0 -0
- src/{conversion.py β deprecated/conversion.py} +0 -0
- src/{ecg_feature_extraction.py β deprecated/ecg_feature_extraction.py} +0 -0
- src/{ecg_preprocessing.py β deprecated/ecg_preprocessing.py} +0 -0
- src/{ecg_processing.py β deprecated/ecg_processing.py} +3 -3
- src/{pipeline.py β deprecated/pipeline.py} +3 -6
- src/{pipeline_wrapper.py β deprecated/pipeline_wrapper.py} +3 -3
- src/{pydantic_models.py β deprecated/pydantic_models.py} +1 -1
- src/{utils.py β deprecated/utils.py} +0 -0
src/{demo.py β deprecated/__init__.py}
RENAMED
File without changes
|
src/{configs.py β deprecated/configs.py}
RENAMED
File without changes
|
src/{conversion.py β deprecated/conversion.py}
RENAMED
File without changes
|
src/{ecg_feature_extraction.py β deprecated/ecg_feature_extraction.py}
RENAMED
File without changes
|
src/{ecg_preprocessing.py β deprecated/ecg_preprocessing.py}
RENAMED
File without changes
|
src/{ecg_processing.py β deprecated/ecg_processing.py}
RENAMED
@@ -3,12 +3,12 @@ import pandas as pd
|
|
3 |
|
4 |
import neurokit2 as nk
|
5 |
|
6 |
-
from .ecg_feature_extraction import get_hrv_features, normalize_features
|
7 |
-
from .utils import cut_out_window, create_windows
|
8 |
|
9 |
pd.set_option('display.float_format', '{:.6f}'.format)
|
10 |
|
11 |
-
from .logger import setup_logger
|
12 |
logger = setup_logger(__name__)
|
13 |
|
14 |
|
|
|
3 |
|
4 |
import neurokit2 as nk
|
5 |
|
6 |
+
from src.deprecated.ecg_feature_extraction import get_hrv_features, normalize_features
|
7 |
+
from src.deprecated.utils import cut_out_window, create_windows
|
8 |
|
9 |
pd.set_option('display.float_format', '{:.6f}'.format)
|
10 |
|
11 |
+
from src.logger import setup_logger
|
12 |
logger = setup_logger(__name__)
|
13 |
|
14 |
|
src/{pipeline.py β deprecated/pipeline.py}
RENAMED
@@ -1,9 +1,6 @@
|
|
1 |
-
|
2 |
-
from
|
3 |
-
|
4 |
-
from src.conversion import csv_to_pandas
|
5 |
-
from src.ecg_processing import process_batch
|
6 |
-
from src.pydantic_models import ECGConfig, ECGSample
|
7 |
|
8 |
|
9 |
class PreTrainedPipeline():
|
|
|
1 |
+
from src.deprecated.conversion import csv_to_pandas
|
2 |
+
from src.deprecated.ecg_processing import process_batch
|
3 |
+
from src.deprecated.pydantic_models import ECGConfig, ECGSample
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
class PreTrainedPipeline():
|
src/{pipeline_wrapper.py β deprecated/pipeline_wrapper.py}
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
from transformers import Pipeline
|
2 |
|
3 |
-
from src.conversion import csv_to_pandas
|
4 |
-
from src.pydantic_models import ECGConfig, ECGSample
|
5 |
-
from src.ecg_processing import process_batch
|
6 |
|
7 |
|
8 |
class MyPipeline(Pipeline):
|
|
|
1 |
from transformers import Pipeline
|
2 |
|
3 |
+
from src.deprecated.conversion import csv_to_pandas
|
4 |
+
from src.deprecated.pydantic_models import ECGConfig, ECGSample
|
5 |
+
from src.deprecated.ecg_processing import process_batch
|
6 |
|
7 |
|
8 |
class MyPipeline(Pipeline):
|
src/{pydantic_models.py β deprecated/pydantic_models.py}
RENAMED
@@ -6,7 +6,7 @@ from uuid import UUID, uuid4
|
|
6 |
|
7 |
from pydantic import BaseModel, Field, model_validator
|
8 |
|
9 |
-
from .configs import SignalEnum, WindowSlicingMethodEnum, NormalizationMethodEnum
|
10 |
|
11 |
|
12 |
class ECGSample(BaseModel):
|
|
|
6 |
|
7 |
from pydantic import BaseModel, Field, model_validator
|
8 |
|
9 |
+
from src.deprecated.configs import SignalEnum, WindowSlicingMethodEnum, NormalizationMethodEnum
|
10 |
|
11 |
|
12 |
class ECGSample(BaseModel):
|
src/{utils.py β deprecated/utils.py}
RENAMED
File without changes
|