def add_release(cb, label='Mendelian', number=1000):
    add_mosquito_release(cb, start_day=200, species='arabiensis', repetitions=1, number=number,
                     released_genome=[['X', 'Y'], ['b0', 'b0']])
    add_mosquito_release(cb, start_day=200, species='arabiensis', repetitions=1, number=number,
                         released_genome=[['X', 'X'], ['b0', 'b0']])

    return {'Label': label, 'Number': number}
def add_release_single_node(cb, number=1000, start_day=180):
    add_mosquito_release(cb,
                         start_day=start_day,
                         species='gambiae',
                         repetitions=1,
                         number=number,
                         released_genome=[['X', 'Y'], ['a1', 'a1']])

    return {'Release_Number': number, 'Start_Day': start_day}
def add_release(cb, number=100, num_nodes=1, start_day=180):
    nodelist = find_n_largest(n=num_nodes)
    add_mosquito_release(cb,
                         start_day=start_day,
                         species='gambiae',
                         repetitions=1,
                         number=number,
                         released_genome=[['X', 'Y'], ['a1', 'a1']],
                         nodeIDs=nodelist)

    return {
        'Release_Number': number,
        'Num_Nodes': num_nodes,
        'Start_Day': start_day
    }
def add_release(cb, number=1000, label='Mendelian'):

    species = 'funestus'
    add_mosquito_release(cb,
                         start_day=200,
                         species=species,
                         repetitions=1,
                         number=number,
                         released_genome=[['X', 'Y'], ['b0', 'b0']])
    add_mosquito_release(cb,
                         start_day=200,
                         species=species,
                         repetitions=1,
                         number=number,
                         released_genome=[['X', 'X'], ['b0', 'b0']])

    return {'Number': number, 'Label': label}
Ejemplo n.º 5
0
 def __call__(self, cb):
     return add_mosquito_release(cb,
                                 self.start_day,
                                 self.vector_species,
                                 self.number_vectors,
                                 repetitions=self.repetitions,
                                 tsteps_btwn=self.tsteps_btwn,
                                 nodes=self.nodes)