hestia_earth.utils.model.find_primary_product

hestia_earth.utils.model.find_primary_product(cycle)[source]

Return the Product of a Cycle which is set to primary, None if none present.

Parameters

cycle (dict) – The JSON-LD of the Cycle.

Returns

The primary Product.

Return type

dict