Instrument driver for derived_channels for NOMAD CAMELS
Project description
NOMAD Camels driver for derived hannels
This is a special driver for NOMAD CAMELS. It can be used to directly calculate values from other channels inside CAMELS.
How to use
You may add an arbitrary number of channels to each instance of this instrument. Each channel can be configured either as readable or writable.
When you make the channel readable, you need to select which channels it depends on. The calculation formula should then depend on these channels.
A writable channel may only write to a single channel. The calculation formula is then, how the output is scaled. In that case, use x for the value written to the newly defined channel. For example when you want to define a new channel scaled that writes to the channel channel1 of some instrument, you can write x * 5 so when scaled is set to 2, channel1 will be set to 10.
Alternatively, you can define a python function inside any file and select "From File" for the conversion (either read or write). Then select the file and set the name of the function that should be used for the conversion.
- For writing: The function may take only one argument (which will be the set value) and should return one value.
- For reading: Make sure that the function takes the read channels as arguments, for example:
def read_conversion(read_channel_1, read_channel_2):
return read_channel_1 + read_channel_2
or
def read_conversion(**values):
return values['read_channel_1'] + values['read_channel_2']
Documentation
For more information on NOMAD CAMELS and instruments visit the documentation.
Changelog
0.1.2
Added functionality to use custom python functions.
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
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 nomad_camels_driver_derived_channels-0.1.2.tar.gz.
File metadata
- Download URL: nomad_camels_driver_derived_channels-0.1.2.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
543f95a1e8c55b53221cf6733b917be2acf4aa12591d1b91f745f479e0df28b7
|
|
| MD5 |
e69cf890fd434f4419e41b6c432a27a4
|
|
| BLAKE2b-256 |
7b02cbb8ea50489fdf630e0767d7162decbb145f4b2882ae507dbf779d1499f5
|
File details
Details for the file nomad_camels_driver_derived_channels-0.1.2-py3-none-any.whl.
File metadata
- Download URL: nomad_camels_driver_derived_channels-0.1.2-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b228723ba360b80ce6114e1160fdb9343b9175bbcdbada601efb17e87d5212ae
|
|
| MD5 |
a154c0a5b82625181619b299c528e3ce
|
|
| BLAKE2b-256 |
b5b60baa16509cc4f6d7d0e64e32d730212bd9a575c42bd20bd87c0e8f70992c
|