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

Pipeline #21006 passed

Pipeline passed for 023e9659 on seitz:Datahandling.add_arrays

Checking approval status

Merged by Martin BauerMartin Bauer 5 years ago (Jan 14, 2020 1:09pm UTC)

Loading

Pipeline #21016 passed

Pipeline passed for b6c9f64c on master

Test coverage 77.56% from 0 jobs

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