def test_model_save_only_aliases2(ms3, solver): of = OutputFilter(only_aliases=True) m1 = Model(ms3, historian_filter=of) item = m1.search_items('2')[0] columns_number = 0 for i, var in enumerate(item.get_variables()): var[0].alias = str(i) columns_number += 1 s1 = Simulation(m1, t_start=0, t_stop=1000, num=10, solver_type=solver) s1.solve() assert m1.historian_df.columns.size == columns_number
def test_1_item_model(ms1): m1 = Model(ms1) item = m1.search_items('test_item')[0] assert item.t1.P.value == 100