RUFAS.routines.animal.ration.calf_ration module#

class RUFAS.routines.animal.ration.calf_ration.CalfRationManager#

Bases: object

Calf ration formulation is distinct from other animal types, and managed separately. Note that the ration formulated is a fixed ration; requirements used only for reporting

classmethod _get_ration() Dict[str, float | str]#

Harcoded calf ration.

Returns#

Dict[str, float | str]

Dictionary of formulated ration.

classmethod optimize() Dict[str, float | str]#

” Returns “optimized” calf ration.

Notes#

Use of calf nutrient requirements not implemented, hardcoded ration is returned.

Returns#

Dictionary of formulated ration.

classmethod calc_requirements(calf, feed: Dict[str, float], temp: float, animal_intake: Dict[str, int | float]) Dict[str, Dict[str, Any]]#

Calculate dietary intake and nutrient requirements for the calf.

Parameters#

calfCalf

Calf object

feedDict[str, float]

Instance of Feed class defined in feed.py.

tempfloat

Average temperature of the simulation day, C.

animal_intakeDict

Dictionary of calculated intake values.

Returns#

Dict[str, Dict[str, Any]]

Dictionary of requirement values and methods.

classmethod calc_intake(calf, feed: Dict[str, float], wean_day: int, wean_length: int, milk_type: str) Dict[str, float]#

Calculating calf intake values.

Parameters#

calfCalf

Calf object

feedDict[str, float]

Instance of Feed class defined in feed.py.

wean_dayint

Number of days after birth that calf is fully weaned from milk (or replacer).

wean_lengthint

Wean length of the calf, in days.

milk_typestring

Either “whole” or “replacer”.

Returns#

Dict[str, float]

Dictionary of intake values.