Commit b7bbe507 authored by chazelas's avatar chazelas

Fixes :

 * bug in zmx export FiberAngle was used as on object instead of a value
parent 014add2c
# ristretto_sim
To launch the simulator : [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/git/https%3A%2F%2Fgitlab.unige.ch%2FBruno.Chazelas%2Fristretto_sim/master)
\ No newline at end of file
To launch the simulator : [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/git/https%3A%2F%2Fgitlab.unige.ch%2FBruno.Chazelas%2Fristretto_sim/master?filepath=spectro_notebook.ipynb)
\ No newline at end of file
......@@ -759,7 +759,7 @@ class Spectro_simulate():
def export_spectro_zmx(self,b):
with self.out:
op = zmxgen.optical_model()
f = 1e-3*c_[(arange(self.Nfiber.value)-floor(self.Nfiber.value/2))*self.Fiber_distance.value/tan(self.FiberAngle*pi/180),
f = 1e-3*c_[(arange(self.Nfiber.value)-floor(self.Nfiber.value/2))*self.Fiber_distance.value/tan(self.FiberAngle.value*pi/180),
(arange(self.Nfiber.value)-floor(self.Nfiber.value/2))*self.Fiber_distance.value]
f = self.CollFN.value/(0.5/ self.NA_fiber.value)*f
op.fields(fields=f)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment