Skip to content
Snippets Groups Projects

Add DataHandling.add_arrays

Merged Stephan Seitz requested to merge seitz/pystencils:Datahandling.add_arrays into master
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 1b4ace3e
    Add DataHandling.add_arrays · 1b4ace3e
    Stephan Seitz authored
    This adds a function for lazy people who want to write
    
    ```python
    dh = create_data_handling((20, 30))
    dh.add_arrays('x, y(9), z')
    ```
    
    instead of
    
    ```python
    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.
Loading