src/setup.py
def read_input_file(input_file_name, files=False, simulation=False, analysis=False, file_names=False, param=False):
	"""
	read_input_file(input_file_name, files=False, simulation=False, analysis=False, param=False)

	Opens input_file_name and checks contents for simulation and/or analysis parameters to overwrite param dictionary
	"""

	if not file_names: file_names = get_file_name_defaults()
	if not param: param = get_param_defaults()

	with open(input_file_name, 'r') as infile:
		lines = infile.read().splitlines()
	input_list = (' '.join(lines)).split()

	if ('-nstep' in input_list): param['n_step'] = int(input_list[input_list.index('-nstep') + 1])
	if ('-save_step' in input_list): param['save_step'] = int(input_list[input_list.index('-save_step') + 1])

	if files: file_names = check_file_names(input_list, file_names)
	if simulation: param = check_sim_param(input_list, param)
	if analysis: param = check_analysis_param(input_list, param)

	return file_names, param

	read_input_file(input_file_name, files=False, simulation=False, analysis=False, param=False)

	Opens input_file_name and checks contents for simulation and/or analysis parameters to overwrite param dictionary
	
read_input_file(input_file_name, files=False, simulation=False, analysis=False, param=False)
Opens input_file_name and checks contents for simulation and/or analysis parameters to overwrite param dictionary
read_input_file ( input_file_name files = False simulation = False analysis = False param = False ) Opens input_file_name and checks contents for simulation and / or analysis parameters to overwrite param dictionary
def read_input_file(input_file_name, files=False, simulation=False, analysis=False, file_names=False, param=False):
	if not file_names: file_names = get_file_name_defaults()
	if not param: param = get_param_defaults()
	with open(input_file_name, 'r') as infile:
		lines = infile.read().splitlines()
	input_list = (' '.join(lines)).split()
	if ('-nstep' in input_list): param['n_step'] = int(input_list[input_list.index('-nstep') + 1])
	if ('-save_step' in input_list): param['save_step'] = int(input_list[input_list.index('-save_step') + 1])
	if files: file_names = check_file_names(input_list, file_names)
	if simulation: param = check_sim_param(input_list, param)
	if analysis: param = check_analysis_param(input_list, param)
	return file_names, param
def read_input_file ( input_file_name , files = False , simulation = False , analysis = False , file_names = False , param = False ) : if not file_names : file_names = get_file_name_defaults ( ) if not param : param = get_param_defaults ( ) with open ( input_file_name , 'r' ) as infile : lines = infile . read ( ) . splitlines ( ) input_list = ( ' ' . join ( lines ) ) . split ( ) if ( '-nstep' in input_list ) : param [ 'n_step' ] = int ( input_list [ input_list . index ( '-nstep' ) + 1 ] ) if ( '-save_step' in input_list ) : param [ 'save_step' ] = int ( input_list [ input_list . index ( '-save_step' ) + 1 ] ) if files : file_names = check_file_names ( input_list , file_names ) if simulation : param = check_sim_param ( input_list , param ) if analysis : param = check_analysis_param ( input_list , param ) return file_names , param
read_input_file(input_file_name, files=False, simulation=False, analysis=False, param=False)
Opens input_file_name and checks contents for simulation and/or analysis parameters to overwrite param dictionary
read_input_file ( input_file_name files = False simulation = False analysis = False param = False ) Opens input_file_name and checks contents for simulation and / or analysis parameters to overwrite param dictionary
"""
	read_input_file(input_file_name, files=False, simulation=False, analysis=False, param=False)

	Opens input_file_name and checks contents for simulation and/or analysis parameters to overwrite param dictionary
	"""
input_file_name
files
simulation
analysis
file_names
param