simple_grid_visualization.py
def make_points(atom,val_range,root,mapping):#TODO -- make sure this works
	'''
	Function that makes the points needed for the types file.
	'''

	if not os.path.isdir(root+atom):
		os.mkdir(root+atom)

	counter=0
	for x in val_range:
		pos=[x,0.0,0.0]
		pos=struct.pack('f'*len(pos),*pos)
		identity=[mapping]
		identity=struct.pack('i'*len(identity),*identity)
		with open(root+atom+'/'+atom+'_'+str(counter)+'.gninatypes','wb') as f:
			f.write(pos)
			f.write(identity)
		counter+=1

	Function that makes the points needed for the types file.
	
Function that makes the points needed for the types file.
Function that makes the points needed for the types file .
def make_points(atom,val_range,root,mapping):
	if not os.path.isdir(root+atom):
		os.mkdir(root+atom)
	counter=0
	for x in val_range:
		pos=[x,0.0,0.0]
		pos=struct.pack('f'*len(pos),*pos)
		identity=[mapping]
		identity=struct.pack('i'*len(identity),*identity)
		with open(root+atom+'/'+atom+'_'+str(counter)+'.gninatypes','wb') as f:
			f.write(pos)
			f.write(identity)
		counter+=1
def make_points ( atom , val_range , root , mapping ) : if not os . path . isdir ( root + atom ) : os . mkdir ( root + atom ) counter = 0 for x in val_range : pos = [ x , 0.0 , 0.0 ] pos = struct . pack ( 'f' * len ( pos ) , * pos ) identity = [ mapping ] identity = struct . pack ( 'i' * len ( identity ) , * identity ) with open ( root + atom + '/' + atom + '_' + str ( counter ) + '.gninatypes' , 'wb' ) as f : f . write ( pos ) f . write ( identity ) counter += 1
Function that makes the points needed for the types file.
Function that makes the points needed for the types file .
#TODO -- make sure this works '''
	Function that makes the points needed for the types file.
	'''
atom
val_range
root
mapping