topology_graph=get_topology_graph(6), ).with_fitness_value(1), ) @pytest.fixture( scope='session', params=(lambda population: CaseData( selector=stk.RemoveMolecules( remover=stk.Best(2), selector=stk.Best(), ), population=population, selected=( stk.Batch( records=(population[2], ), fitness_values={population[2]: 2}, key_maker=stk.Inchi(), ), stk.Batch( records=(population[3], ), fitness_values={population[3]: 1}, key_maker=stk.Inchi(), ), stk.Batch( records=(population[4], ), fitness_values={population[4]: 1}, key_maker=stk.Inchi(), ), ), ), ), )
).with_fitness_value(100), stk.MoleculeRecord( topology_graph=get_topology_graph(8), ).with_fitness_value(1), ) @pytest.fixture( params=( CaseData( selector=stk.AboveAverage(), population=population1, selected=( stk.Batch( records=(population1[0], ), fitness_values={population1[0]: 10}, key_maker=stk.Inchi(), ), stk.Batch( records=(population1[0], ), fitness_values={population1[0]: 10}, key_maker=stk.Inchi(), ), stk.Batch( records=(population1[1], ), fitness_values={population1[1]: 9}, key_maker=stk.Inchi(), ), ), ), CaseData(
).with_fitness_value(2), stk.MoleculeRecord( topology_graph=get_topology_graph(5), ).with_fitness_value(1), stk.MoleculeRecord( topology_graph=get_topology_graph(6), ).with_fitness_value(1), ) @pytest.fixture( params=( CaseData( selector=stk.RemoveBatches( remover=stk.Worst(4), selector=stk.Best(), ), population=population1, selected=( stk.Batch( records=(population1[0], ), fitness_values={population1[0]: 10}, key_maker=stk.Inchi(), ), ), ), ), ) def remove_batches(request): return request.param