pygsti.report.LinLogNorm.process_value¶
-
LinLogNorm.
process_value
(value)¶ Homogenize the input value for easy and efficient normalization.
value can be a scalar or sequence.
Returns result, is_scalar, where result is a masked array matching value. Float dtypes are preserved; integer types with two bytes or smaller are converted to np.float32, and larger types are converted to np.float. Preserving float32 when possible, and using in-place operations, can greatly improve speed for large arrays.
Experimental; we may want to add an option to force the use of float32.