NutMEG.culture package

Submodules

NutMEG.culture.culture module

Module to manage all organism behaviour in NutMEG. A culture can contain one or more hordes and colonies, each of those based on (or including) a base_organism. Each horde/organism requires a maintainer, respirator and CHNOPSexchanger object (or, they can just use the default).

class NutMEG.culture.culture.culture(hordes=[], colonies=[], lite=False)

Bases: object

Class to contain all organisms in the ecosystem, separated into hordes and colonies.

hordes

List of different hordes in the system

Type

lst

colonies

List of different colonies in the system

Type

lst

lite

Whether the colonies are lite or not. lite colonies are not yet supported so please leave this as the default (False)

Type

bool, optional

output

Helper instance for generating the output and database filling info.

Type

culture_output

all()

Return a list of hosted organisms in the order, hordes, colonies.

full_output()

generate a full dictionary of everything being monitored in the culture, for every colony and horde.

full_output_datatypes()

Return the name and type of all parameters output monitors. Useful for database building.

get_growth_rates()

Return a list of the growth rates of the hosted organisms in the order hordes, colonies.

get_maintenance_fractions()

Return a list of the maintenance fractions of the hosted organisms in the order hordes, colonies.

get_metabolic_rates()

Return a list of the metabolic rates of the hosted organisms in the order hordes, colonies.

get_population(inactive=False)

Return the total number of hosted organisms

get_total_mass(inactive=False)

Return the total mass of the hosted organisms

get_total_volume(inactive=False)

Return the total volume of the hosted organisms

getmin_timestep(factorup=1.01)

Return the smallest time step for all of the organisms.

lite = False
refresh_output()

Refresh all of the data output dictionaries in the culture

take_step(t)

Advance all organisms by the passed time step

NutMEG.culture.culture_output module

class NutMEG.culture.culture_output.culture_output(hostculture)

Bases: object

appendvals()
buildbaseparams()
params = {}
paramtypelst()
refreshparams()

reset the parameter dictionary to have empty numpy arrays.

Module contents