![]() ![]() ![]() ![]() Return ((nums & (1 << np.arange(width-1,-1,-1)))!=0).astype(int)Īpply the function to your Integer Dataframe, you will also need to name the columns with the status's the represent. IntegerSignalDF = spy.pull(IntegerSignal, start='', end='')Ĭreate a function to split your integer column into a number of different 1/0 columns This is a good place to add parameters such that this operation can be run on a schedule which is available in R52+ Pull the signal for your time period of interest. Use Spy.search to find your integer signal of interest - see spy.search() docs for more information Import Python packages from seeq import spy If you have a signal in Seeq that is an integer representing an 8-bit 16-bit or 32-bit set of states here is some example code you can use to convert the integer signal into 8-16-32 separate 0/1 signals that can be used to define machine states elsewhere in the Seeq platform ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |