How behradmoadeli/haulmax works
1. Repository purpose
- This repo is a data preparation / data quality workspace for the “haulmax” project, centered on synchronizing shared datasets, converting source files into analysis-friendly formats, and profiling the incoming “bronze” data layer.
2. Primary architectural style
- The repo is data-pipeline oriented, not an application service. Its main flow is:
- shared data storage → local DVC checkout → transformation scripts → parquet outputs / profiling reports → notebooks for exploration.
3. Data management boundary
- DVC is the key infrastructure layer.
- data.dvc and .dvc/ indicate that the actual datasets are stored outside Git and pulled into the workspace from a remote.
- The README configures the DVC remote to a local OneDrive-mounted folder, so the repository depends on external shared storage rather than an API or database.
4. Environment and runtime
- environment.yml defines the Conda environment used for the workflow.
- pyproject.toml suggests Python packaging/tooling for the scripts and tests.
- The repo is therefore a Python batch/data engineering project, likely run from the command line or notebooks.
5. Ingestion / source synchronization
- The repository does not appear to ingest data from live systems directly.
- Instead, the source data is synchronized manually via OneDrive and then fetched into the working directory with dvc pull.
- This creates a clear separation between shared storage and local analysis workspace.
6. Transformation layer
- scripts/csv_to_parquet.py and scripts/csv_to_parquet_eqstatus.py are the main processing entry points.
- Their role is to convert raw CSV inputs into Parquet outputs, implying a columnar storage step for downstream analysis and profiling.
- Having separate scripts suggests at least two source shapes/domains: general CSV data and an equipment-status-specific dataset.
7. Profiling / data quality layer
- scripts/profile_bronze_sources.py and reports/bronze_profile_report.md form the data profiling branch of the workflow.
- This is the quality-assurance boundary: raw/bronze inputs are inspected, summarized, and documented before broader use.
- The report artifact indicates the profiling step is meant to be persisted and reviewed, not just run interactively.
8. Tests as pipeline safeguards
- scripts/test_csv_to_parquet.py and scripts/test_csv_to_parquet_eqstatus.py provide script-level validation.
- These tests likely verify transformation correctness and guard against regressions in data conversion logic.
9. Exploration and analysis layer
- notebooks/eda.ipynb is the active exploratory analysis workspace.
- The legacy/ notebooks show earlier experiments and demos, including segmentation and predictive-event work, but they appear historical rather than core to the current pipeline.
10. Outputs and artifacts
- The important artifacts in this repo are not application binaries; they are:
- DVC-managed datasets
- converted Parquet files
- profiling reports
- notebook outputs / exploratory analyses
- This makes the repo useful as an analysis and preprocessing hub.
11. Key boundaries to show in a diagram
- Separate these layers clearly:
- External shared storage: OneDrive-backed DVC remote
- Local workspace: pulled datasets and code
- Processing scripts: CSV-to-Parquet and profiling utilities
- Validation: tests
- Exploration/reporting: notebooks and markdown reports
- The major dependency is data flow, not service-to-service communication.
12. What is notably absent
- There is no sign of a web server, message bus, database service, or deployment pipeline in the current tree.
- Architecture should therefore focus on batch data preparation and analysis, with DVC as the central coordination mechanism for data assets.
Main entry points: csv_to_parquet.py CSV to Parquet · csv_to_parquet_eqstatus.py Eq status convert · profile_bronze_sources.py Bronze profile · environment.yml Conda env
Components 15
External storage
Shared dataset location outside Git, used as the DVC remote.
- OneDrive remote · Shared external storage configured as the DVC backend for datasets.
Data workspace
Tracked data and local pulled datasets used by the pipeline.
- Data manifest · DVC-tracked dataset definition for pulling managed data into the workspace.
data.dvc - Pulled data · Workspace copy of shared datasets fetched via DVC for processing and analysis.
Processing
Batch scripts that convert source CSVs into analysis-ready outputs.
- CSV to Parquet · Main conversion entry point for general CSV inputs.
scripts/csv_to_parquet.py - Eq status convert · Specialized conversion path for equipment-status CSV inputs.
scripts/csv_to_parquet_eqstatus.py - Parquet outputs · Converted columnar outputs used for downstream analysis.
Quality
Profiling and validation around bronze inputs and conversions.
- Bronze profile · Profiles bronze-layer sources and produces quality summaries.
scripts/profile_bronze_sources.py - Profile report · Persisted markdown summary of bronze-source profiling results.
reports/bronze_profile_report.md - CSV tests · Checks the general CSV-to-Parquet conversion path.
scripts/test_csv_to_parquet.py - Eq tests · Checks the equipment-status conversion path.
scripts/test_csv_to_parquet_eqstatus.py
Analysis
Notebooks and human-readable reports for exploration.
- EDA notebook · Current exploratory analysis workspace.
notebooks/eda.ipynb - Legacy notebooks · Historical experiments and demos kept for reference.
legacy/DEMO_segment_equipment_data.ipynb
Tooling
Python environment and project metadata supporting the workflow.
- DVC config · Repository DVC settings that point the workspace at the shared remote.
.dvc/config - Conda env · Environment specification for running the pipeline and notebooks.
environment.yml - Pyproject · Python project metadata and tooling configuration.
pyproject.toml
Connections 17
- OneDrive remote → DVC config: configured by · The shared remote is defined in the repository DVC configuration.
- DVC config → Data manifest: controls · DVC settings govern which tracked data can be pulled into the workspace.
- Data manifest → Pulled data: pulls · The DVC manifest materializes shared datasets as local workspace copies.
- Pulled data → CSV to Parquet: feeds · Pulled raw data is converted by the main CSV processing script.
- Pulled data → Eq status convert: feeds · Equipment-status sources are converted by the specialized script.
- Pulled data → Bronze profile: profiles · Bronze inputs are summarized and quality-checked before broader use.
- CSV to Parquet → Parquet outputs: writes · General conversion produces parquet artifacts.
- Eq status convert → Parquet outputs: writes · Equipment-status conversion also produces parquet artifacts.
- Bronze profile → Profile report: documents · Profiling results are persisted as a markdown report.
- CSV tests → CSV to Parquet: validates · Test coverage protects the general conversion path.
- Eq tests → Eq status convert: validates · Test coverage protects the equipment-status conversion path.
- Conda env → CSV to Parquet: runs · The Conda environment supports the batch conversion scripts.
- Conda env → Bronze profile: runs · The same environment supports profiling workflows.
- Pyproject → CSV to Parquet: supports · Python project tooling underpins script execution and packaging.
- Pyproject → EDA notebook: supports · Project tooling also supports notebook-based analysis.
- EDA notebook → Parquet outputs: explores · Exploration consumes transformed data artifacts.
- Legacy notebooks → Pulled data: historical analysis · Legacy notebooks reflect earlier analysis work on the pulled datasets.