I am running into an issue while trying to assign property values to existing conditions. I've been trying to figure this out on my own for a while - there are a lot of great resources out there but I am still stuck. I'm not able to share snapshots of my actual production data, but I was able to replicate the issue using the "example" dataset. In the Attached image, I am looking at the 'Viscosity-Seeq' and 'BatchID-Seeq' signals.
I created a condition for the BatchID using the formula $bs.tocondition('BATCH_ID')
Then for this example, I am trying to assign the property of 'visc avg' to the BATCH_ID condition (called $bitc)
$bitc.setproperty('visc avg', $vs, average())
However, I keep getting the error message of No variant of function 'setproperty' consumes the parameters (Condition, Scalar, Signal, Stat:Sample:Scalar) at 'setproperty'
I'm sure I will embarrass myself once I figure out what I have done wrong, but at the moment I am very confused. I used this recent post, as well as many others for inspiration and troubleshooting.