Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Harke
pystencils
Commits
da0c82fe
Commit
da0c82fe
authored
Feb 09, 2017
by
Martin Bauer
Browse files
Bugfixes
parent
be926709
Changes
1
Hide whitespace changes
Inline
Side-by-side
field.py
View file @
da0c82fe
...
...
@@ -239,6 +239,11 @@ class Field:
def
__getitem__
(
self
,
*
idx
):
return
self
.
__call__
(
*
idx
)
def
__iter__
(
self
):
"""This is necessary to work with parts of sympy that test if an object is iterable (e.g. simplify).
The __getitem__ would make it iterable"""
raise
TypeError
(
"Field access is not iterable"
)
@
property
def
field
(
self
):
return
self
.
_field
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment