Closed imansaj closed 6 years ago
Hi @imansaj,
I think you should be able to pass the ndarray
using the *
operator, although I have not tried:
SpectralColor(*my_array)
This assumes that your array spectral domain is as follows: [340, 830] with 10nm bins.
The instantiation could be improved but it requires a significant amount of work. If you are going down hard the spectral road, I would recommend using Colour which is more mature on that end.
Great It worked, thank you very much.
Glad to hear! :)
Hello. how can i import a numpy array containing intensity values for each wavelength as a spectralcolor object.
tnx