How to ScaleToDataRange in python?

Hello,

is there a way to automatically scale to range with python code? I couldnt find the function.

my current try is:

data = myModel.GetPointDataInformation()
array = data.GetArray(myArray)
dataRange = array.GetRange()
dataRangeMin = dataRange[0]
dataRangeMax = dataRange[1]