Skip to main content

No project description provided

Project description

qc-utils

QC infrastructure common to several pipelines

For now contains two classes QCMetric and QCMetricRecord that can be used for representing pipeline quality control metrics.

Installation

pip install qc-utils

Usage

from qc_utils.qcmetric import QCMetric, QCMetricRecord

Creating metric objects is done by new_metric = QCMetric('metric name', {'metric1' : value1, 'metric2' : value2}). The name and content can be accessed as properties of the object. The content is stored as an OrderedDict and the content is sorted by names when object is created. These properties can be now accessed as new_metric.name and new_metric.content.

QCMetricRecord objects can be created by making an empty record record = QCMetricRecord() and then using add method to add QCMetric objects into the record. Another way is to initialize record from a list of QCMetric objects record = QCMetricRecord([qc_metric1, qc_metric2]), and possibly using add to complement the record later. Names of QCMetric objects in a record have to be distinct and an attempt to add a metric with existing name into a QCMetricRecord will cause an error.

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

qc_utils-0.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file qc_utils-0.1.tar.gz.

File metadata

  • Download URL: qc_utils-0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for qc_utils-0.1.tar.gz
Algorithm Hash digest
SHA256 c1d0460d6d1976eea2fa285152a767b75a355cfad9ae2df89f94add773510756
MD5 2efe83d6debc373c71267a3c89f9d5f7
BLAKE2b-256 d3ef35013abaa095e27a7617d91b244917acf0b81ce249e48119881aab8121de

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