pysrw.tools.findIdx

Contents

pysrw.tools.findIdx#

pysrw.tools.findIdx(array, value)[source]#

Find the closest value out of an array.

Parameters:
  • array – array to search for.

  • value – desired value.

Returns:

the index of the array item closest to value.

Return type:

int