RUFAS.biophysical.feed_storage.purchased_feed_storage module#

class RUFAS.biophysical.feed_storage.purchased_feed_storage.PurchasedFeed(rufas_id: int, dry_matter_mass: float, storage_time: date)#

Bases: object

Stores the identifier, available mass and storage date of a purchased feed.

Parameters#

rufas_idRUFAS_ID

RuFaS ID of the feed.

dry_matter_massRUFAS_ID

Dry matter mass of the feed still available.

storage_timedate

Date on which this feed was purchased.

rufas_id: int#
dry_matter_mass: float#
storage_time: date#
remove_dry_matter_mass(mass_to_remove: float) None#

Removes the specified amount of dry matter mass from the crop.

__init__(rufas_id: int, dry_matter_mass: float, storage_time: date) None#
class RUFAS.biophysical.feed_storage.purchased_feed_storage.PurchasedFeedStorage#

Bases: object

Storage child class which holds feeds which were purchased and are not stored alongside farm-grown feeds.

__init__() None#
receive_feed(purchased_feed: PurchasedFeed) None#
remove_empty_crops() None#

Removes all feeds with no dry matter mass left.

report_stored_feeds(time: RufasTime) None#

Reports dry matter of stored feeds.

create_consolidated_feed_report() dict[int, float]#

Creates report of all stored feeds consolidated by type.