FEM: code formating, Python flake8: W503

This commit is contained in:
Bernd Hahnebach
2018-01-01 21:03:43 +01:00
committed by wmayer
parent 0e65035ed4
commit fdc2086d11
4 changed files with 14 additions and 14 deletions

View File

@@ -178,11 +178,11 @@ class Builder(object):
for solverSection in eqSection[self._ACTIVE_SOLVERS]:
if solverSection not in allSections:
allSections.append(solverSection)
if (BODY_FORCE in section
and section[BODY_FORCE] not in allSections):
if (BODY_FORCE in section and
section[BODY_FORCE] not in allSections):
allSections.append(section[BODY_FORCE])
if (INITIAL_CONDITION in section
and section[INITIAL_CONDITION] not in allSections):
if (INITIAL_CONDITION in section and
section[INITIAL_CONDITION] not in allSections):
allSections.append(section[INITIAL_CONDITION])
for name, section in self._boundaries.items():
section["Name"] = name
@@ -331,8 +331,8 @@ class _Writer(object):
return it.next()
def _isCollection(self, data):
return (not isinstance(data, str)
and isinstance(data, collections.Iterable))
return (not isinstance(data, str) and
isinstance(data, collections.Iterable))
def _checkScalar(self, dataType):
if issubclass(dataType, int):