Skip to main content

Test definitions, plotting and documentation for the CMS MTD ETL project

Project description

etlup

This project contains code for plotting for CMS MTD ETL project. To install you can do,

pip install etlup

Or if you are developing locally you can clone the repo and cd into it. Then do,

pip install -U -e ./

Plotting

from etlup.tamalero.Noisewidth import NoisewidthV0
from etlup import now_utc
nw = NoisewidthV0(
    user_created = "hayden",
    location = "CERN",
    measurement_date = now_utc(),
    module = "Module 206",
    pos_0 = [[4, 4, 3, 4, 3, 4, 2, 4, 3, 3, 3, 3, 4, 4, 3, 3,],
            [3, 4, 4, 3, 4, 4, 3, 4, 4, 4, 3, 4, 3, 3, 4, 3,],
            [3, 5, 4, 3, 3, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 4,],
            [3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 3, 3, 4, 3, 3, 3,],
            [3, 4, 3, 3, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3,],
            [3, 4, 4, 3, 4, 3, 3, 3, 3, 4, 3, 3, 3, 3, 4, 4,],
            [3, 4, 4, 4, 3, 3, 4, 4, 4, 5, 4, 4, 4, 4, 4, 3,],
            [3, 3, 3, 3, 2, 4, 3, 3, 4, 4, 3, 3, 4, 3, 3, 4,],
            [3, 4, 4, 4, 4, 3, 3, 4, 5, 3, 4, 3, 3, 4, 3, 3,],
            [4, 3, 3, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 3, 4, 4,],
            [4, 4, 4, 4, 3, 4, 3, 4, 4, 4, 3, 3, 4, 3, 3, 4,],
            [3, 3, 4, 3, 3, 3, 3, 3, 3, 4, 3, 4, 4, 3, 3, 3,],
            [4, 3, 4, 3, 4, 3, 4, 3, 3, 3, 4, 3, 3, 4, 3, 3,],
            [3, 4, 5, 4, 3, 4, 3, 3, 4, 4, 3, 4, 3, 4, 3, 4,],
            [3, 3, 4, 4, 3, 4, 3, 4, 4, 3, 4, 3, 4, 3, 4, 3,],
            [4, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 4, 3, 4, 3, 3,]]
    # there are the other three positions you can also give
    # pos_1, pos_2, pos_3
)
fig = nw.plot()
fig.savefig("noisewidth.png")

Uploading to Database

In order for you to upload to the database you will need to create a .env file in the same directory as the script or pass in its path to the Session. Here is an example of a .env file:

API_TOKEN_ENV = "your token goes here"

To upload,

from etlup.tamalero.Noisewidth import NoisewidthV0
from etlup import prod_session

tests = [
    NoisewidthV0(...),
    ...
]

prod_session.add_all(tests)
prod_session.upload()

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

etlup-4.2.11.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etlup-4.2.11-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file etlup-4.2.11.tar.gz.

File metadata

  • Download URL: etlup-4.2.11.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for etlup-4.2.11.tar.gz
Algorithm Hash digest
SHA256 eb41e4305d7a0edc11b8b3a285becf54e9001bb6ea92bc790ddbba203e932b8b
MD5 624cabee4470c00311fb4f69d68f24c8
BLAKE2b-256 64b72a6c316b25e8448735c0ee24203bdf1211602f0a2f50d2a6112d82737d3f

See more details on using hashes here.

File details

Details for the file etlup-4.2.11-py3-none-any.whl.

File metadata

  • Download URL: etlup-4.2.11-py3-none-any.whl
  • Upload date:
  • Size: 49.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for etlup-4.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 027553c0052c0669880441cb15351024b2e3a67d98dc140ef25bbe53ce4d1356
MD5 f0d5cfa37c45066700fd756335644395
BLAKE2b-256 58851ca40469791cf5767eb30b5cba1f105f2907422198f0f943a46669a61a9f

See more details on using hashes here.

Supported by

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