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 hashes)

Uploaded Source

Built Distribution

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