Skip to content
Snippets Groups Projects

Change `Field.__repr__` to match representation in `pystencils.fields`

Merged Stephan Seitz requested to merge seitz/pystencils:Field.__repr__ into master

repr of Field should look like

y: uint16_t[246,704,558]
x(3): float[20,40]

to match representation when using pystencils.fields

E.g.

In [3]: pystencils.fields('x: float32[20,40]')                                                                                                                                                                                                                                
Out[3]: x: float[20,40])

In [4]: pystencils.fields('x(3): float32[20,40]')                                                                                                                                                                                                                             
Out[4]: x(3): float[20,40])

Merge request reports

Pipeline #19942 passed

Pipeline passed for 8140cfbf on seitz:Field.__repr__

Checking approval status

Merged by Martin BauerMartin Bauer 5 years ago (Nov 21, 2019 7:28pm UTC)

Loading

Pipeline #19964 passed

Pipeline passed for 9888c32f on master

Test coverage 77.71% 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