Skip to content

Commit f069bb9

Browse files
committed
DOC - expand on deprecation for unused function
scale_min_max only retained for compatibility
1 parent e8cbf05 commit f069bb9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nibabel/volumeutils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ def scale_min_max(mn, mx, out_type, allow_intercept):
696696
intercept : numpy scalar, dtype=np.maximum_sctype(np.float)
697697
value to subtract from data before dividing by scalefactor
698698
699+
Examples
700+
--------
699701
>>> scale_min_max(0, 255, np.uint8, False)
700702
(1.0, 0.0)
701703
>>> scale_min_max(-128, 127, np.int8, False)
@@ -720,6 +722,9 @@ def scale_min_max(mn, mx, out_type, allow_intercept):
720722
721723
Notes
722724
-----
725+
We don't use this function anywhere in nibabel now, it's here for API
726+
compatibility only.
727+
723728
The large integers lead to python long types as max / min for type.
724729
To contain the rounding error, we need to use the maximum numpy
725730
float types when casting to float.

0 commit comments

Comments
 (0)