def _minolta2float(inVal):
 arr = numpy.asarray(inVal)
 if (arr.shape == ()):
  if (inVal < 50000):
   return (inVal / 10000.0)
  else:
   return (((- inVal) + 50000.0) / 10000.0)
 negs = (arr > 50000)
 out = (arr / 10000.0)
 out[negs] = (((- arr[negs]) + 50000.0) / 10000.0)
 return out

def _minolta2float ( inVal ) : arr = numpy . asarray ( inVal ) if ( arr . shape == ( ) ) : if ( inVal < 50000 ) : return ( inVal / 10000.0 ) else : return ( ( ( - inVal ) + 50000.0 ) / 10000.0 ) negs = ( arr > 50000 ) out = ( arr / 10000.0 ) out [ negs ] = ( ( ( - arr [ negs ] ) + 50000.0 ) / 10000.0 ) return out
takes a number .