[Numpy-svn] [numpy/numpy] 503f66: MAINT: improve struct assignment, allow multi fiel...

GitHub noreply at github.com
Wed Feb 10 23:45:34 EST 2016


  Branch: refs/heads/multifield_structassign
  Home:   https://github.com/numpy/numpy
  Commit: 503f66af0aaafc172cec3534190d92d405711e5d
      https://github.com/numpy/numpy/commit/503f66af0aaafc172cec3534190d92d405711e5d
  Author: Allan Haldane <allan.haldane at gmail.com>
  Date:   2016-02-10 (Wed, 10 Feb 2016)

  Changed paths:
    M numpy/core/src/multiarray/array_assign_array.c
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/src/multiarray/descriptor.c
    M numpy/core/src/multiarray/descriptor.h
    M numpy/core/src/multiarray/dtype_transfer.c
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/src/multiarray/multiarraymodule.c

  Log Message:
  -----------
  MAINT: improve struct assignment, allow multi fields views

This commit attempts to make structure assignment more consistent, and
then changes multi-field indices to return a view instead of a copy.

The biggest change is that assignment between structures now works "by
field position" rather than "by field name


  Commit: 43ce4e230ba47b2bc9cad82ecf296405df1af894
      https://github.com/numpy/numpy/commit/43ce4e230ba47b2bc9cad82ecf296405df1af894
  Author: Allan Haldane <allan.haldane at gmail.com>
  Date:   2016-02-10 (Wed, 10 Feb 2016)

  Changed paths:
    M doc/source/reference/arrays.dtypes.rst
    M doc/source/reference/arrays.indexing.rst
    M numpy/doc/structured_arrays.py

  Log Message:
  -----------
  DOC: Update structured array docs

Updated docs with changes to struct assignment, plus general updates.


  Commit: 56560d5445d5ee290e129b24a999d2a4952389d1
      https://github.com/numpy/numpy/commit/56560d5445d5ee290e129b24a999d2a4952389d1
  Author: Allan Haldane <allan.haldane at gmail.com>
  Date:   2016-02-10 (Wed, 10 Feb 2016)

  Changed paths:
    M numpy/core/tests/test_dtype.py
    M numpy/core/tests/test_multiarray.py
    M numpy/core/tests/test_nditer.py
    M numpy/lib/tests/test_io.py
    M numpy/ma/core.py
    M numpy/ma/tests/test_core.py

  Log Message:
  -----------
  TST: Fix/Remove old unit tests for structure assignment


  Commit: e4a01a3eb35d1ea47defa2eec975055373497b13
      https://github.com/numpy/numpy/commit/e4a01a3eb35d1ea47defa2eec975055373497b13
  Author: Allan Haldane <allan.haldane at gmail.com>
  Date:   2016-02-10 (Wed, 10 Feb 2016)

  Changed paths:
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  TST: Add new unit tests for structure assignment


  Commit: 7d442b06cc3ff18c13cd8d20d0de54de98c747e0
      https://github.com/numpy/numpy/commit/7d442b06cc3ff18c13cd8d20d0de54de98c747e0
  Author: Allan Haldane <allan.haldane at gmail.com>
  Date:   2016-02-10 (Wed, 10 Feb 2016)

  Changed paths:
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/src/multiarray/multiarraymodule.c

  Log Message:
  -----------
  fixup


Compare: https://github.com/numpy/numpy/compare/503f66af0aaa^...7d442b06cc3f


More information about the Numpy-svn mailing list