I want to calculate the minimum and maximum values of array A but I want to exclude all values less than 1e-12. I present the current and expected outputs.
import numpy as np
A=np.array([[9.49108487e-05],
[1.05634586e-19],
[5.68676707e-17],
[1.02453254e-06],
[2.48792902e-16],
[1.02453254e-06]])
Min=np.min(A)
Max=np.max(A)
print(Min,Max)
The current output is
1.05634586e-19 9.49108487e-05
The expected output is
1.02453254e-06 9.49108487e-05