Skip to content

← elementwise_math package

ToDecibels

Convert the given quantity to decibels.

Version 1.2.2

Ports/Properties

data

Data to process.

verbose name
Data
default value
None
port type
DataPort
value type
AnyNumeric (can be None)
data direction
INOUT

source_measure

Source measure. Since power values are squared, the conversion formula accounts for that. 'auto' will map to 'amplitude' if the chunk has a Metadata.quantity property that is NOT QuantityNames.power, otherwise it will map to 'power'.

verbose name
Source Measure
default value
auto
port type
EnumPort
value type
str (can be None)

replace_zeros

Replace zeros with the smallest possible value (epsilon) to avoid taking the logarithm of zero which would result in -inf.

verbose name
Replace Zeros
default value
True
port type
BoolPort
value type
bool (can be None)

verbose

Print warnings if the input is not annotated as expected.

verbose name
Verbose
default value
True
port type
BoolPort
value type
bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)