def phase_6(phase_5_output_file, yaml): phase_5_output = open(phase_5_output_file.name, 'r') input_data = yaml.load(phase_5_output) phase_6_output_file = open("./.temp/phase_6_output.yaml", 'w') #pass 1 variable_hierarchies = lexemes.parse_for_variable_hierarchies( input_data, "__from__") #pass 2 split_config = yaml_augmentation.split_component_config( variable_hierarchies) #pass 3 with_ids = yaml_augmentation.add_component_ids(split_config) print with_ids yaml.dump(with_ids, phase_6_output_file) return phase_6_output_file
def phase_6(phase_5_output_file, yaml): phase_5_output = open(phase_5_output_file.name, 'r') input_data = yaml.load(phase_5_output) phase_6_output_file = open( os.path.join(tempfile.gettempdir(), "phase_6_output.yaml"), 'w') #pass 1 variable_hierarchies = lexemes.parse_for_variable_hierarchies( input_data, "__from__") #pass 2 split_config = yaml_augmentation.split_component_config( variable_hierarchies) #pass 3 container_split_config = yaml_augmentation.split_container_config( variable_hierarchies) #pass 4 with_ids = yaml_augmentation.add_execution_ids(container_split_config) print with_ids yaml.dump(with_ids, phase_6_output_file) return phase_6_output_file