Closed eoinell closed 4 years ago
Apologies, I thought that worked. @eoinell do you want to change it back to your suggested code as long as that works?
Or , Is it then impossible to remove the digit entirely as it ruins the 2D shape of the array? Instead do we have to replace it with a value?
I.e. Spectrum[np.isnan(spectrum)] = 0
See https://github.com/nanophotonics/nplab/issues/100#issuecomment-571866272
@wdeacon it should still work to remove them as there's no reason the 2 spectrometers will have the same spectrum length to begin with
Apologies, I thought that worked. @eoinell do you want to change it back to your suggested code as long as that works?
Or , Is it then impossible to remove the digit entirely as it ruins the 2D shape of the array? Instead do we have to replace it with a value?
I.e. Spectrum[np.isnan(spectrum)] = 0