Example #1
0
def test_economics_inputs(theme_menu, core, tidal_project, var_tree):

    theme_name = "Economics"
    data_menu = DataMenu()

    project_menu = ProjectMenu()
    project = deepcopy(tidal_project)
    theme_menu.activate(core, project, theme_name)
    project_menu.initiate_dataflow(core, project)
    data_menu.load_data(core, project)

    economics_branch = var_tree.get_branch(core, project, theme_name)
    economics_input_status = economics_branch.get_input_status(core, project)

    assert "project.estimate_energy_record" in economics_input_status
def test_moorings_inputs(module_menu, core, tidal_project, var_tree):

    mod_name = "Mooring and Foundations"
    data_menu = DataMenu()

    project_menu = ProjectMenu()
    project = deepcopy(tidal_project)
    module_menu.activate(core, project, mod_name)
    project_menu.initiate_dataflow(core, project)
    data_menu.load_data(core, project)

    moorings_branch = var_tree.get_branch(core, project, mod_name)

    moorings_input_status = moorings_branch.get_input_status(core, project)

    assert "device.dry_beam_area" in moorings_input_status
Example #3
0
def test_electrical_inputs(module_menu, core, tidal_project, var_tree):

    mod_name = "Electrical Sub-Systems"
    #    project_menu = ProjectMenu()
    data_menu = DataMenu()
    project_menu = ProjectMenu()

    project = deepcopy(tidal_project)
    module_menu.activate(core, project, mod_name)
    project_menu.initiate_dataflow(core, project)
    data_menu.load_data(core, project)

    electrical_branch = var_tree.get_branch(core, project, mod_name)

    electrical_input_status = electrical_branch.get_input_status(core, project)

    assert "component.transformers" in electrical_input_status
Example #4
0
def test_reliability_inputs(theme_menu, core, tidal_project, var_tree):

    theme_name = "Reliability"
    data_menu = DataMenu()

    project_menu = ProjectMenu()
    project = deepcopy(tidal_project)
    theme_menu.activate(core, project, theme_name)
    project_menu.initiate_dataflow(core, project)
    data_menu.load_data(core, project)

    reliability_branch = var_tree.get_branch(core, project, theme_name)

    reliability_input_status = reliability_branch.get_input_status(
        core, project)

    assert reliability_input_status is not None
Example #5
0
def test_environmental_inputs(theme_menu, core, tidal_project, var_tree):

    theme_name = "Environmental Impact Assessment (Experimental)"
    data_menu = DataMenu()

    project_menu = ProjectMenu()
    project = deepcopy(tidal_project)
    theme_menu.activate(core, project, theme_name)
    project_menu.initiate_dataflow(core, project)
    data_menu.load_data(core, project)

    environmental_branch = var_tree.get_branch(core, project, theme_name)

    environmental_input_status = environmental_branch.get_input_status(
        core, project)

    assert "project.hydro_collision_risk_weight" in environmental_input_status
def test_maintenance_inputs(module_menu, core, wave_project, var_tree):
        
    mod_name = 'Operations and Maintenance'
    data_menu = DataMenu()
    project_menu = ProjectMenu()
    
    project = deepcopy(wave_project)
    module_menu.activate(core, project, mod_name)
    project_menu.initiate_dataflow(core, project)
    data_menu.load_data(core, project)
    
    operations_branch = var_tree.get_branch(core, project, mod_name)
   
    
    operations_input_status = operations_branch.get_input_status(core,
                                                                   project)
                                                    
    assert "options.operations_inspections" in operations_input_status
Example #7
0
def test_installation_inputs(module_menu, core, tidal_project, var_tree):
        
    mod_name = "Installation"
    data_menu = DataMenu()
    project_menu = ProjectMenu()
    
    project = deepcopy(tidal_project) 
    module_menu.activate(core, project, mod_name)
    project_menu.initiate_dataflow(core, project)
    data_menu.load_data(core, project)
    
    installation_branch = var_tree.get_branch(core, project, mod_name)
   
    
    installation_input_status = installation_branch.get_input_status(core,
                                                                   project)
                                                    
    assert "component.ports" in installation_input_status