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
The vsc.if_then constraint does not seem to support complex expressions. Is this problem caused by my use error?And is there a solution to use complex expressions in "vsc.if_then" and “vsc.else_if” constraint?
I think this is a real bug. It looks like a number of operator overloads, /*|&%, are missing for ValueScalar, and setting multiple rand vars to rand_mode=False uncovered this. I implemented some of them locally and your example passed.
You could work around this for now by pinning those variables in a with constraint so they stay rand vars for that call. You could probably also use a dynamic constraint to turn the whole set of constraints on and off:
The vsc.if_then constraint does not seem to support complex expressions. Is this problem caused by my use error?And is there a solution to use complex expressions in "vsc.if_then" and “vsc.else_if” constraint?
This will prompt an error:
TypeError: unsupported operand type(s) for /: 'ValueScalar' and 'ValueScalar'
pyvsc version: 0.8.8
The text was updated successfully, but these errors were encountered: