I have a statement in my Matlab code:
a = find(abs(ASE_lamda-YDFA_lam_s)<1e-15);
After to execution I get the output as:
octave:50> whos a
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
a 1x1 8 double
Total is 1 element using 8 bytes
octave:51> a
a = 33
I have migrated the code to Python using NumPy package in below method:
a = np.nonzero(np.abs(ASE_lamda-YDFA_lam_s)<1e-15)
But the type of variable a is tuple
(array([32]),)
What is the correct way to migrate the above code?