Pipeline materials file for static integrity calculation
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pipeline_materials_file-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecc91fcb1eba0f878633f16ca2b1904e87221c597cfe541a290199b88ef55393 |
|
MD5 | 61c4af9545e3147d776f5a7730789470 |
|
BLAKE2b-256 | e3a36776ae196e7e46f1a58bc4f1441326ed962fe9fe76cf6dedc61c72e25ee1 |
Close
Hashes for pipeline_materials_file-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe83713b2fcfc965faa00e338fdbb3adea468796f6813e62daf440cf9cb84e6 |
|
MD5 | 49846c6e5a6dfef522bf8ac4ad990541 |
|
BLAKE2b-256 | bea5c509acc80226dc7e4b3c795e3aa6068e4b3b86d55c56cc73c948d488c0ba |