Skip to content

Commit 7fbdce2

Browse files
committed
add: library structure change. loader, transform, feature, context, events
1 parent 511215e commit 7fbdce2

36 files changed

+69
-37
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
# Inputs #
55
inputs/
6+
real-world-testing/
67

78
### Python ###
89
# Byte-compiled / optimized / DLL files

README.md

Lines changed: 26 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,32 @@ Besides that multiple engineering specific methods are utilized to make it fast
66

77
## Features | Structure
88

9-
```
10-
├── timeseries_shaper
11-
│ ├── base.py
12-
│ ├── calculator
13-
│ │ └── numeric_calc.py
14-
│ ├── cycles
15-
│ │ ├── cycle_processor.py
16-
│ │ └── cycles_extractor.py
17-
│ ├── events
18-
│ │ ├── outlier_detection.py
19-
│ │ ├── statistical_process_control.py
20-
│ │ ├── tolerance_deviation.py
21-
│ │ └── value_mapping.py
22-
│ ├── filter
23-
│ │ ├── boolean_filter.py
24-
│ │ ├── custom_filter.py
25-
│ │ ├── datetime_filter.py
26-
│ │ ├── numeric_filter.py
27-
│ │ └── string_filter.py
28-
│ ├── functions
29-
│ │ └── lambda_func.py
30-
│ ├── loader
31-
│ │ ├── metadata
32-
│ │ │ ├── metadata_api_loader.py
33-
│ │ │ └── metadata_json_loader.py
34-
│ │ └── timeseries
35-
│ │ ├── parquet_loader.py
36-
│ │ ├── s3proxy_parquet_loader.py
37-
│ │ └── timescale_loader.py
38-
│ ├── stats
39-
│ │ ├── boolean_stats.py
40-
│ │ ├── numeric_stats.py
41-
│ │ ├── string_stats.py
42-
│ │ └── timestamp_stats.py
43-
│ ├── time_stats
44-
│ │ └── time_stats_numeric.py
45-
```
9+
| **Directory** | **Subdirectory/File** | **Description** |
10+
|-------------------------|----------------------------------------|---------------------------------------|
11+
| `timeseries_shaper` | `base.py` | Core functionalities or base logic. |
12+
| `calculator` | `numeric_calc.py` | Numeric calculations. |
13+
| `cycles` | `cycle_processor.py` | Processes cycles in time series. |
14+
| | `cycles_extractor.py` | Extracts cycles from time series. |
15+
| `events` | `outlier_detection.py` | Detects outliers in the data. |
16+
| | `statistical_process_control.py` | Implements SPC for quality control. |
17+
| | `tolerance_deviation.py` | Handles tolerance deviation checks. |
18+
| | `value_mapping.py` | Maps values for events. |
19+
| `filter` | `boolean_filter.py` | Filters boolean data. |
20+
| | `custom_filter.py` | Filters using custom logic. |
21+
| | `datetime_filter.py` | Filters data based on datetime. |
22+
| | `numeric_filter.py` | Filters numeric data. |
23+
| | `string_filter.py` | Filters string data. |
24+
| `functions` | `lambda_func.py` | Contains reusable lambda functions. |
25+
| `loader` | `metadata/metadata_api_loader.py` | Loads metadata from API. |
26+
| | `metadata/metadata_json_loader.py` | Loads metadata from JSON files. |
27+
| | `timeseries/parquet_loader.py` | Loads time series data from Parquet. |
28+
| | `timeseries/s3proxy_parquet_loader.py` | Loads data from S3 Parquet proxy. |
29+
| | `timeseries/timescale_loader.py` | Loads data from TimescaleDB. |
30+
| `stats` | `boolean_stats.py` | Computes statistics for booleans. |
31+
| | `numeric_stats.py` | Computes statistics for numerics. |
32+
| | `string_stats.py` | Computes statistics for strings. |
33+
| | `timestamp_stats.py` | Computes statistics for timestamps. |
34+
| `time_stats` | `time_stats_numeric.py` | Computes time-based numeric stats. |
4635

4736

4837
## Installation

concept.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Necessary Functionality
2+
3+
## Inputs
4+
5+
- parquet s3
6+
- timescaledb
7+
- postgresdb / rest api (signal context)
8+
- postgrest (business context)
9+
10+
11+
## Combination
12+
13+
- timeseries combination with signal context
14+
15+
----- HANDOVER FORMAT: DATAFRAME -----
16+
17+
## Transform
18+
19+
- filters - datatype specific filters
20+
- functions - lamda functions (more general)
21+
- time_functions
22+
- calculator
23+
24+
## Features
25+
26+
- stats - datatype specific stats
27+
- time_stats - timestamp specific stats (last timestamp, first timestamp, occurence per hour, etc.)
28+
29+
----- # -----
30+
31+
## Metrics
32+
33+
-
34+
35+
----- # -----
36+
37+
## Events
38+
39+
- quality events -
40+
- maintenance events -
41+
- production events -
42+
- engineering events -

0 commit comments

Comments
 (0)