|
29 | 29 | rot = Rotation.from_axes_angles(
|
30 | 30 | [1, 0, 0], 45, degrees=True
|
31 | 31 | ) # 45 degree rotation around x-axis
|
32 |
| -sim = gen.calculate_ed_data(phase=p, rotation=rot) |
| 32 | +sim = gen.calculate_diffraction2d(phase=p, rotation=rot) |
33 | 33 |
|
34 | 34 | sim.plot(show_labels=True) # plot the first (and only) diffraction pattern
|
35 | 35 |
|
|
47 | 47 | rot = Rotation.from_axes_angles(
|
48 | 48 | [1, 0, 0], (0, 15, 30, 45, 60, 75, 90), degrees=True
|
49 | 49 | ) # 45 degree rotation around x-axis
|
50 |
| -sim = gen.calculate_ed_data(phase=p, rotation=rot) |
| 50 | +sim = gen.calculate_diffraction2d(phase=p, rotation=rot) |
51 | 51 |
|
52 | 52 | sim.plot(show_labels=True) # plot the first diffraction pattern
|
53 | 53 |
|
|
69 | 69 | rot = Rotation.from_axes_angles(
|
70 | 70 | [1, 0, 0], (0, 15, 30, 45, 60, 75, 90), degrees=True
|
71 | 71 | ) # 45 degree rotation around x-axis
|
72 |
| -sim = gen.calculate_ed_data(phase=[p, p2], rotation=[rot, rot]) |
| 72 | +sim = gen.calculate_diffraction2d(phase=[p, p2], rotation=[rot, rot]) |
73 | 73 |
|
74 | 74 | sim.plot(
|
75 | 75 | include_direct_beam=True, show_labels=True, min_label_intensity=0.1
|
|
0 commit comments