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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb41e4305d7a0edc11b8b3a285becf54e9001bb6ea92bc790ddbba203e932b8b
|
|
| MD5 |
624cabee4470c00311fb4f69d68f24c8
|
|
| BLAKE2b-256 |
64b72a6c316b25e8448735c0ee24203bdf1211602f0a2f50d2a6112d82737d3f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
027553c0052c0669880441cb15351024b2e3a67d98dc140ef25bbe53ce4d1356
|
|
| MD5 |
f0d5cfa37c45066700fd756335644395
|
|
| BLAKE2b-256 |
58851ca40469791cf5767eb30b5cba1f105f2907422198f0f943a46669a61a9f
|