get_waveform_id#
- snake.mrd_utils.utils.get_waveform_id(input_string)[source]#
Generate a unique id from an input string.
The generated id is guaranteed to be bigger than 1024 and smaller than 2^16.
- Parameters:
input_string (str) – The input string from which to generate the unique id.
- Returns:
Unique id generated from the input string.
- Return type:
Examples
>>> generate_unique_id('hello_world') 32767 >>> generate_unique_id('this_is_a_test') 20481