wavenumber_grid(49.73, 168.31, 0.847)[-1] # 168.31000000000017
The docstring promises a strictly exclusive upper bound; np.arange accumulation crosses it for some min/max/step triples, and build_spectrum then writes a row at the bound. The default parameters never trigger it.
The docstring promises a strictly exclusive upper bound;
np.arangeaccumulation crosses it for some min/max/step triples, andbuild_spectrumthen writes a row at the bound. The default parameters never trigger it.