Jump to content

Recommended Posts

Posted

Dear All,

In python I have the following logic what I'd like to translate to Seeq formula.

np.where((testdf['Signal_1']) < 0, testdf['Signal_2'], np.where((testdf['Signal_1']) < 30, testdf['Signal_2'], testdf['Signal_1']))

I know it would possible with capsules but it is only one leg of the whole solution and I think it's obscure to have 20-30 capsules for only one calculation what we use at others too.

 

Posted

Hi Akos, 

if I understood the code correctly it returns "Signal_2" everytime "Signal_1" is below 30, otherwise "Signal_1" will be returned. In Seeq you could use

$signal1.splice($signal2, $signal1 < 30)

for that.

You may also have a look at this post:

Regards,

Thorsten

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...