Skip to content
Snippets Groups Projects

Add DataHandling.add_arrays

Merged Stephan Seitz requested to merge seitz/pystencils:Datahandling.add_arrays into master

This adds a function for lazy people who want to write

dh = create_data_handling((20, 30))
x, y, z = dh.add_arrays('x, y(9), z')

instead of

dh = create_data_handling((20, 30))
dh.add_array('x')
dh.add_array('y', values_per_cell=9)
dh.add_array('z')

because in most cases you want to use more than one array.

Edited by Stephan Seitz

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading