SiLab-Bonn / Scarce

Charge collection efficiency simulation for irradiated silicon detectors.
MIT License
1 stars 0 forks source link

Example: cce_3D fails #4

Open SinuoZhang opened 7 years ago

SinuoZhang commented 7 years ago
Traceback (most recent call last):
  File "E:\intership\Scarce-master\scarce\examples\cce_3D.py", line 126, in <module>
    cc_efficiency(biases, n_effs, t_e_trappings, t_h_trappings, t_e_1_trapping, t_h_1_trapping)
  File "E:\intership\Scarce-master\scarce\examples\cce_3D.py", line 46, in cc_efficiency
    edge_x, edge_y, charge = cc(bias=-20,
UnboundLocalError: local variable 'cc' referenced before assignment
SinuoZhang commented 7 years ago

A new "simple" version has been written. The charge collection (efficiency) maps for one pixel has been plotted

DavidLP commented 7 years ago

If you think that you fixed a bug, I would reomment to create a development branch and push your changes to it.