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.1.1.tar.gz (20.0 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.1.1-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for etlup-4.1.1.tar.gz
Algorithm Hash digest
SHA256 1dad8c78756e5dc8488b551cd5b4161519de3559fbc0b2b2c8dc08494e3291a1
MD5 cdd0d4c6947f6803f6b5b54d4574d74b
BLAKE2b-256 b00b8fb94493a23eef1f5e78211c7d78d0744fd7a7d6ec6396f4dcc9bf0b3404

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for etlup-4.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06228651d53e4aff37244bd41d382916fc1a73962e32f99402c87bfa2755fe21
MD5 9988713dca2a6319e982eba3ae18a65f
BLAKE2b-256 ecb4e4a1d1a6045f2be48e166283a99c705491363e8880ffcf5b3338dead0934

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