Skip to content

Commit 1814294

Browse files
author
edgar1993a
committed
sandbox script
1 parent ab3403f commit 1814294

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sandbox/test_grazingincidence.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@
2121
data_file = UtilsTest.getimage("Y6.edf")
2222
data_2 = fabio.open(data_file).data
2323

24+
results = []
25+
fig, axes = subplots(ncols=4, nrows=2)
26+
for sample_orientation in range(1, 9):
27+
res = fi_2.integrate2d_grazing_incidence(data=data_2, incident_angle=0.0, tilt_angle=0.0, sample_orientation=sample_orientation)
28+
results.append(res)
29+
plot2d(res, ax=axes.ravel()[sample_orientation-1])
30+
plt.show()
31+
32+
33+
34+
2435
for fi, data in zip((fi_1, fi_2), (data_1, data_2)):
2536
res2d_1 = fi.integrate2d_grazing_incidence(data=data, incident_angle=0.0, tilt_angle=0.0, sample_orientation=1)
2637
res2d_2 = fi.integrate2d_grazing_incidence(data=data, incident_angle=0.2, tilt_angle=0.0, sample_orientation=1)

0 commit comments

Comments
 (0)