]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use one statement per line in python files 7525/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 12 Dec 2018 15:05:54 +0000 (16:05 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 12 Dec 2018 16:08:52 +0000 (17:08 +0100)
contrib/utilities/parse_ctest_output.py
examples/step-55/reference.py

index 1aefdf83b1a9384a1e851d6837c996ba522051c4..7076ae57ce25f8fef7ba97dd7c78cc952bb2a41c 100644 (file)
@@ -70,19 +70,22 @@ def parse_revision(dirname):
 
     for test in testing.findall("Test"):
         fail=False
-        if test.attrib['Status']=="failed": fail=True
+        if test.attrib['Status']=="failed":
+            fail=True
         name = test.find('Name').text
         group = name.split('/')[0]
         status = 4
         if fail:
             text = test.find('Results').find('Measurement').find('Value').text
-            if text == None: text=""
+            if text == None:
+                text=""
             failtext = text.encode('utf-8')
             failtextlines = failtext.replace('"','').split('\n')
             failstatustxt = failtextlines[0].split(' ')[-1]
             for i in range(0,len(failtextlines)):
                 failtextlines[i] = failtextlines[i][0:80]
-                if failtextlines[i].startswith('FAILED: '): failtextlines[i]='FAILED: ...'
+                if failtextlines[i].startswith('FAILED: '):
+                    failtextlines[i]='FAILED: ...'
             failtext = '\n'.join(failtextlines[4:min(25,len(failtext))])
             statuslist=['CONFIGURE','BUILD','RUN','DIFF']
             if failstatustxt in statuslist:
index 29127f25103e407cdbf685ca0c73538ae1bf00b3..546b38333ba9ff636f1b6a4d89a5bddd2a2e4c3a 100644 (file)
@@ -4,9 +4,11 @@ from sympy.physics.vector import ReferenceFrame, gradient, divergence
 from sympy.vector import CoordSysCartesian
 
 R = ReferenceFrame('R')
-x = R[0]; y = R[1]
+x = R[0]
+y = R[1]
 
-a=-0.5; b=1.5
+a=-0.5
+b=1.5
 visc=1e-1
 lambda_=(1/(2*visc)-sqrt(1/(4*visc**2)+4*pi**2))
 print(" visc=%f" % visc)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.