File: 0010-fix-syntax-error.patch

package info (click to toggle)
xraylarch 0.9.81%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 118,072 kB
  • sloc: python: 72,755; fortran: 6,978; makefile: 1,878; ansic: 1,562; sh: 155; javascript: 104
file content (29 lines) | stat: -rw-r--r-- 1,376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca@debian.org>
Date: Thu, 14 Dec 2023 15:15:00 +0100
Subject: fix syntax error

---
 history/xsw/YongsCode/SimpleParratt_Panel.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/history/xsw/YongsCode/SimpleParratt_Panel.py b/history/xsw/YongsCode/SimpleParratt_Panel.py
index a13adce..ed9201a 100755
--- a/history/xsw/YongsCode/SimpleParratt_Panel.py
+++ b/history/xsw/YongsCode/SimpleParratt_Panel.py
@@ -308,8 +308,8 @@ class Plot(wx.Dialog):
             thc_layer=(2.*delta_layer)**(0.5)*180./math.pi  # critical angle in deg
             if ii==1:
                 thc_toplayer=thc_layer
-            print('%4.1f \t %s \t %4.4f \t %4.4f \t %4.1f \t %s\n' % \)
-                (eV0, layer1.composition+'-'+layer1.tag, thc_layer, thc_layer*math.pi/180.*1000., la_layer, layer1.density)
+            print('%4.1f \t %s \t %4.4f \t %4.4f \t %4.1f \t %s\n' % \
+                (eV0, layer1.composition+'-'+layer1.tag, thc_layer, thc_layer*math.pi/180.*1000., la_layer, layer1.density))
         th_step=0.001
         th_range=numpy.arange(0.000, thc_toplayer*12.0, th_step)  # angular range
         depths=[0.0]  # calculate efield intensity at air/film interface
@@ -392,5 +392,3 @@ class Plot(wx.Dialog):
     def OnQuit(self, event):
         self.plot_on=0
         self.Destroy()
-
-