pipeline-materials-file 1.0

Creator: railscoder56

Last updated:

Add to Cart

Description:

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 git@github.com:vb64/pipeline.material.git
$ cd pipeline.material
$ make setup PYTHON_BIN=/path/to/python3
$ make tests

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.