https://github.com/vb64/pipeline.materials.file
Pipeline materials file for static integrity calculation
https://github.com/vb64/pipeline.materials.file
integrity material pipeline
Last synced: 6 months ago
JSON representation
Pipeline materials file for static integrity calculation
- Host: GitHub
- URL: https://github.com/vb64/pipeline.materials.file
- Owner: vb64
- License: mit
- Created: 2023-12-12T08:40:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-12T13:59:22.000Z (almost 2 years ago)
- Last Synced: 2025-03-06T12:06:43.431Z (7 months ago)
- Topics: integrity, material, pipeline
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history.txt
- License: LICENSE
Awesome Lists containing this project
README
# Pipeline materials file for static integrity calculation
[](https://github.com/vb64/pipeline.materials.file/actions?query=workflow%3Apep257)
[](https://github.com/vb64/pipeline.materials.file/actions?query=workflow%3Apy3)
[](https://app.codacy.com/gh/vb64/pipeline.materials.file/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[](https://app.codacy.com/gh/vb64/pipeline.materials.file/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)## Installation
```bash
pip install pipeline-materials-file
```## Usage
```python
from pipeline_materials_file import Materials
from pipeline_csv.csvfile import File
from pipeline_csv.csvfile.row import Rowdeftable = File(1000)
deftable.data = [
Row.as_weld(1000),
Row.as_thick(1010, 105),
Row.as_weld(12000),
Row.as_thick(12010, 110),
Row.as_weld(24000),
Row.as_thick(12010, 110),
Row.as_weld(36000),
]warnings = []
data = Materials.from_deftable(deftable, warnings)assert len(data.data) == 2
assert not warningsdata.to_csv('materials.csv')
```
## Development
```bash
git clone git@github.com:vb64/pipeline.material.git
cd pipeline.material
make setup PYTHON_BIN=/path/to/python3
make tests
```