Reputation: 70
I am building a model and I need to get the positions of some points inside a box (known volume). I am thinking on using
a) numpy.linspace(start,stop,30)
b) numpy.linspace(start,stop,3000)
from the same box, I think I need a tool to exclude the points from a) process.
Example as [2D] say that we have a line of length 20, and we need to distribute two types of lines: 1)10 pieces of 1 length, 2) 4 pieces of 2 length. -The space between piece(small line)from type 1 and any neighbors is equal whatever the neighbor is type 1 or 2. -The number of small pieces are equally distributed around type 2 piece.
Upvotes: 1
Views: 186
Reputation: 70
This solution is the only one that worked for me:
xyz
file, by any other software like jmole.Upvotes: 1
Reputation: 663
Does
filtered_b = np.setdiff1d(np.linspace(start, stop, 3000), np.linspace(start, stop, 30))
This chooces points that are b that are not in a.
Upvotes: 0