Skip to content

Commit 8a59560

Browse files
ENH: improvements related to interface of tracking functions.
- improve docstring of line_pass and ring_pass functions; - fill lost_element and lost_turn with -1 for particles that were not lost; - lost_flag is now a list of booleans for each particle; - change order of arguments in element_pass, line_pass and ring_pass so that they are sorted by constant inputs, changing inputs and pure outputs; - create separated method to check if particle was lost; - in python interface: fill numpy array of initial tracking coordinates with the coordinates at the point where particles were lost. For surviving particles, nans are used.
1 parent 8521965 commit 8a59560

12 files changed

+622
-294
lines changed

include/trackcpp/dynap.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
struct DynApGridPoint {
2828
Pos<double> p; // Dislocation around closed-orbit
2929
unsigned int start_element;
30-
unsigned int lost_turn;
31-
unsigned int lost_element;
30+
int lost_turn;
31+
int lost_element;
3232
Plane::type lost_plane; // Plane::no_plane,Plane::x,Plane::y,Plane::z
3333
double nux1, nuy1; // tunes at first half number of turns
3434
double nux2, nuy2; // tunes at second half number of turns

0 commit comments

Comments
 (0)