Skip to content

Commit 8630b26

Browse files
committed
DOC: Update changelog
1 parent b457534 commit 8630b26

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Changelog

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ References like "pr/298" refer to github pull request numbers.
3030

3131
New features
3232
------------
33-
* ArrayProxy method ``get_scaled()`` scales data with a dtype of a
34-
specified precision, promoting as necessary to avoid overflow. This
35-
is to used in ``img.get_fdata()`` to control memory usage. (pr/833)
36-
(CM, reviewed by Ross Markello)
33+
* ArrayProxy ``__array__()`` now accepts a ``dtype`` parameter, allowing
34+
``numpy.array(dataobj, dtype=...)`` calls, as well as casting directly
35+
with a dtype (for example, ``numpy.float32(dataobj)``) to control the
36+
output type. Scale factors (slope, intercept) are applied, but may be
37+
cast to narrower types, to control memory usage. This is now the basis
38+
of ``img.get_fdata()``, which will scale data in single precision if
39+
the output type is ``float32``. (pr/844) (CM, reviewed by ...)
3740
* GiftiImage method ``agg_data()`` to return usable data arrays (pr/793)
3841
(Hao-Ting Wang, reviewed by CM)
3942
* Accept ``os.PathLike`` objects in place of filenames (pr/610) (Cameron

0 commit comments

Comments
 (0)