[Numpy-discussion] RuntimeWarning: divide by zero encountered in log
Next message (by thread): [Numpy-discussion] numpy.nanmin, numpy.nanmax, and scipy.stats.nanmean.Look at the numpy.seterr function.
Next message (by thread): [Numpy-discussion] numpy.nanmin, numpy.nanmax, and scipy.stats.nanmean.Look at the numpy.seterr function.
If the above is intended to be Python code, it has problems. Rewrite it thusly?Then let a numpy expert finish the task. -- Bob Gailer 919-636-4239 Chapel Hill, NC.
Next message (by thread): [Numpy-discussion] Create numpy array from a list error.It seems like a memory problem to me. This was reinforced when I tried to > break the dataset into 3 chunks and stack the resulting arrays - I got an > error message saying "memory error". >
I think this will get you some of the way there: import numpy as np x = ... # Here's your 2D atomic distance array # Create an indexing array index = np.arange( x.size ).reshape( x.shape ) # Find the non-zero indices items = index[ x !=