Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 876
    • Issues 876
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 234
    • Merge requests 234
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Merge requests
  • !10086

Improve doc and warning message on numpy memory error

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Nicolas Vuaille requested to merge nicolas.vuaille/vtk:NumpyArrayCreation into master Mar 24, 2023
  • Overview 36
  • Commits 1
  • Pipelines 6
  • Changes 1

Improve documentation about dataset_adaptor.append(array, name) method. Specially, specify to cases of array:

  • shape[0] is matching number of elements so array is used "as is"
  • otherwise array is copied at each index of a newarray, where newarray.shape[0] is the number of element

In the second case, numpy may throw a MemoryException because of a too big memory requirement. Handle this to add explanation about the shape expectation.

Edited Mar 29, 2023 by Nicolas Vuaille
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: NumpyArrayCreation