Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • N NIFTy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ift
  • NIFTy
  • Issues
  • #10

Closed (moved)
(moved)
Open
Created Feb 25, 2016 by Theo Steininger@theos

Semi-advanced indexing is not recognized

a = np.arange(24).reshape((3, 4,2))
obj = distributed_data_object(a)

Semi-advanced indexing

a[(2,1,1),1]

yields

array([[18, 19],
   [10, 11],
   [10, 11]])

The ``indexinglist'' scheme in d2o expects either scalars or numpy arrays as tuple elements and therefore:

obj[(2,1,1),1] -> AttributeError                            

However,

obj[np.array((2,1,1)), 1] works.

Solution: Parse the elements and in doubt cast them to numpy arrays.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking