Skip to main content

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.3

Made custom python functions more robust when the file is removed

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

nomad_camels_driver_derived_channels-0.1.3.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file nomad_camels_driver_derived_channels-0.1.3.tar.gz.

File metadata

File hashes

Hashes for nomad_camels_driver_derived_channels-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6edc5dc016fc1149438824e71ff8fac42e709fb22c5be709d6a1a36dbe939f9e
MD5 15e973978fd57fc11f69ef75d569ff8f
BLAKE2b-256 89ee2852acd906eedf7adf2be399054c65457bade72269f83e3b85a8008c7c40

See more details on using hashes here.

File details

Details for the file nomad_camels_driver_derived_channels-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nomad_camels_driver_derived_channels-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab3397826519e000234a8b50c89252c14e3372bb4d230cf28432c5e3cec9f614
MD5 9ad41597ee704606745bc0de2b23870b
BLAKE2b-256 33ee8b75d9107187d7f995b550b74fd6b57d1ff8a6e7cbad9022ad864c956d0b

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