mikekatz04 / LISAanalysistools

Apache License 2.0
21 stars 9 forks source link

Fix for `Orbits.configure()` when specifying time array #21

Closed acorreia61201 closed 3 months ago

acorreia61201 commented 5 months ago

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.