Skip to main content

Python class for pipeline anomaly dimension classification

Project description

Python class for pipeline anomaly dimension classification

GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status Codacy Badge Codacy Badge

This Python module implements the definition of the "defect dimension class" of a pipeline according to Specifications and requirements for intelligent pig inspection of pipelines.

Anomaly dimension classification

Graphical presentation of metal loss anomalies per dimension class

Installation

pip install pipeline-anomaly-dimension-class

Usage

from pipeline_anomaly_dimension_class import size_class, FeatureClass

# a defect measuring 100x100 mm on a pipe wall 10 mm thick is a defect of the "GENE" class
assert size_class(100, 100, 10) == FeatureClass.GENE

# defects with zero dimensions are not allowed
size_class(0, 100, 10)
pipeline_anomaly_dimension_class.Error: Wrong FeatureClass params. l=0 w=100 t=10

Development

git clone git@github.com:vb64/pipeline.anomaly.dimension.class.git
cd pipeline.anomaly.dimension.class

With Python 2

make setup2 PYTHON_BIN=/path/to/python27/executable
make tests2

With Python 3

make setup PYTHON_BIN=/path/to/python3/executable
make tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipeline_anomaly_dimension_class-1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file pipeline_anomaly_dimension_class-1.1.tar.gz.

File metadata

File hashes

Hashes for pipeline_anomaly_dimension_class-1.1.tar.gz
Algorithm Hash digest
SHA256 d7c4cf48667cca09e60613eb281ba67f88790f7bdd6b9b6f3f7adc350f4872ca
MD5 4a5f8e73000c6eca00d4f187c3655a82
BLAKE2b-256 b40e00b66f7e5a8e845ae243315a5bf37ed632ddddea2fa3bc65f9aa375105fe

See more details on using hashes here.

File details

Details for the file pipeline_anomaly_dimension_class-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pipeline_anomaly_dimension_class-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94f12d0b8c04d8bf0b9d04a361a78ca2a4007a6bc108d620971e8c4262ee2423
MD5 8505c32e2384d6506dded0f3ef429eac
BLAKE2b-256 0bc0d870036b7e67af136cc6a741bad2e79b12536239ede90de13f7066efe263

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page