Commit eaae406a authored by Francesco Amadori's avatar Francesco Amadori
Browse files

Bug in berv[i] is not None and not np.isnan(berv[i]) resolved

parent 68342c5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ def main():
            corri2, hjdi2, vbar2 = helcorr_velocity(mjd[i], ra[i], dec[i], long, lat, alt)

            # print(f"Compare old: {corri} vs new {corri2} for mjd {mjd[i]}. Difference new - old {corri2 - corri}")
            if berv[i] is not None:
            if berv[i] is not None and not np.isnan(berv[i]):
                print(f"Order {i}: berv calc1 = {corri}, berv header = {berv[i]}, bervmax = {bervmax[i]}")
                corri = berv[i]
            if corr_zero: