# ------------------------------------------------------------------
#
#	RDF and CN related analysis	
#
# ------------------------------------------------------------------

import sys
py_path = '../../../../postprocessing/'
sys.path.insert(0, py_path)
py_path = '../../../../postprocessing/io_operations/'
sys.path.insert(0, py_path)

import cn_and_rdf_lmp as crl
import io_module as io

#
# Input
#

# RDF and CN intput file
rdf_file = '../nafion.rdf'

# Output file
out_file = 'rdf_cn_averaged.txt'

# Number of bins
nbins = 300

# Number of columns
ncols = 10

crl.compute_time_average(rdf_file, out_file, nbins, ncols)



[((9, 0, 9, 27), 'sys.path.insert', 'sys.path.insert', ({(9, 16, 9, 17): '(0)', (9, 19, 9, 26): 'py_path'}, {}), '(0, py_path)', False, 'import sys\n'), ((11, 0, 11, 27), 'sys.path.insert', 'sys.path.insert', ({(11, 16, 11, 17): '(0)', (11, 19, 11, 26): 'py_path'}, {}), '(0, py_path)', False, 'import sys\n'), ((32, 0, 32, 58), 'cn_and_rdf_lmp.compute_time_average', 'crl.compute_time_average', ({(32, 25, 32, 33): 'rdf_file', (32, 35, 32, 43): 'out_file', (32, 45, 32, 50): 'nbins', (32, 52, 32, 57): 'ncols'}, {}), '(rdf_file, out_file, nbins, ncols)', True, 'import cn_and_rdf_lmp as crl\n')]