demisjohn / pyFIMM

Python Interface to PhotonDesign's FimmWave/FimmProp software.
15 stars 4 forks source link

strip_array(): handle multi-dimensional arrays. #86

Open demisjohn opened 8 years ago

demisjohn commented 8 years ago

As of 2a15fc2, strip_array() can handle 2D arrays. Could upgrade to handle N-dimensional arrays, by checking np.shape( np.array( FimmArray ) ) and choosing recursion level from that.

Only needed if FimmWave ever returns arrays with dimension > 2 - haven't come across that case yet.