@staticmethod
    def set_vartree_inputs(driver, cases):
        nans = [float('NaN')] * len(cases)
        parameters = driver.get_parameters()
        for path, value in cases[0].get_inputs():
            if path not in parameters:
                driver.add_parameter(path)
            path = make_legal_path(path)
            driver.set('case_inputs.'+path, nans)

        for i, case in enumerate(cases):
            for path, value in case.get_inputs():
                path = make_legal_path(path)
                driver.set('case_inputs.%s[%d]'%(path,i), value)
Set ``case_inputs`` vartree on `driver` from `cases`.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/case.py/Case.set_vartree_inputs