def test_internalpopulation_df(): i1 = InternalPopulation(v_min=0, v_max=.02) i2 = InternalPopulation(**dict_from_df(i1.to_df())) compare_dicts(i1.to_dict(), i2.to_dict())
def test_enternalpopulation_df(): e1 = ExternalPopulation(100) e2 = ExternalPopulation(**dict_from_df(e1.to_df())) compare_dicts(e1.to_dict(), e2.to_dict())
def test_internalpopulation_df(): i1 = InternalPopulation(v_min=0, v_max=0.02) i2 = InternalPopulation(**dict_from_df(i1.to_df())) compare_dicts(i1.to_dict(), i2.to_dict())
def compare(o1, o2): compare_dicts(o1.to_dict(), o2.to_dict())