nanophotonics / nplab

Core functions and instrument scripts for the Nanophotonics lab experimental scripts
GNU General Public License v3.0
38 stars 15 forks source link

filtering NaNs before plotting in spectrometer base class #100 #101

Closed eoinell closed 4 years ago

wdeacon commented 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

YagoDel commented 4 years ago

See https://github.com/nanophotonics/nplab/issues/100#issuecomment-571866272

eoinell commented 4 years ago

@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