boilerdata
Data processing pipeline for a nucleate pool boiling apparatus.
Overview
The data processing approach taken in this repository started over at pdpipewrench. It was initially conceptualized as a way to outfit pdpipe pipelines from configuration files, allowing for Pandas pipeline orchestration with minimal code. I have since adopted a less aggressive tact, where I still separate configuration out into YAML files (constants, file paths, pipeline function arguments, etc.), but pipeline logic is handled in pipeline.py. I have also done away with using pdpipe in this approach, as it doesn't lend itself particularly well to ETL. Besides, my data processing need is not quite the "flavor" of statistical data science type approaches supported by pdpipe.
This new approach maintains the benefits of writing logic in Python, while allowing configuration in files. I am using Pydantic as the interface between my configs and my logic, which allows me to specify allowable values with Enums and other typing constructs. Expressing allowable configurations with Pydantic allows for generation of schema for your config files, raising errors on typos or missing keys, for example. I also specify the "shape" of my input and output data in configs, and validate my dataframes with pandera. Once these components are in place, it is easy to implement new functionality in the pipeline.
Usage
If you would like to adopt this approach to processing your own data, you may clone this repository and begin swapping configs and logic for your own, or use a similar architecture for your data processing. To run a working example with some actual data from this study, perform the following steps:
- Clone this repository and open it in your terminal or IDE (e.g.
git clone https://github.com/blakeNaccarato/boilerdata.git boilerdata). - Navigate to the clone directory in a terminal window (e.g.
cd boilerdata). - Create a Python 3.10 virtual environment (e.g.
py -3.10 -m venv .venvon Windows w/ Python 3.10 installed from python.org). - Activate the virtual environment (e.g.
.venv/scripts/activateon Windows). - Run
pip install --editable .to installboilerdatapackage in an editable fashion. This step may take awhile. - Delete the top-level
dataandconfigdirectories, then copy theconfiganddatafolders inside oftests/datato the root directory. - Copy the
.propshopfolder intests/data/.propshopto your user-folder (e.g.C:/Users/<you>/.propshopon Windows). - Run
dvc repro metricsto execute the data process up to that stage.
The data process should run the following stages: axes, modelfun, runs, parse_benchmarsk, pipeline, and metrics. Some stages are skipped because we specified to run just the necessary stages up to metrics (the example data doesn't currently include the literature data). You may inspect the pipeline stages of the same name in src/boilerdata/stages, such as pipeline.py to see the logic that runs during that stage. This example happens to use Python scripts, but you could define a stage in dvc.yaml that instead runs Matlab scripts, or any arbitrary action. This approach allows for the data process to be reliably reproduced over time, and for the process to be easily modified and extended in a collabroative effort.
There are other details of this process, such as the hosting of data in the data folder in a Google Cloud Bucket (alternatively it can be hosted on Google Drive), and more. This has to do with the need to store data (especially large datasets) outside of the repository, and access it in an authenticated fashion.
Project information
Contributors
Blake Naccarato 💻 |
Metadata
Release files for boilerdata 2024.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| boilerdata-2024.1.2.tar.gz | 24.0 kB | Without provenance | Details for boilerdata-2024.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| boilerdata-2024.1.2-py3-none-any.whl | Python 3 | none | any | Details for boilerdata-2024.1.2-py3-none-any.whl |
Total release size: 48.2 kB
Release files / boilerdata-2024.1.2.tar.gz
| Download URL | boilerdata-2024.1.2.tar.gz |
|---|---|
| Size | 24.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71fe8c864fb3248a2143e7d260f73e3ffc8e167b47ca45fddcee050bd7532253
|
|
BLAKE2b-256 checksum How to use checksums |
b5d4f0efde1913f1b590eb59b89e7ef7aada69a5ed8e89ba971fd4647b576c7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / boilerdata-2024.1.2-py3-none-any.whl
| Download URL | boilerdata-2024.1.2-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1675f9601f21bfcf2a6813962d045ff0f109b7e727d1defe8618d40674a861ca
|
|
BLAKE2b-256 checksum How to use checksums |
25c443f8c31dd83c1bfd2e81ead3a39fe85b7c5db7af78194611d20cd7e50783
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for boilerdata 2024.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.