Hi,
I’m currently trying to create a property that allows me to copy frequency and gain data from an Excel file into the editor. While I can successfully create primitive objects like lists or Double values, I’m struggling to define a property that represents a matrix with a specific number of rows and columns. It doesn’t seem to work as expected. For example:
@attribute(Display("Loss Point", "One frequency/loss entry"))
class LossPoint(ValidatingObject):
Frequency = property(Double, default=1e9).add_attribute(Display("Frequency (Hz)"))
Loss = property(Double, default=0.0).add_attribute(Display("Loss (dB)"))
@attribute(Display("Loss Table Step", "Step with user-editable frequency/loss table", "Examples"))
class LossTableStep(TestStep):
LossTable = property(List[LossPoint]).add_attribute(Display("Frequency/Loss Table"))
def __init__(self):
super(LossTableStep, self).__init__()
self.LossTable = List[LossPoint]()
self.LossTable.Add(LossPoint())