INNER CODE UNIT · Python

__init__

hahnlab/CAFE5 · scripts/cfg_maker.py:8

    def __init__(self, my_args):
        # dealing with multiple simulation/inference runs (either through -n, or through -i)
        print my_args
        self.n_runs = int()
        self.instructions_list = list()

        try:
            if my_args.instr_path and my_args.number_runs != "1":
                exit('You can only run many simulations with the same parameters, or specify a file with instructions. Exiting...\n')
            elif my_args.instr_path:
                self.instr_path = my_args.instr_path
                self.read_instruction_file()
            else:
                self.n_runs = int(my_args.number_runs)
        except:
            exit('Either you did no specify the path to the instruction file (-i), or you did not specify the number of simulations (-n). Exiting...')

        # where to write .cfg files 

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…