You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
size: Annotated[np.ndarray, OpenLIFUFieldData("Size", "Size of the element in 2D")] =field(default_factory=lambda: np.array([1., 1.]))
115
70
""" Size of the element in 2D as a numpy array [width, length]."""
116
71
117
-
sensitivity: Annotated[float|dict, OpenLIFUFieldData("Sensitivity", "Sensitivity of the element (Pa/V), scalar or {'freq_Hz':[...], 'values_Pa_per_V':[...]}")] =1.0
72
+
sensitivity: Annotated[float|List[tuple[float, float]], OpenLIFUFieldData("Sensitivity", "Sensitivity of the element (Pa/V), scalar or list of (frequency, value) tuples")] =1.0
118
73
"""Sensitivity of the element (Pa/V)"""
119
74
120
75
pin: Annotated[int, OpenLIFUFieldData("Pin", "Channel pin to which the element is connected")] =-1
@@ -135,7 +90,8 @@ def __post_init__(self):
135
90
raiseValueError("Size must be a 2-element array.")
The units of this transform are assumed to be the native units of the transducer, the `Transducer.units` field.
96
85
"""
97
86
98
-
sensitivity: Annotated[float|dict, OpenLIFUFieldData("Sensitivity", "Sensitivity of the transducer (Pa/V), scalar or {'freq_Hz':[...], 'values_Pa_per_V':[...]}")] =1.0
99
-
"""Sensitivity of the transducer (Pa/V), scalar or frequency-dependent dictionary."""
87
+
sensitivity: Annotated[float|List[tuple[float, float]], OpenLIFUFieldData("Sensitivity", "Sensitivity of the transducer (Pa/V), scalar or list of (frequency, value) tuples")] =1.0
88
+
"""Sensitivity of the transducer (Pa/V), scalar or frequency-dependent list of tuples."""
100
89
101
90
crosstalk_frac: Annotated[float, OpenLIFUFieldData("Crosstalk fraction", "Fraction of the signal that leaks into other elements due to crosstalk")] =0.0
102
91
"""Fraction of the signal that leaks into other elements due to crosstalk"""
0 commit comments