Last updated:
0 purchases
pipelinematerialsfile 1.0
Pipeline materials file for static integrity calculation
Installation
pip install pipeline-materials-file
Usage
from pipeline_materials_file import Materials
from pipeline_csv.csvfile import File
from pipeline_csv.csvfile.row import Row
deftable = 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 warnings
data.to_csv('materials.csv')
Development
$ git clone [email protected]:vb64/pipeline.material.git
$ cd pipeline.material
$ make setup PYTHON_BIN=/path/to/python3
$ make tests
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.