I encountered an error when calling Orbits.configure with a time array input. Calling the method in this way returns an UnboundLocalError that points to an unset flag make_cpp in detector.py. I have added a line that sets make_cpp = True when specifying a time array. Additionally, I have added a line that calculates dt by taking the step size between the first two elements of the input, since otherwise dt is not automatically set. These fixes resolve the errors I encountered and should allow for proper orbit file initialization with a user-input time array.
I encountered an error when calling
Orbits.configure
with a time array input. Calling the method in this way returns anUnboundLocalError
that points to an unset flagmake_cpp
indetector.py
. I have added a line that setsmake_cpp = True
when specifying a time array. Additionally, I have added a line that calculatesdt
by taking the step size between the first two elements of the input, since otherwisedt
is not automatically set. These fixes resolve the errors I encountered and should allow for proper orbit file initialization with a user-input time array.