Skip to main content

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

Metadata

Release files for pipeline-anomaly-dimension-class 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pipeline-anomaly-dimension-class 1.1
File Size Uploaded
pipeline_anomaly_dimension_class-1.1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pipeline-anomaly-dimension-class 1.1
File Interpreter ABI Platform
pipeline_anomaly_dimension_class-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / pipeline_anomaly_dimension_class-1.1.tar.gz

Download URL pipeline_anomaly_dimension_class-1.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d7c4cf48667cca09e60613eb281ba67f88790f7bdd6b9b6f3f7adc350f4872ca
BLAKE2b-256 checksum
How to use checksums
b40e00b66f7e5a8e845ae243315a5bf37ed632ddddea2fa3bc65f9aa375105fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / pipeline_anomaly_dimension_class-1.1-py3-none-any.whl

Download URL pipeline_anomaly_dimension_class-1.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94f12d0b8c04d8bf0b9d04a361a78ca2a4007a6bc108d620971e8c4262ee2423
BLAKE2b-256 checksum
How to use checksums
0bc0d870036b7e67af136cc6a741bad2e79b12536239ede90de13f7066efe263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page