Ákos Bánár Posted May 9, 2023 Share Posted May 9, 2023 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. Link to comment Share on other sites More sharing options...
Thorsten Vogt Posted May 9, 2023 Share Posted May 9, 2023 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 1 Link to comment Share on other sites More sharing options...
Ákos Bánár Posted May 9, 2023 Author Share Posted May 9, 2023 (edited) Thank you so much. It helped a lot. Edited May 9, 2023 by Ákos Bánár Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now