PyCOMPLETE / PyECLOUD

PyECLOUD code for the simulation of electron cloud effects in particle accelerators. More info at: https://github.com/PyCOMPLETE/PyECLOUD/wiki
21 stars 11 forks source link

Sey furman pivi #98

Closed erwulff closed 5 years ago

giadarol commented 5 years ago

To do:

e extract_energy spectra in perfect_absorber

giadarol commented 5 years ago

Please clean up this part:

        events = flag_truesec
        event_type = flag_truesec
        if n_add_total != 0:
            events_add = np.repeat(event_type, n_add)
            events = np.concatenate([event_type, events_add])
        extended_event_type = events

        # extended_nel_emit_tot_events used for extraction of energy distributions
        extended_nel_emit_tot_events = np.concatenate([nel_emit_tot_events, nel_new_MPs])

        event_info = {'extended_nel_emit_tot_events': extended_nel_emit_tot_events,
                      'extended_event_type': extended_event_type,
}
giadarol commented 5 years ago

... and update manual on switch_no_increase_energy