Open azazellochg opened 1 year ago
The first issue can be solved by adding a .astype(int)
to line 172.
so it becomes: num_rays_to_each_ring = np.ceil(proportion*remainder_rays).astype(int)[::-1]
there is another one at line 90:
num_rays_to_each_ring = np.ceil(proportion*remainder_rays).astype(int)[::-1]
As the one with the examples. I think the examples are not fully up to date with the core implementation. So is beam_semi_angle
renamed to gun_beam_semi_angle
for the Model class constructor arguments.
After a fresh install and running python lens_example_pyqt.py I get:
For other scripts, e.g. python beam_tilt_shift_advanced_example_pyqt.py, I get: