hestia-earth-models 0.74.17__py3-none-any.whl → 0.75.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hestia-earth-models might be problematic. Click here for more details.
- hestia_earth/models/__init__.py +0 -3
- hestia_earth/models/aware/scarcityWeightedWaterUse.py +2 -4
- hestia_earth/models/aware2_0/scarcityWeightedWaterUse.py +2 -5
- hestia_earth/models/chaudharyBrooks2018/utils.py +2 -2
- hestia_earth/models/cml2001Baseline/abioticResourceDepletionFossilFuels.py +3 -2
- hestia_earth/models/cml2001Baseline/abioticResourceDepletionMineralsAndMetals.py +13 -6
- hestia_earth/models/ecoalimV9/utils.py +3 -3
- hestia_earth/models/ecoinventV3/utils.py +2 -2
- hestia_earth/models/ecoinventV3AndEmberClimate/utils.py +2 -2
- hestia_earth/models/emissionNotRelevant/__init__.py +2 -2
- hestia_earth/models/environmentalFootprintV3_1/environmentalFootprintSingleOverallScore.py +1 -2
- hestia_earth/models/environmentalFootprintV3_1/soilQualityIndexLandOccupation.py +8 -5
- hestia_earth/models/faostat2018/utils.py +3 -3
- hestia_earth/models/frischknechtEtAl2000/ionisingRadiationKbqU235Eq.py +5 -4
- hestia_earth/models/geospatialDatabase/ecoClimateZone.py +2 -2
- hestia_earth/models/hestia/landCover_utils.py +8 -12
- hestia_earth/models/hestia/management.py +3 -3
- hestia_earth/models/hestia/seed_emissions.py +2 -2
- hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py +12 -9
- hestia_earth/models/ipcc2019/ch4ToAirExcreta.py +2 -2
- hestia_earth/models/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.py +2 -2
- hestia_earth/models/ipcc2019/pastureGrass_utils.py +6 -3
- hestia_earth/models/ipcc2019/utils.py +3 -2
- hestia_earth/models/linkedImpactAssessment/emissions.py +2 -2
- hestia_earth/models/mocking/search-results.json +1 -1
- hestia_earth/models/requirements.py +2 -2
- hestia_earth/models/utils/aggregated.py +2 -2
- hestia_earth/models/utils/background_emissions.py +6 -5
- hestia_earth/models/utils/ecoClimateZone.py +7 -8
- hestia_earth/models/utils/excretaManagement.py +3 -3
- hestia_earth/models/utils/feedipedia.py +7 -7
- hestia_earth/models/utils/input.py +2 -2
- hestia_earth/models/utils/liveAnimal.py +4 -4
- hestia_earth/models/utils/lookup.py +15 -20
- hestia_earth/models/utils/property.py +3 -3
- hestia_earth/models/utils/term.py +5 -5
- hestia_earth/models/version.py +1 -1
- hestia_earth/orchestrator/__init__.py +0 -3
- hestia_earth/orchestrator/models/transformations.py +2 -2
- {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/METADATA +10 -14
- {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/RECORD +44 -668
- {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/WHEEL +1 -1
- {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/top_level.txt +0 -1
- hestia_earth/__init__.py +0 -1
- tests/models/__init__.py +0 -0
- tests/models/agribalyse2016/__init__.py +0 -0
- tests/models/agribalyse2016/test_fuelElectricity.py +0 -42
- tests/models/agribalyse2016/test_machineryInfrastructureDepreciatedAmountPerCycle.py +0 -36
- tests/models/akagiEtAl2011/__init__.py +0 -0
- tests/models/akagiEtAl2011/test_ch4ToAirCropResidueBurning.py +0 -33
- tests/models/akagiEtAl2011/test_nh3ToAirCropResidueBurning.py +0 -33
- tests/models/akagiEtAl2011/test_noxToAirCropResidueBurning.py +0 -33
- tests/models/akagiEtAl2011/test_pm25ToAirCropResidueBurning.py +0 -33
- tests/models/akagiEtAl2011/test_so2ToAirCropResidueBurning.py +0 -33
- tests/models/akagiEtAl2011/test_utils.py +0 -19
- tests/models/aware/__init__.py +0 -0
- tests/models/aware/test_scarcityWeightedWaterUse.py +0 -57
- tests/models/aware2_0/__init__.py +0 -0
- tests/models/aware2_0/test_scarcityWeightedWaterUse.py +0 -58
- tests/models/chaudharyBrooks2018/__init__.py +0 -0
- tests/models/chaudharyBrooks2018/test_damageToTerrestrialEcosystemsLandOccupation.py +0 -58
- tests/models/chaudharyBrooks2018/test_damageToTerrestrialEcosystemsLandTransformation.py +0 -58
- tests/models/chaudharyBrooks2018/test_damageToTerrestrialEcosystemsTotalLandUseEffects.py +0 -20
- tests/models/cml2001Baseline/__init__.py +0 -0
- tests/models/cml2001Baseline/test_abioticResourceDepletionFossilFuels.py +0 -141
- tests/models/cml2001Baseline/test_abioticResourceDepletionMineralsAndMetals.py +0 -105
- tests/models/cml2001Baseline/test_eutrophicationPotentialExcludingFate.py +0 -23
- tests/models/cml2001Baseline/test_resourceUseEnergyDepletionDuringCycle.py +0 -136
- tests/models/cml2001Baseline/test_resourceUseEnergyDepletionInputsProduction.py +0 -23
- tests/models/cml2001Baseline/test_resourceUseMineralsAndMetalsDuringCycle.py +0 -58
- tests/models/cml2001Baseline/test_resourceUseMineralsAndMetalsInputsProduction.py +0 -23
- tests/models/cml2001Baseline/test_terrestrialAcidificationPotentialIncludingFateAverageEurope.py +0 -25
- tests/models/cml2001NonBaseline/__init__.py +0 -0
- tests/models/cml2001NonBaseline/test_eutrophicationPotentialIncludingFateAverageEurope.py +0 -23
- tests/models/cml2001NonBaseline/test_terrestrialAcidificationPotentialExcludingFate.py +0 -23
- tests/models/cycle/__init__.py +0 -0
- tests/models/cycle/animal/__init__.py +0 -0
- tests/models/cycle/animal/input/__init__.py +0 -0
- tests/models/cycle/animal/input/test_hestiaAggregatedData.py +0 -40
- tests/models/cycle/animal/input/test_properties.py +0 -55
- tests/models/cycle/animal/test_milkYield.py +0 -30
- tests/models/cycle/animal/test_properties.py +0 -20
- tests/models/cycle/completeness/__init__.py +0 -0
- tests/models/cycle/completeness/test_animalFeed.py +0 -14
- tests/models/cycle/completeness/test_cropResidue.py +0 -19
- tests/models/cycle/completeness/test_electricityFuel.py +0 -21
- tests/models/cycle/completeness/test_excretaManagement.py +0 -14
- tests/models/cycle/completeness/test_freshForage.py +0 -21
- tests/models/cycle/completeness/test_material.py +0 -18
- tests/models/cycle/completeness/test_seed.py +0 -36
- tests/models/cycle/completeness/test_soilAmendment.py +0 -23
- tests/models/cycle/input/__init__.py +0 -0
- tests/models/cycle/input/test_hestiaAggregatedData.py +0 -91
- tests/models/cycle/input/test_properties.py +0 -55
- tests/models/cycle/input/test_value.py +0 -41
- tests/models/cycle/post_checks/__init__.py +0 -0
- tests/models/cycle/post_checks/test_cache.py +0 -8
- tests/models/cycle/post_checks/test_otherSites.py +0 -15
- tests/models/cycle/post_checks/test_site.py +0 -26
- tests/models/cycle/practice/__init__.py +0 -0
- tests/models/cycle/practice/test_landCover.py +0 -27
- tests/models/cycle/practice/test_value.py +0 -52
- tests/models/cycle/pre_checks/__init__.py +0 -0
- tests/models/cycle/pre_checks/test_otherSites.py +0 -21
- tests/models/cycle/pre_checks/test_site.py +0 -33
- tests/models/cycle/product/__init__.py +0 -0
- tests/models/cycle/product/test_currency.py +0 -41
- tests/models/cycle/product/test_economicValueShare.py +0 -158
- tests/models/cycle/product/test_price.py +0 -29
- tests/models/cycle/product/test_primary.py +0 -75
- tests/models/cycle/product/test_properties.py +0 -32
- tests/models/cycle/product/test_revenue.py +0 -32
- tests/models/cycle/product/test_value.py +0 -41
- tests/models/cycle/test_aboveGroundCropResidueTotal.py +0 -20
- tests/models/cycle/test_completeness.py +0 -51
- tests/models/cycle/test_cycleDuration.py +0 -31
- tests/models/cycle/test_endDate.py +0 -38
- tests/models/cycle/test_otherSitesArea.py +0 -68
- tests/models/cycle/test_otherSitesUnusedDuration.py +0 -54
- tests/models/cycle/test_post_checks.py +0 -11
- tests/models/cycle/test_pre_checks.py +0 -11
- tests/models/cycle/test_siteArea.py +0 -51
- tests/models/cycle/test_siteDuration.py +0 -83
- tests/models/cycle/test_siteUnusedDuration.py +0 -55
- tests/models/cycle/test_startDate.py +0 -58
- tests/models/cycle/test_startDateDefinition.py +0 -31
- tests/models/cycle/test_transformations.py +0 -17
- tests/models/dammgen2009/__init__.py +0 -0
- tests/models/dammgen2009/test_noxToAirExcreta.py +0 -58
- tests/models/data/__init__.py +0 -0
- tests/models/data/test_hestiaAggregatedData.py +0 -32
- tests/models/deRuijterEtAl2010/__init__.py +0 -0
- tests/models/deRuijterEtAl2010/test_nh3ToAirCropResidueDecomposition.py +0 -57
- tests/models/ecoalimV9/__init__.py +0 -0
- tests/models/ecoalimV9/test_cycle.py +0 -22
- tests/models/ecoalimV9/test_impact_assessment.py +0 -24
- tests/models/ecoinventV3/__init__.py +0 -0
- tests/models/ecoinventV3/test_cycle.py +0 -69
- tests/models/ecoinventV3AndEmberClimate/__init__.py +0 -0
- tests/models/ecoinventV3AndEmberClimate/test_cycle.py +0 -28
- tests/models/edip2003/__init__.py +0 -0
- tests/models/edip2003/test_ozoneDepletionPotential.py +0 -21
- tests/models/emepEea2019/__init__.py +0 -0
- tests/models/emepEea2019/test_co2ToAirFuelCombustion.py +0 -34
- tests/models/emepEea2019/test_n2OToAirFuelCombustionDirect.py +0 -34
- tests/models/emepEea2019/test_nh3ToAirExcreta.py +0 -36
- tests/models/emepEea2019/test_nh3ToAirFuelCombustion.py +0 -34
- tests/models/emepEea2019/test_nh3ToAirInorganicFertiliser.py +0 -64
- tests/models/emepEea2019/test_noxToAirFuelCombustion.py +0 -34
- tests/models/emepEea2019/test_pm10ToAirAnimalHousing.py +0 -21
- tests/models/emepEea2019/test_pm25ToAirAnimalHousing.py +0 -21
- tests/models/emepEea2019/test_so2ToAirFuelCombustion.py +0 -34
- tests/models/emepEea2019/test_tspToAirAnimalHousing.py +0 -21
- tests/models/emepEea2019/test_utils.py +0 -204
- tests/models/environmentalFootprintV3_1/__init__.py +0 -0
- tests/models/environmentalFootprintV3_1/test_environmentalFootprintSingleOverallScore.py +0 -138
- tests/models/environmentalFootprintV3_1/test_freshwaterEcotoxicityPotentialCtue.py +0 -26
- tests/models/environmentalFootprintV3_1/test_marineEutrophicationPotential.py +0 -21
- tests/models/environmentalFootprintV3_1/test_photochemicalOzoneCreationPotentialHumanHealthNmvocEq.py +0 -30
- tests/models/environmentalFootprintV3_1/test_scarcityWeightedWaterUse.py +0 -27
- tests/models/environmentalFootprintV3_1/test_soilQualityIndexLandOccupation.py +0 -160
- tests/models/environmentalFootprintV3_1/test_soilQualityIndexLandTransformation.py +0 -184
- tests/models/environmentalFootprintV3_1/test_soilQualityIndexTotalLandUseEffects.py +0 -78
- tests/models/epa2014/__init__.py +0 -0
- tests/models/epa2014/test_no3ToGroundwaterExcreta.py +0 -38
- tests/models/fantkeEtAl2016/__init__.py +0 -0
- tests/models/fantkeEtAl2016/test_damageToHumanHealthParticulateMatterFormation.py +0 -20
- tests/models/faostat2018/__init__.py +0 -0
- tests/models/faostat2018/product/__init__.py +0 -0
- tests/models/faostat2018/product/test_price.py +0 -117
- tests/models/faostat2018/test_coldCarcassWeightPerHead.py +0 -58
- tests/models/faostat2018/test_coldDressedCarcassWeightPerHead.py +0 -54
- tests/models/faostat2018/test_faostat_utils.py +0 -64
- tests/models/faostat2018/test_liveweightPerHead.py +0 -134
- tests/models/faostat2018/test_readyToCookWeightPerHead.py +0 -54
- tests/models/faostat2018/test_seed.py +0 -50
- tests/models/faostat2018/test_utils.py +0 -28
- tests/models/frischknechtEtAl2000/__init__.py +0 -0
- tests/models/frischknechtEtAl2000/test_ionisingRadiationKbqU235Eq.py +0 -138
- tests/models/geospatialDatabase/__init__.py +0 -0
- tests/models/geospatialDatabase/test_awareWaterBasinId.py +0 -27
- tests/models/geospatialDatabase/test_clayContent.py +0 -49
- tests/models/geospatialDatabase/test_croppingIntensity.py +0 -33
- tests/models/geospatialDatabase/test_drainageClass.py +0 -29
- tests/models/geospatialDatabase/test_ecoClimateZone.py +0 -32
- tests/models/geospatialDatabase/test_ecoregion.py +0 -27
- tests/models/geospatialDatabase/test_erodibility.py +0 -29
- tests/models/geospatialDatabase/test_heavyWinterPrecipitation.py +0 -29
- tests/models/geospatialDatabase/test_histosol.py +0 -33
- tests/models/geospatialDatabase/test_longFallowRatio.py +0 -33
- tests/models/geospatialDatabase/test_nutrientLossToAquaticEnvironment.py +0 -29
- tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py +0 -43
- tests/models/geospatialDatabase/test_potentialEvapotranspirationAnnual.py +0 -19
- tests/models/geospatialDatabase/test_potentialEvapotranspirationLongTermAnnualMean.py +0 -30
- tests/models/geospatialDatabase/test_potentialEvapotranspirationMonthly.py +0 -20
- tests/models/geospatialDatabase/test_precipitationAnnual.py +0 -20
- tests/models/geospatialDatabase/test_precipitationLongTermAnnualMean.py +0 -29
- tests/models/geospatialDatabase/test_precipitationMonthly.py +0 -20
- tests/models/geospatialDatabase/test_region.py +0 -27
- tests/models/geospatialDatabase/test_sandContent.py +0 -49
- tests/models/geospatialDatabase/test_siltContent.py +0 -37
- tests/models/geospatialDatabase/test_slope.py +0 -29
- tests/models/geospatialDatabase/test_slopeLength.py +0 -29
- tests/models/geospatialDatabase/test_soilPh.py +0 -43
- tests/models/geospatialDatabase/test_temperatureAnnual.py +0 -20
- tests/models/geospatialDatabase/test_temperatureLongTermAnnualMean.py +0 -29
- tests/models/geospatialDatabase/test_temperatureMonthly.py +0 -20
- tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py +0 -43
- tests/models/geospatialDatabase/test_totalPhosphorusPerKgSoil.py +0 -29
- tests/models/geospatialDatabase/test_utils.py +0 -39
- tests/models/geospatialDatabase/test_waterDepth.py +0 -28
- tests/models/globalCropWaterModel2008/__init__.py +0 -0
- tests/models/globalCropWaterModel2008/test_rootingDepth.py +0 -84
- tests/models/haversineFormula/__init__.py +0 -0
- tests/models/haversineFormula/transport/__init__.py +0 -0
- tests/models/haversineFormula/transport/test_distance.py +0 -28
- tests/models/hestia/__init__.py +0 -0
- tests/models/hestia/test_aboveGroundCropResidue.py +0 -40
- tests/models/hestia/test_aboveGroundCropResidueTotal.py +0 -41
- tests/models/hestia/test_brackishWater.py +0 -32
- tests/models/hestia/test_cationExchangeCapacityPerKgSoil.py +0 -34
- tests/models/hestia/test_coldCarcassWeightPerHead.py +0 -47
- tests/models/hestia/test_coldDressedCarcassWeightPerHead.py +0 -47
- tests/models/hestia/test_concentrateFeed.py +0 -52
- tests/models/hestia/test_cropResidueManagement.py +0 -53
- tests/models/hestia/test_croppingIntensity.py +0 -53
- tests/models/hestia/test_default_emissions.py +0 -32
- tests/models/hestia/test_default_resourceUse.py +0 -32
- tests/models/hestia/test_energyContentLowerHeatingValue.py +0 -40
- tests/models/hestia/test_excretaKgMass.py +0 -97
- tests/models/hestia/test_excretaKgN.py +0 -36
- tests/models/hestia/test_excretaKgVs.py +0 -36
- tests/models/hestia/test_feedConversionRatio.py +0 -64
- tests/models/hestia/test_flowingWater.py +0 -44
- tests/models/hestia/test_freshWater.py +0 -32
- tests/models/hestia/test_histosol.py +0 -24
- tests/models/hestia/test_inorganicFertiliser.py +0 -20
- tests/models/hestia/test_irrigatedTypeUnspecified.py +0 -59
- tests/models/hestia/test_landCover.py +0 -100
- tests/models/hestia/test_landCover_utils.py +0 -233
- tests/models/hestia/test_landOccupationDuringCycle.py +0 -75
- tests/models/hestia/test_landTransformation100YearAverageDuringCycle.py +0 -30
- tests/models/hestia/test_landTransformation20YearAverageDuringCycle.py +0 -29
- tests/models/hestia/test_liveAnimal.py +0 -64
- tests/models/hestia/test_longFallowRatio.py +0 -49
- tests/models/hestia/test_management.py +0 -80
- tests/models/hestia/test_materialsAndSubstrate.py +0 -49
- tests/models/hestia/test_milkYield.py +0 -58
- tests/models/hestia/test_netPrimaryProduction.py +0 -38
- tests/models/hestia/test_organicCarbonPerHa.py +0 -104
- tests/models/hestia/test_organicCarbonPerKgSoil.py +0 -34
- tests/models/hestia/test_organicCarbonPerM3Soil.py +0 -34
- tests/models/hestia/test_organicMatterPerKgSoil.py +0 -34
- tests/models/hestia/test_organicMatterPerM3Soil.py +0 -34
- tests/models/hestia/test_pToSurfaceWaterAquacultureSystems.py +0 -56
- tests/models/hestia/test_pastureGrass.py +0 -31
- tests/models/hestia/test_pastureSystem.py +0 -47
- tests/models/hestia/test_potentialEvapotranspirationAnnual.py +0 -32
- tests/models/hestia/test_potentialEvapotranspirationMonthly.py +0 -32
- tests/models/hestia/test_precipitationAnnual.py +0 -32
- tests/models/hestia/test_precipitationMonthly.py +0 -32
- tests/models/hestia/test_rainfallAnnual.py +0 -32
- tests/models/hestia/test_rainfallMonthly.py +0 -32
- tests/models/hestia/test_readyToCookWeightPerHead.py +0 -47
- tests/models/hestia/test_residueBurnt.py +0 -37
- tests/models/hestia/test_residueIncorporated.py +0 -48
- tests/models/hestia/test_residueLeftOnField.py +0 -37
- tests/models/hestia/test_residueRemoved.py +0 -32
- tests/models/hestia/test_salineWater.py +0 -32
- tests/models/hestia/test_seed_emissions.py +0 -27
- tests/models/hestia/test_slope.py +0 -23
- tests/models/hestia/test_slopeLength.py +0 -23
- tests/models/hestia/test_soilClassification.py +0 -72
- tests/models/hestia/test_soilMeasurement.py +0 -156
- tests/models/hestia/test_stockingDensityAnimalHousingAverage.py +0 -42
- tests/models/hestia/test_temperatureAnnual.py +0 -32
- tests/models/hestia/test_temperatureMonthly.py +0 -32
- tests/models/hestia/test_totalNitrogenPerKgSoil.py +0 -36
- tests/models/hestia/test_unknownPreSeasonWaterRegime.py +0 -36
- tests/models/hestia/test_waterDepth.py +0 -34
- tests/models/hestia/test_waterSalinity.py +0 -38
- tests/models/impact_assessment/__init__.py +0 -0
- tests/models/impact_assessment/post_checks/__init__.py +0 -0
- tests/models/impact_assessment/post_checks/test_cycle.py +0 -28
- tests/models/impact_assessment/post_checks/test_remove_cache_fields.py +0 -6
- tests/models/impact_assessment/post_checks/test_remove_no_value.py +0 -17
- tests/models/impact_assessment/post_checks/test_site.py +0 -28
- tests/models/impact_assessment/pre_checks/__init__.py +0 -0
- tests/models/impact_assessment/pre_checks/test_cycle.py +0 -39
- tests/models/impact_assessment/pre_checks/test_site.py +0 -37
- tests/models/impact_assessment/product/__init__.py +0 -0
- tests/models/impact_assessment/product/test_economicValueShare.py +0 -36
- tests/models/impact_assessment/product/test_value.py +0 -36
- tests/models/impact_assessment/test_allocationMethod.py +0 -48
- tests/models/impact_assessment/test_emissions.py +0 -31
- tests/models/impact_assessment/test_irrigated.py +0 -14
- tests/models/impact_assessment/test_oganic.py +0 -14
- tests/models/impact_assessment/test_post_checks.py +0 -11
- tests/models/impact_assessment/test_pre_checks.py +0 -11
- tests/models/ipcc2006/__init__.py +0 -0
- tests/models/ipcc2006/test_aboveGroundCropResidueRemoved.py +0 -36
- tests/models/ipcc2006/test_aboveGroundCropResidueTotal.py +0 -48
- tests/models/ipcc2006/test_belowGroundCropResidue.py +0 -45
- tests/models/ipcc2006/test_n2OToAirCropResidueDecompositionDirect.py +0 -53
- tests/models/ipcc2006/test_n2OToAirCropResidueDecompositionIndirect.py +0 -45
- tests/models/ipcc2006/test_n2OToAirExcretaDirect.py +0 -68
- tests/models/ipcc2006/test_n2OToAirExcretaIndirect.py +0 -45
- tests/models/ipcc2006/test_n2OToAirInorganicFertiliserDirect.py +0 -55
- tests/models/ipcc2006/test_n2OToAirInorganicFertiliserIndirect.py +0 -43
- tests/models/ipcc2006/test_n2OToAirOrganicFertiliserDirect.py +0 -55
- tests/models/ipcc2006/test_n2OToAirOrganicFertiliserIndirect.py +0 -55
- tests/models/ipcc2013ExcludingFeedbacks/__init__.py +0 -0
- tests/models/ipcc2013ExcludingFeedbacks/test_gwp100.py +0 -23
- tests/models/ipcc2013IncludingFeedbacks/__init__.py +0 -0
- tests/models/ipcc2013IncludingFeedbacks/test_gwp100.py +0 -23
- tests/models/ipcc2019/__init__.py +0 -0
- tests/models/ipcc2019/animal/__init__.py +0 -0
- tests/models/ipcc2019/animal/test_fatContent.py +0 -22
- tests/models/ipcc2019/animal/test_hoursWorkedPerDay.py +0 -22
- tests/models/ipcc2019/animal/test_liveweightGain.py +0 -22
- tests/models/ipcc2019/animal/test_liveweightPerHead.py +0 -22
- tests/models/ipcc2019/animal/test_milkYieldPerAnimal.py +0 -21
- tests/models/ipcc2019/animal/test_pastureGrass.py +0 -47
- tests/models/ipcc2019/animal/test_pregnancyRateTotal.py +0 -22
- tests/models/ipcc2019/animal/test_trueProteinContent.py +0 -22
- tests/models/ipcc2019/animal/test_weightAtMaturity.py +0 -21
- tests/models/ipcc2019/test_aboveGroundBiomass.py +0 -189
- tests/models/ipcc2019/test_aboveGroundCropResidueTotal.py +0 -51
- tests/models/ipcc2019/test_belowGroundBiomass.py +0 -189
- tests/models/ipcc2019/test_belowGroundCropResidue.py +0 -77
- tests/models/ipcc2019/test_biocharOrganicCarbonPerHa.py +0 -132
- tests/models/ipcc2019/test_biomass_utils.py +0 -115
- tests/models/ipcc2019/test_carbonContent.py +0 -119
- tests/models/ipcc2019/test_ch4ToAirAquacultureSystems.py +0 -60
- tests/models/ipcc2019/test_ch4ToAirEntericFermentation.py +0 -199
- tests/models/ipcc2019/test_ch4ToAirExcreta.py +0 -83
- tests/models/ipcc2019/test_ch4ToAirFloodedRice.py +0 -25
- tests/models/ipcc2019/test_ch4ToAirOrganicSoilCultivation.py +0 -62
- tests/models/ipcc2019/test_co2ToAirAboveGroundBiomassStockChange.py +0 -120
- tests/models/ipcc2019/test_co2ToAirBelowGroundBiomassStockChange.py +0 -118
- tests/models/ipcc2019/test_co2ToAirBiocharStockChange.py +0 -90
- tests/models/ipcc2019/test_co2ToAirCarbonStockChange_utils.py +0 -50
- tests/models/ipcc2019/test_co2ToAirLimeHydrolysis.py +0 -49
- tests/models/ipcc2019/test_co2ToAirOrganicSoilCultivation.py +0 -63
- tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChange.py +0 -151
- tests/models/ipcc2019/test_co2ToAirUreaHydrolysis.py +0 -30
- tests/models/ipcc2019/test_croppingDuration.py +0 -55
- tests/models/ipcc2019/test_ligninContent.py +0 -119
- tests/models/ipcc2019/test_n2OToAirAquacultureSystemsIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirCropResidueBurningDirect.py +0 -46
- tests/models/ipcc2019/test_n2OToAirCropResidueBurningIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirCropResidueDecompositionDirect.py +0 -79
- tests/models/ipcc2019/test_n2OToAirCropResidueDecompositionIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirExcretaDirect.py +0 -50
- tests/models/ipcc2019/test_n2OToAirExcretaIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirFuelCombustionIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirInorganicFertiliserDirect.py +0 -79
- tests/models/ipcc2019/test_n2OToAirInorganicFertiliserIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirNaturalVegetationBurningIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirOrganicFertiliserDirect.py +0 -79
- tests/models/ipcc2019/test_n2OToAirOrganicFertiliserIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirOrganicSoilBurningIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAirOrganicSoilCultivationDirect.py +0 -62
- tests/models/ipcc2019/test_n2OToAirOrganicSoilCultivationIndirect.py +0 -45
- tests/models/ipcc2019/test_n2OToAir_indirect_emissions_utils.py +0 -19
- tests/models/ipcc2019/test_nh3ToAirInorganicFertiliser.py +0 -47
- tests/models/ipcc2019/test_nh3ToAirOrganicFertiliser.py +0 -35
- tests/models/ipcc2019/test_nitrogenContent.py +0 -107
- tests/models/ipcc2019/test_no3ToGroundwaterCropResidueDecomposition.py +0 -51
- tests/models/ipcc2019/test_no3ToGroundwaterExcreta.py +0 -64
- tests/models/ipcc2019/test_no3ToGroundwaterInorganicFertiliser.py +0 -48
- tests/models/ipcc2019/test_no3ToGroundwaterOrganicFertiliser.py +0 -48
- tests/models/ipcc2019/test_nonCo2EmissionsToAirNaturalVegetationBurning.py +0 -97
- tests/models/ipcc2019/test_noxToAirInorganicFertiliser.py +0 -47
- tests/models/ipcc2019/test_noxToAirOrganicFertiliser.py +0 -35
- tests/models/ipcc2019/test_organicCarbonPerHa.py +0 -415
- tests/models/ipcc2019/test_organicCarbonPerHa_tier_1.py +0 -465
- tests/models/ipcc2019/test_organicCarbonPerHa_tier_2.py +0 -148
- tests/models/ipcc2019/test_organicCarbonPerHa_utils.py +0 -31
- tests/models/ipcc2019/test_pastureGrass.py +0 -68
- tests/models/ipcc2021/__init__.py +0 -0
- tests/models/ipcc2021/test_gwp100.py +0 -23
- tests/models/jarvisAndPain1994/__init__.py +0 -0
- tests/models/jarvisAndPain1994/test_n2ToAirExcreta.py +0 -37
- tests/models/koble2014/__init__.py +0 -0
- tests/models/koble2014/test_cropResidueManagement.py +0 -19
- tests/models/koble2014/test_residueBurnt.py +0 -20
- tests/models/koble2014/test_residueLeftOnField.py +0 -21
- tests/models/koble2014/test_residueRemoved.py +0 -20
- tests/models/koble2014/test_utils.py +0 -52
- tests/models/lcImpactAllEffects100Years/__init__.py +0 -0
- tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsClimateChange.py +0 -23
- tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsFreshwaterEutrophication.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsWaterStress.py +0 -21
- tests/models/lcImpactAllEffects100Years/test_damageToHumanHealth.py +0 -20
- tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthClimateChange.py +0 -23
- tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthHumanToxicityCancerogenic.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthHumanToxicityNonCancerogenic.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthParticulateMatterFormation.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthPhotochemicalOzoneFormation.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthStratosphericOzoneDepletion.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthWaterStress.py +0 -32
- tests/models/lcImpactAllEffects100Years/test_damageToMarineEcosystemsMarineEcotoxicity.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToMarineEcosystemsMarineEutrophication.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToMarineEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsClimateChange.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsPhotochemicalOzoneFormation.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsTerrestrialAcidification.py +0 -25
- tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/__init__.py +0 -0
- tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsClimateChange.py +0 -23
- tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsFreshwaterEutrophication.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsWaterStress.py +0 -21
- tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealth.py +0 -20
- tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthClimateChange.py +0 -23
- tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthHumanToxicityCancerogenic.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthHumanToxicityNonCancerogenic.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthParticulateMatterFormation.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthPhotochemicalOzoneFormation.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthStratosphericOzoneDepletion.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthWaterStress.py +0 -32
- tests/models/lcImpactAllEffectsInfinite/test_damageToMarineEcosystemsMarineEcotoxicity.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToMarineEcosystemsMarineEutrophication.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToMarineEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsClimateChange.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsPhotochemicalOzoneFormation.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsTerrestrialAcidification.py +0 -25
- tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +0 -25
- tests/models/lcImpactCertainEffects100Years/__init__.py +0 -0
- tests/models/lcImpactCertainEffects100Years/test_damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToFreshwaterEcosystemsFreshwaterEutrophication.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToFreshwaterEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactCertainEffects100Years/test_damageToFreshwaterEcosystemsWaterStress.py +0 -21
- tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealth.py +0 -20
- tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthClimateChange.py +0 -23
- tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthHumanToxicityCancerogenic.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthHumanToxicityNonCancerogenic.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthParticulateMatterFormation.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthPhotochemicalOzoneFormation.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthStratosphericOzoneDepletion.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthWaterStress.py +0 -32
- tests/models/lcImpactCertainEffects100Years/test_damageToMarineEcosystemsMarineEcotoxicity.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToMarineEcosystemsMarineEutrophication.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToMarineEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsClimateChange.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsPhotochemicalOzoneFormation.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsTerrestrialAcidification.py +0 -25
- tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/__init__.py +0 -0
- tests/models/lcImpactCertainEffectsInfinite/test_damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToFreshwaterEcosystemsFreshwaterEutrophication.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToFreshwaterEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactCertainEffectsInfinite/test_damageToFreshwaterEcosystemsWaterStress.py +0 -21
- tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealth.py +0 -20
- tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthClimateChange.py +0 -23
- tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthHumanToxicityCancerogenic.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthHumanToxicityNonCancerogenic.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthParticulateMatterFormation.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthPhotochemicalOzoneFormation.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthStratosphericOzoneDepletion.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthWaterStress.py +0 -32
- tests/models/lcImpactCertainEffectsInfinite/test_damageToMarineEcosystemsMarineEcotoxicity.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToMarineEcosystemsMarineEutrophication.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToMarineEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsClimateChange.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsPdfYear.py +0 -20
- tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsPhotochemicalOzoneFormation.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsTerrestrialAcidification.py +0 -25
- tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +0 -25
- tests/models/linkedImpactAssessment/__init__.py +0 -0
- tests/models/linkedImpactAssessment/test_emissions.py +0 -22
- tests/models/linkedImpactAssessment/test_freshwaterWithdrawalsInputsProduction.py +0 -23
- tests/models/linkedImpactAssessment/test_landOccupationInputsProduction.py +0 -23
- tests/models/linkedImpactAssessment/test_landTransformation100YearAverageInputsProduction.py +0 -25
- tests/models/linkedImpactAssessment/test_landTransformation20YearAverageInputsProduction.py +0 -25
- tests/models/pooreNemecek2018/__init__.py +0 -0
- tests/models/pooreNemecek2018/test_aboveGroundCropResidueTotal.py +0 -45
- tests/models/pooreNemecek2018/test_belowGroundCropResidue.py +0 -45
- tests/models/pooreNemecek2018/test_ch4ToAirAquacultureSystems.py +0 -79
- tests/models/pooreNemecek2018/test_excretaKgN.py +0 -124
- tests/models/pooreNemecek2018/test_excretaKgVs.py +0 -107
- tests/models/pooreNemecek2018/test_freshwaterWithdrawalsDuringCycle.py +0 -60
- tests/models/pooreNemecek2018/test_landOccupationDuringCycle.py +0 -51
- tests/models/pooreNemecek2018/test_longFallowDuration.py +0 -29
- tests/models/pooreNemecek2018/test_n2OToAirAquacultureSystemsDirect.py +0 -59
- tests/models/pooreNemecek2018/test_n2ToAirAquacultureSystems.py +0 -59
- tests/models/pooreNemecek2018/test_nh3ToAirAquacultureSystems.py +0 -80
- tests/models/pooreNemecek2018/test_no3ToGroundwaterCropResidueDecomposition.py +0 -23
- tests/models/pooreNemecek2018/test_no3ToGroundwaterExcreta.py +0 -23
- tests/models/pooreNemecek2018/test_no3ToGroundwaterInorganicFertiliser.py +0 -23
- tests/models/pooreNemecek2018/test_no3ToGroundwaterOrganicFertiliser.py +0 -23
- tests/models/pooreNemecek2018/test_noxToAirAquacultureSystems.py +0 -59
- tests/models/pooreNemecek2018/test_nurseryDensity.py +0 -29
- tests/models/pooreNemecek2018/test_nurseryDuration.py +0 -29
- tests/models/pooreNemecek2018/test_plantationDensity.py +0 -29
- tests/models/pooreNemecek2018/test_plantationLifespan.py +0 -29
- tests/models/pooreNemecek2018/test_plantationProductiveLifespan.py +0 -29
- tests/models/pooreNemecek2018/test_rotationDuration.py +0 -29
- tests/models/pooreNemecek2018/test_saplingsDepreciatedAmountPerCycle.py +0 -46
- tests/models/pooreNemecek2018/test_utils.py +0 -26
- tests/models/poschEtAl2008/__init__.py +0 -0
- tests/models/poschEtAl2008/test_terrestrialAcidificationPotentialAccumulatedExceedance.py +0 -39
- tests/models/poschEtAl2008/test_terrestrialEutrophicationPotentialAccumulatedExceedance.py +0 -39
- tests/models/recipe2016Egalitarian/__init__.py +0 -0
- tests/models/recipe2016Egalitarian/test_damageToFreshwaterEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Egalitarian/test_damageToHumanHealth.py +0 -20
- tests/models/recipe2016Egalitarian/test_damageToMarineEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Egalitarian/test_damageToResourceAvailability.py +0 -23
- tests/models/recipe2016Egalitarian/test_damageToTerrestrialEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Egalitarian/test_ecosystemDamageOzoneFormation.py +0 -26
- tests/models/recipe2016Egalitarian/test_fossilResourceScarcity.py +0 -23
- tests/models/recipe2016Egalitarian/test_freshwaterAquaticEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/recipe2016Egalitarian/test_freshwaterEutrophicationPotential.py +0 -23
- tests/models/recipe2016Egalitarian/test_humanCarcinogenicToxicity.py +0 -23
- tests/models/recipe2016Egalitarian/test_humanDamageOzoneFormation.py +0 -26
- tests/models/recipe2016Egalitarian/test_humanNonCarcinogenicToxicity.py +0 -23
- tests/models/recipe2016Egalitarian/test_marineAquaticEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/recipe2016Egalitarian/test_marineEutrophicationPotential.py +0 -23
- tests/models/recipe2016Egalitarian/test_ozoneDepletionPotential.py +0 -26
- tests/models/recipe2016Egalitarian/test_terrestrialAcidificationPotential.py +0 -23
- tests/models/recipe2016Egalitarian/test_terrestrialEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/recipe2016Hierarchist/__init__.py +0 -0
- tests/models/recipe2016Hierarchist/test_damageToFreshwaterEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Hierarchist/test_damageToHumanHealth.py +0 -20
- tests/models/recipe2016Hierarchist/test_damageToMarineEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Hierarchist/test_damageToResourceAvailability.py +0 -23
- tests/models/recipe2016Hierarchist/test_damageToTerrestrialEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Hierarchist/test_ecosystemDamageOzoneFormation.py +0 -26
- tests/models/recipe2016Hierarchist/test_fossilResourceScarcity.py +0 -23
- tests/models/recipe2016Hierarchist/test_freshwaterAquaticEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/recipe2016Hierarchist/test_freshwaterEutrophicationPotential.py +0 -23
- tests/models/recipe2016Hierarchist/test_humanCarcinogenicToxicity.py +0 -23
- tests/models/recipe2016Hierarchist/test_humanDamageOzoneFormation.py +0 -26
- tests/models/recipe2016Hierarchist/test_humanNonCarcinogenicToxicity.py +0 -23
- tests/models/recipe2016Hierarchist/test_marineAquaticEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/recipe2016Hierarchist/test_marineEutrophicationPotential.py +0 -23
- tests/models/recipe2016Hierarchist/test_ozoneDepletionPotential.py +0 -26
- tests/models/recipe2016Hierarchist/test_terrestrialAcidificationPotential.py +0 -23
- tests/models/recipe2016Hierarchist/test_terrestrialEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/recipe2016Individualist/__init__.py +0 -0
- tests/models/recipe2016Individualist/test_damageToFreshwaterEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Individualist/test_damageToHumanHealth.py +0 -20
- tests/models/recipe2016Individualist/test_damageToMarineEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Individualist/test_damageToResourceAvailability.py +0 -23
- tests/models/recipe2016Individualist/test_damageToTerrestrialEcosystemsSpeciesYear.py +0 -20
- tests/models/recipe2016Individualist/test_ecosystemDamageOzoneFormation.py +0 -26
- tests/models/recipe2016Individualist/test_fossilResourceScarcity.py +0 -23
- tests/models/recipe2016Individualist/test_freshwaterAquaticEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/recipe2016Individualist/test_freshwaterEutrophicationPotential.py +0 -23
- tests/models/recipe2016Individualist/test_humanCarcinogenicToxicity.py +0 -23
- tests/models/recipe2016Individualist/test_humanDamageOzoneFormation.py +0 -26
- tests/models/recipe2016Individualist/test_humanNonCarcinogenicToxicity.py +0 -23
- tests/models/recipe2016Individualist/test_marineAquaticEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/recipe2016Individualist/test_marineEutrophicationPotential.py +0 -23
- tests/models/recipe2016Individualist/test_ozoneDepletionPotential.py +0 -26
- tests/models/recipe2016Individualist/test_terrestrialAcidificationPotential.py +0 -23
- tests/models/recipe2016Individualist/test_terrestrialEcotoxicityPotential14Dcbeq.py +0 -23
- tests/models/schererPfister2015/__init__.py +0 -0
- tests/models/schererPfister2015/test_nErosionSoilFlux.py +0 -70
- tests/models/schererPfister2015/test_pErosionSoilFlux.py +0 -70
- tests/models/schererPfister2015/test_pToDrainageWaterSoilFlux.py +0 -33
- tests/models/schererPfister2015/test_pToGroundwaterSoilFlux.py +0 -33
- tests/models/schererPfister2015/test_pToSurfaceWaterSoilFlux.py +0 -45
- tests/models/schmidt2007/__init__.py +0 -0
- tests/models/schmidt2007/test_ch4ToAirWasteTreatment.py +0 -45
- tests/models/schmidt2007/test_h2SToAirWasteTreatment.py +0 -45
- tests/models/schmidt2007/test_n2OToAirWasteTreatmentDirect.py +0 -45
- tests/models/schmidt2007/test_nh3ToAirWasteTreatment.py +0 -45
- tests/models/schmidt2007/test_utils.py +0 -39
- tests/models/site/__init__.py +0 -0
- tests/models/site/measurement/__init__.py +0 -0
- tests/models/site/measurement/test_value.py +0 -41
- tests/models/site/post_checks/__init__.py +0 -0
- tests/models/site/post_checks/test_cache.py +0 -8
- tests/models/site/post_checks/test_country.py +0 -6
- tests/models/site/pre_checks/__init__.py +0 -0
- tests/models/site/pre_checks/test_cache_geospatialDatabase.py +0 -22
- tests/models/site/pre_checks/test_cache_years.py +0 -25
- tests/models/site/pre_checks/test_country.py +0 -13
- tests/models/site/test_defaultMethodClassification.py +0 -24
- tests/models/site/test_defaultMethodClassificationDescription.py +0 -24
- tests/models/site/test_grouped_measurement.py +0 -20
- tests/models/stehfestBouwman2006/__init__.py +0 -0
- tests/models/stehfestBouwman2006/test_n2OToAirCropResidueDecompositionDirect.py +0 -20
- tests/models/stehfestBouwman2006/test_n2OToAirExcretaDirect.py +0 -20
- tests/models/stehfestBouwman2006/test_n2OToAirInorganicFertiliserDirect.py +0 -20
- tests/models/stehfestBouwman2006/test_n2OToAirOrganicFertiliserDirect.py +0 -20
- tests/models/stehfestBouwman2006/test_noxToAirCropResidueDecomposition.py +0 -20
- tests/models/stehfestBouwman2006/test_noxToAirExcreta.py +0 -20
- tests/models/stehfestBouwman2006/test_noxToAirInorganicFertiliser.py +0 -20
- tests/models/stehfestBouwman2006/test_noxToAirOrganicFertiliser.py +0 -20
- tests/models/stehfestBouwman2006GisImplementation/__init__.py +0 -0
- tests/models/stehfestBouwman2006GisImplementation/test_noxToAirCropResidueDecomposition.py +0 -22
- tests/models/stehfestBouwman2006GisImplementation/test_noxToAirExcreta.py +0 -20
- tests/models/stehfestBouwman2006GisImplementation/test_noxToAirInorganicFertiliser.py +0 -20
- tests/models/stehfestBouwman2006GisImplementation/test_noxToAirOrganicFertiliser.py +0 -20
- tests/models/test_cache_nodes.py +0 -31
- tests/models/test_cache_sites.py +0 -93
- tests/models/test_config.py +0 -170
- tests/models/test_emissionNotRelevant.py +0 -32
- tests/models/test_log.py +0 -128
- tests/models/test_resourceUseNotRelevant.py +0 -27
- tests/models/test_utils.py +0 -6
- tests/models/transformation/__init__.py +0 -0
- tests/models/transformation/input/__init__.py +0 -0
- tests/models/transformation/input/test_excreta.py +0 -49
- tests/models/transformation/input/test_max.py +0 -34
- tests/models/transformation/input/test_min.py +0 -34
- tests/models/transformation/input/test_properties.py +0 -34
- tests/models/transformation/input/test_sd.py +0 -34
- tests/models/transformation/input/test_value.py +0 -34
- tests/models/transformation/product/__init__.py +0 -0
- tests/models/transformation/product/test_excreta.py +0 -54
- tests/models/usetoxV2/__init__.py +0 -0
- tests/models/usetoxV2/test_freshwaterEcotoxicityPotentialCtue.py +0 -23
- tests/models/utils/__init__.py +0 -0
- tests/models/utils/test_array_builders.py +0 -314
- tests/models/utils/test_background_emissions.py +0 -13
- tests/models/utils/test_blank_node.py +0 -1081
- tests/models/utils/test_cache_sources.py +0 -21
- tests/models/utils/test_crop.py +0 -27
- tests/models/utils/test_cropResidue.py +0 -26
- tests/models/utils/test_cropResidueManagement.py +0 -24
- tests/models/utils/test_currency.py +0 -13
- tests/models/utils/test_dataCompleteness.py +0 -52
- tests/models/utils/test_ecoClimateZone.py +0 -152
- tests/models/utils/test_emission.py +0 -74
- tests/models/utils/test_feedipedia.py +0 -26
- tests/models/utils/test_impact_assessment.py +0 -48
- tests/models/utils/test_indicator.py +0 -26
- tests/models/utils/test_input.py +0 -88
- tests/models/utils/test_liveAnimal.py +0 -34
- tests/models/utils/test_measurement.py +0 -116
- tests/models/utils/test_practice.py +0 -24
- tests/models/utils/test_product.py +0 -73
- tests/models/utils/test_property.py +0 -24
- tests/models/utils/test_site.py +0 -70
- tests/models/utils/test_source.py +0 -42
- tests/models/utils/test_term.py +0 -115
- tests/models/utils/test_time_series.py +0 -88
- tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py +0 -0
- tests/models/webbEtAl2012AndSintermannEtAl2012/test_nh3ToAirOrganicFertiliser.py +0 -79
- tests/orchestrator/__init__.py +0 -0
- tests/orchestrator/models/__init__.py +0 -0
- tests/orchestrator/models/emissions/__init__.py +0 -0
- tests/orchestrator/models/emissions/test_deleted.py +0 -21
- tests/orchestrator/models/test_transformations.py +0 -32
- tests/orchestrator/strategies/__init__.py +0 -0
- tests/orchestrator/strategies/merge/__init__.py +0 -0
- tests/orchestrator/strategies/merge/test_merge_append.py +0 -33
- tests/orchestrator/strategies/merge/test_merge_default.py +0 -7
- tests/orchestrator/strategies/merge/test_merge_list.py +0 -342
- tests/orchestrator/strategies/merge/test_merge_node.py +0 -95
- tests/orchestrator/strategies/run/__init__.py +0 -0
- tests/orchestrator/strategies/run/test_add_blank_node_if_missing.py +0 -109
- tests/orchestrator/strategies/run/test_add_key_if_missing.py +0 -14
- tests/orchestrator/strategies/run/test_always.py +0 -5
- tests/orchestrator/test_models.py +0 -70
- tests/orchestrator/test_orchestrator.py +0 -27
- tests/orchestrator/test_utils.py +0 -109
- {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/licenses/LICENSE +0 -0
|
File without changes
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from tests.utils import fixtures_path
|
|
3
|
-
|
|
4
|
-
from hestia_earth.models.cycle.product.currency import MODEL, MODEL_KEY, run, _should_run_product
|
|
5
|
-
|
|
6
|
-
class_path = f"hestia_earth.models.{MODEL}.product.{MODEL_KEY}"
|
|
7
|
-
fixtures_folder = f"{fixtures_path}/{MODEL}/product/{MODEL_KEY}"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def test_should_run_product():
|
|
11
|
-
# without price => no run
|
|
12
|
-
product = {'currency': 'EUR'}
|
|
13
|
-
should_run = _should_run_product({})(product)
|
|
14
|
-
assert not should_run
|
|
15
|
-
|
|
16
|
-
# with price => run
|
|
17
|
-
product = {'currency': 'EUR', 'price': 100}
|
|
18
|
-
should_run = _should_run_product({})(product)
|
|
19
|
-
assert should_run is True
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def test_run():
|
|
23
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
24
|
-
cycle = json.load(f)
|
|
25
|
-
|
|
26
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
27
|
-
expected = json.load(f)
|
|
28
|
-
|
|
29
|
-
value = run(cycle)
|
|
30
|
-
assert value == expected
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def test_run_unhandled_currency():
|
|
34
|
-
with open(f"{fixtures_folder}/unhandled-currency/cycle.jsonld", encoding='utf-8') as f:
|
|
35
|
-
cycle = json.load(f)
|
|
36
|
-
|
|
37
|
-
with open(f"{fixtures_folder}/unhandled-currency/result.jsonld", encoding='utf-8') as f:
|
|
38
|
-
expected = json.load(f)
|
|
39
|
-
|
|
40
|
-
value = run(cycle)
|
|
41
|
-
assert value == expected
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from tests.utils import fixtures_path
|
|
3
|
-
|
|
4
|
-
from hestia_earth.models.cycle.product.economicValueShare import (
|
|
5
|
-
MODEL, MODEL_KEY, run,
|
|
6
|
-
_should_run_single_missing_evs, _should_run_by_revenue
|
|
7
|
-
)
|
|
8
|
-
|
|
9
|
-
class_path = f"hestia_earth.models.{MODEL}.product.{MODEL_KEY}"
|
|
10
|
-
fixtures_folder = f"{fixtures_path}/{MODEL}/product/{MODEL_KEY}"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def test_should_run_single_missing_evs():
|
|
14
|
-
cycle = {'completeness': {'product': True}}
|
|
15
|
-
|
|
16
|
-
# if total value >= 100 => no run
|
|
17
|
-
products = [{
|
|
18
|
-
'@type': 'Product',
|
|
19
|
-
'economicValueShare': 20
|
|
20
|
-
}, {
|
|
21
|
-
'@type': 'Product',
|
|
22
|
-
'economicValueShare': 80
|
|
23
|
-
}, {
|
|
24
|
-
'@type': 'Product'
|
|
25
|
-
}, {
|
|
26
|
-
'@type': 'Product'
|
|
27
|
-
}]
|
|
28
|
-
assert not _should_run_single_missing_evs(cycle, products)
|
|
29
|
-
|
|
30
|
-
# total < 100 => no run
|
|
31
|
-
products[1]['economicValueShare'] = 70
|
|
32
|
-
assert not _should_run_single_missing_evs(cycle, products)
|
|
33
|
-
|
|
34
|
-
# with only 1 missing value => run
|
|
35
|
-
del products[2]
|
|
36
|
-
assert _should_run_single_missing_evs(cycle, products) is True
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def test_should_run_by_revenue():
|
|
40
|
-
cycle = {'completeness': {'product': True}}
|
|
41
|
-
|
|
42
|
-
# if total value >= 100 => no run
|
|
43
|
-
products = [{
|
|
44
|
-
'@type': 'Product',
|
|
45
|
-
'economicValueShare': 20
|
|
46
|
-
}, {
|
|
47
|
-
'@type': 'Product',
|
|
48
|
-
'economicValueShare': 80
|
|
49
|
-
}, {
|
|
50
|
-
'@type': 'Product'
|
|
51
|
-
}]
|
|
52
|
-
assert not _should_run_by_revenue(cycle, products)
|
|
53
|
-
|
|
54
|
-
# total < 100 => no run
|
|
55
|
-
products[1]['economicValueShare'] = 70
|
|
56
|
-
assert not _should_run_by_revenue(cycle, products)
|
|
57
|
-
|
|
58
|
-
# all with revenue => run
|
|
59
|
-
products[0]['revenue'] = 10
|
|
60
|
-
products[1]['revenue'] = 10
|
|
61
|
-
products[2]['revenue'] = 10
|
|
62
|
-
assert _should_run_by_revenue(cycle, products) is True
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def test_run():
|
|
66
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
67
|
-
cycle = json.load(f)
|
|
68
|
-
|
|
69
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
70
|
-
expected = json.load(f)
|
|
71
|
-
|
|
72
|
-
value = run(cycle)
|
|
73
|
-
assert value == expected
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
def test_run_complete_1_product_missing_evs():
|
|
77
|
-
with open(f"{fixtures_folder}/complete-1-product-missing-evs/cycle.jsonld", encoding='utf-8') as f:
|
|
78
|
-
cycle = json.load(f)
|
|
79
|
-
|
|
80
|
-
with open(f"{fixtures_folder}/complete-1-product-missing-evs/result.jsonld", encoding='utf-8') as f:
|
|
81
|
-
expected = json.load(f)
|
|
82
|
-
|
|
83
|
-
value = run(cycle)
|
|
84
|
-
assert value == expected
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
def test_run_complete_all_revenue():
|
|
88
|
-
with open(f"{fixtures_folder}/complete-all-revenue/cycle.jsonld", encoding='utf-8') as f:
|
|
89
|
-
cycle = json.load(f)
|
|
90
|
-
|
|
91
|
-
with open(f"{fixtures_folder}/complete-all-revenue/result.jsonld", encoding='utf-8') as f:
|
|
92
|
-
expected = json.load(f)
|
|
93
|
-
|
|
94
|
-
value = run(cycle)
|
|
95
|
-
assert value == expected
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
def test_run_complete_no_evs():
|
|
99
|
-
with open(f"{fixtures_folder}/complete-no-evs/cycle.jsonld", encoding='utf-8') as f:
|
|
100
|
-
cycle = json.load(f)
|
|
101
|
-
|
|
102
|
-
with open(f"{fixtures_folder}/complete-no-evs/result.jsonld", encoding='utf-8') as f:
|
|
103
|
-
expected = json.load(f)
|
|
104
|
-
|
|
105
|
-
value = run(cycle)
|
|
106
|
-
assert value == expected
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
def test_run_incomplete_multiple_crops():
|
|
110
|
-
with open(f"{fixtures_folder}/incomplete-multiple-crops/cycle.jsonld", encoding='utf-8') as f:
|
|
111
|
-
cycle = json.load(f)
|
|
112
|
-
|
|
113
|
-
with open(f"{fixtures_folder}/incomplete-multiple-crops/result.jsonld", encoding='utf-8') as f:
|
|
114
|
-
expected = json.load(f)
|
|
115
|
-
|
|
116
|
-
value = run(cycle)
|
|
117
|
-
assert value == expected
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
def test_run_incomplete_single_crop():
|
|
121
|
-
with open(f"{fixtures_folder}/incomplete-single-crop/cycle.jsonld", encoding='utf-8') as f:
|
|
122
|
-
cycle = json.load(f)
|
|
123
|
-
|
|
124
|
-
with open(f"{fixtures_folder}/incomplete-single-crop/result.jsonld", encoding='utf-8') as f:
|
|
125
|
-
expected = json.load(f)
|
|
126
|
-
|
|
127
|
-
value = run(cycle)
|
|
128
|
-
assert value == expected
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
def test_run_single_product():
|
|
132
|
-
with open(f"{fixtures_folder}/single-product/cycle.jsonld", encoding='utf-8') as f:
|
|
133
|
-
cycle = json.load(f)
|
|
134
|
-
|
|
135
|
-
with open(f"{fixtures_folder}/single-product/result.jsonld", encoding='utf-8') as f:
|
|
136
|
-
expected = json.load(f)
|
|
137
|
-
|
|
138
|
-
value = run(cycle)
|
|
139
|
-
assert value == expected
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
def test_run_complete_above_80_percent():
|
|
143
|
-
with open(f"{fixtures_folder}/complete-above-80-percent/cycle.jsonld", encoding='utf-8') as f:
|
|
144
|
-
cycle = json.load(f)
|
|
145
|
-
|
|
146
|
-
with open(f"{fixtures_folder}/complete-above-80-percent/result.jsonld", encoding='utf-8') as f:
|
|
147
|
-
expected = json.load(f)
|
|
148
|
-
|
|
149
|
-
value = run(cycle)
|
|
150
|
-
assert value == expected
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
def test_run_complete_2_products():
|
|
154
|
-
with open(f"{fixtures_folder}/complete-2-products/cycle.jsonld", encoding='utf-8') as f:
|
|
155
|
-
cycle = json.load(f)
|
|
156
|
-
|
|
157
|
-
value = run(cycle)
|
|
158
|
-
assert value == []
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from tests.utils import fixtures_path
|
|
3
|
-
|
|
4
|
-
from hestia_earth.models.cycle.product.price import MODEL, MODEL_KEY, run
|
|
5
|
-
|
|
6
|
-
class_path = f"hestia_earth.models.{MODEL}.product.{MODEL_KEY}"
|
|
7
|
-
fixtures_folder = f"{fixtures_path}/{MODEL}/product/{MODEL_KEY}"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def test_run():
|
|
11
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
12
|
-
cycle = json.load(f)
|
|
13
|
-
|
|
14
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
15
|
-
expected = json.load(f)
|
|
16
|
-
|
|
17
|
-
value = run(cycle)
|
|
18
|
-
assert value == expected
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def test_run_excreta():
|
|
22
|
-
with open(f"{fixtures_folder}/excreta/cycle.jsonld", encoding='utf-8') as f:
|
|
23
|
-
cycle = json.load(f)
|
|
24
|
-
|
|
25
|
-
with open(f"{fixtures_folder}/excreta/result.jsonld", encoding='utf-8') as f:
|
|
26
|
-
expected = json.load(f)
|
|
27
|
-
|
|
28
|
-
value = run(cycle)
|
|
29
|
-
assert value == expected
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from tests.utils import fixtures_path
|
|
3
|
-
|
|
4
|
-
from hestia_earth.models.cycle.product.primary import MODEL_KEY, run, _should_run, _run
|
|
5
|
-
|
|
6
|
-
class_path = f"hestia_earth.models.cycle.product.{MODEL_KEY}"
|
|
7
|
-
fixtures_folder = f"{fixtures_path}/cycle/product/{MODEL_KEY}"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def test_should_run():
|
|
11
|
-
products = []
|
|
12
|
-
cycle = {'products': products}
|
|
13
|
-
|
|
14
|
-
# no products => do not run
|
|
15
|
-
assert not _should_run(cycle)
|
|
16
|
-
|
|
17
|
-
# with product but no primary info => run
|
|
18
|
-
product = {
|
|
19
|
-
'@type': 'Product'
|
|
20
|
-
}
|
|
21
|
-
products.append(product)
|
|
22
|
-
assert _should_run(cycle) is True
|
|
23
|
-
|
|
24
|
-
# with product with primary => no run
|
|
25
|
-
product['primary'] = True
|
|
26
|
-
assert not _should_run(cycle)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def test__run():
|
|
30
|
-
# only 1 product => primary
|
|
31
|
-
products = [{
|
|
32
|
-
'@type': 'Product',
|
|
33
|
-
'term': {
|
|
34
|
-
'@id': 'product-1'
|
|
35
|
-
}
|
|
36
|
-
}]
|
|
37
|
-
assert _run({'products': products})[0].get('term').get('@id') == 'product-1'
|
|
38
|
-
|
|
39
|
-
# multiple products => primary with biggest economicValueShare
|
|
40
|
-
products = [{
|
|
41
|
-
'@type': 'Product',
|
|
42
|
-
'term': {
|
|
43
|
-
'@id': 'product-1'
|
|
44
|
-
},
|
|
45
|
-
'economicValueShare': 100
|
|
46
|
-
}, {
|
|
47
|
-
'@type': 'Product',
|
|
48
|
-
'term': {
|
|
49
|
-
'@id': 'product-2'
|
|
50
|
-
},
|
|
51
|
-
'economicValueShare': 0
|
|
52
|
-
}, {
|
|
53
|
-
'@type': 'Product',
|
|
54
|
-
'term': {
|
|
55
|
-
'@id': 'product-3'
|
|
56
|
-
},
|
|
57
|
-
'economicValueShare': 456464564
|
|
58
|
-
}, {
|
|
59
|
-
'@type': 'Product',
|
|
60
|
-
'term': {
|
|
61
|
-
'@id': 'product-4'
|
|
62
|
-
}
|
|
63
|
-
}]
|
|
64
|
-
assert _run({'products': products})[0].get('term').get('@id') == 'product-3'
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
def test_run():
|
|
68
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
69
|
-
cycle = json.load(f)
|
|
70
|
-
|
|
71
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
72
|
-
expected = json.load(f)
|
|
73
|
-
|
|
74
|
-
value = run(cycle)
|
|
75
|
-
assert value == expected
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from unittest.mock import patch
|
|
3
|
-
from tests.utils import fixtures_path, fake_new_property
|
|
4
|
-
|
|
5
|
-
from hestia_earth.models.cycle.product.properties import MODEL_KEY, run
|
|
6
|
-
|
|
7
|
-
class_path = f"hestia_earth.models.cycle.product.{MODEL_KEY}"
|
|
8
|
-
fixtures_folder = f"{fixtures_path}/cycle/product/{MODEL_KEY}"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@patch('hestia_earth.models.utils.feedipedia._new_property', side_effect=fake_new_property)
|
|
12
|
-
def test_run_with_dryMatter(*args):
|
|
13
|
-
with open(f"{fixtures_folder}/with-dryMatter/cycle.jsonld", encoding='utf-8') as f:
|
|
14
|
-
cycle = json.load(f)
|
|
15
|
-
|
|
16
|
-
with open(f"{fixtures_folder}/with-dryMatter/result.jsonld", encoding='utf-8') as f:
|
|
17
|
-
expected = json.load(f)
|
|
18
|
-
|
|
19
|
-
result = run(cycle)
|
|
20
|
-
assert result == expected
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@patch('hestia_earth.models.utils.feedipedia._new_property', side_effect=fake_new_property)
|
|
24
|
-
def test_run_with_min_max(*args):
|
|
25
|
-
with open(f"{fixtures_folder}/with-min-max/cycle.jsonld", encoding='utf-8') as f:
|
|
26
|
-
cycle = json.load(f)
|
|
27
|
-
|
|
28
|
-
with open(f"{fixtures_folder}/with-min-max/result.jsonld", encoding='utf-8') as f:
|
|
29
|
-
expected = json.load(f)
|
|
30
|
-
|
|
31
|
-
result = run(cycle)
|
|
32
|
-
assert result == expected
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from tests.utils import fixtures_path
|
|
3
|
-
|
|
4
|
-
from hestia_earth.models.cycle.product.revenue import MODEL_KEY, run, _should_run
|
|
5
|
-
|
|
6
|
-
class_path = f"hestia_earth.models.cycle.product.{MODEL_KEY}"
|
|
7
|
-
fixtures_folder = f"{fixtures_path}/cycle/product/{MODEL_KEY}"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def test_should_run():
|
|
11
|
-
product = {'@type': 'Product'}
|
|
12
|
-
assert not _should_run({})(product)
|
|
13
|
-
|
|
14
|
-
product['value'] = [0]
|
|
15
|
-
assert _should_run({})(product) is True
|
|
16
|
-
|
|
17
|
-
product['value'] = [1]
|
|
18
|
-
assert not _should_run({})(product)
|
|
19
|
-
|
|
20
|
-
product['price'] = 1
|
|
21
|
-
assert _should_run({})(product) is True
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def test_run():
|
|
25
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
26
|
-
cycle = json.load(f)
|
|
27
|
-
|
|
28
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
29
|
-
expected = json.load(f)
|
|
30
|
-
|
|
31
|
-
value = run(cycle)
|
|
32
|
-
assert value == expected
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from tests.utils import fixtures_path
|
|
3
|
-
|
|
4
|
-
from hestia_earth.models.cycle.product.value import run, _should_run
|
|
5
|
-
|
|
6
|
-
class_path = 'hestia_earth.models.cycle.product.value'
|
|
7
|
-
fixtures_folder = f"{fixtures_path}/cycle/product/value"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def test_should_run():
|
|
11
|
-
product = {}
|
|
12
|
-
|
|
13
|
-
# without min/max => NO run
|
|
14
|
-
assert not _should_run({})(product)
|
|
15
|
-
|
|
16
|
-
# with min and max and value => NO run
|
|
17
|
-
product = {
|
|
18
|
-
'min': [5],
|
|
19
|
-
'max': [50],
|
|
20
|
-
'value': [25]
|
|
21
|
-
}
|
|
22
|
-
assert not _should_run({})(product)
|
|
23
|
-
|
|
24
|
-
# with min and max but not value => run
|
|
25
|
-
product = {
|
|
26
|
-
'min': [5],
|
|
27
|
-
'max': [10],
|
|
28
|
-
'value': []
|
|
29
|
-
}
|
|
30
|
-
assert _should_run({})(product)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def test_run():
|
|
34
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
35
|
-
cycle = json.load(f)
|
|
36
|
-
|
|
37
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
38
|
-
expected = json.load(f)
|
|
39
|
-
|
|
40
|
-
result = run(cycle)
|
|
41
|
-
assert result == expected
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from unittest.mock import patch
|
|
3
|
-
|
|
4
|
-
from tests.utils import fixtures_path, fake_new_product
|
|
5
|
-
from hestia_earth.models.cycle.aboveGroundCropResidueTotal import MODEL, TERM_ID, run
|
|
6
|
-
|
|
7
|
-
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
|
8
|
-
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@patch(f"{class_path}._new_product", side_effect=fake_new_product)
|
|
12
|
-
def test_run_crop(*args):
|
|
13
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
14
|
-
cycle = json.load(f)
|
|
15
|
-
|
|
16
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
17
|
-
expected = json.load(f)
|
|
18
|
-
|
|
19
|
-
value = run(cycle)
|
|
20
|
-
assert value == expected
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
from unittest.mock import patch
|
|
2
|
-
import json
|
|
3
|
-
from tests.utils import fixtures_path
|
|
4
|
-
|
|
5
|
-
from hestia_earth.models.cycle.completeness import run, _should_run_model
|
|
6
|
-
|
|
7
|
-
class_path = 'hestia_earth.models.cycle.completeness'
|
|
8
|
-
fixtures_folder = f"{fixtures_path}/cycle/completeness"
|
|
9
|
-
cropResidue = [
|
|
10
|
-
'aboveGroundCropResidueRemoved', 'aboveGroundCropResidueIncorporated', 'aboveGroundCropResidueTotal',
|
|
11
|
-
'aboveGroundCropResidueLeftOnField', 'aboveGroundCropResidueBurnt',
|
|
12
|
-
'belowGroundCropResidue'
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def test_should_run_model():
|
|
17
|
-
key = 'cropResidue'
|
|
18
|
-
model = {'key': key, 'run': lambda *args: True}
|
|
19
|
-
cycle = {'completeness': {}}
|
|
20
|
-
|
|
21
|
-
# already complete => no run
|
|
22
|
-
cycle['completeness'][key] = True
|
|
23
|
-
assert not _should_run_model(model, cycle)
|
|
24
|
-
|
|
25
|
-
# not complete => run
|
|
26
|
-
cycle['completeness'][key] = False
|
|
27
|
-
assert _should_run_model(model, cycle)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@patch(f"{class_path}.cropResidue.get_crop_residue_terms", return_value=cropResidue)
|
|
31
|
-
def test_run(*args):
|
|
32
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
33
|
-
cycle = json.load(f)
|
|
34
|
-
|
|
35
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
36
|
-
expected = json.load(f)
|
|
37
|
-
|
|
38
|
-
value = run(cycle)
|
|
39
|
-
assert value == expected
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@patch(f"{class_path}.cropResidue.get_crop_residue_terms", return_value=cropResidue)
|
|
43
|
-
def test_run_orchard(*args):
|
|
44
|
-
with open(f"{fixtures_folder}/orchard/cycle.jsonld", encoding='utf-8') as f:
|
|
45
|
-
cycle = json.load(f)
|
|
46
|
-
|
|
47
|
-
with open(f"{fixtures_folder}/orchard/result.jsonld", encoding='utf-8') as f:
|
|
48
|
-
expected = json.load(f)
|
|
49
|
-
|
|
50
|
-
value = run(cycle)
|
|
51
|
-
assert value == expected
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from tests.utils import fixtures_path
|
|
3
|
-
|
|
4
|
-
from hestia_earth.models.cycle.cycleDuration import MODEL, MODEL_KEY, run
|
|
5
|
-
|
|
6
|
-
class_path = f"hestia_earth.models.{MODEL}.{MODEL_KEY}"
|
|
7
|
-
fixtures_folder = f"{fixtures_path}/{MODEL}/{MODEL_KEY}"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def test_run_with_dates():
|
|
11
|
-
with open(f"{fixtures_folder}/with-dates/cycle.jsonld", encoding='utf-8') as f:
|
|
12
|
-
data = json.load(f)
|
|
13
|
-
|
|
14
|
-
result = run(data)
|
|
15
|
-
assert result == 335
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def test_run_with_permanent_crop():
|
|
19
|
-
with open(f"{fixtures_folder}/permanent-crop/cycle.jsonld", encoding='utf-8') as f:
|
|
20
|
-
data = json.load(f)
|
|
21
|
-
|
|
22
|
-
result = run(data)
|
|
23
|
-
assert result == 365
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def test_run_with_temporary_crop():
|
|
27
|
-
with open(f"{fixtures_folder}/temporary-crop/cycle.jsonld", encoding='utf-8') as f:
|
|
28
|
-
data = json.load(f)
|
|
29
|
-
|
|
30
|
-
result = run(data)
|
|
31
|
-
assert float(result) == 264.781
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import pytest
|
|
2
|
-
|
|
3
|
-
from hestia_earth.models.cycle.endDate import _should_run, run
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
def test_should_run():
|
|
7
|
-
# no endDate => no run
|
|
8
|
-
cycle = {}
|
|
9
|
-
should_run = _should_run(cycle)
|
|
10
|
-
assert not should_run
|
|
11
|
-
|
|
12
|
-
# with endDate with days => no run
|
|
13
|
-
cycle['endDate'] = '2020-01-01'
|
|
14
|
-
should_run = _should_run(cycle)
|
|
15
|
-
assert not should_run
|
|
16
|
-
|
|
17
|
-
# with endDate no days => run
|
|
18
|
-
cycle['endDate'] = '2020-01'
|
|
19
|
-
should_run = _should_run(cycle)
|
|
20
|
-
assert should_run is True
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@pytest.mark.parametrize(
|
|
24
|
-
'test_name,cycle,result',
|
|
25
|
-
[
|
|
26
|
-
(
|
|
27
|
-
'with endDate only', {'endDate': '2020-01'}, '2020-01-14'
|
|
28
|
-
),
|
|
29
|
-
(
|
|
30
|
-
'with endDate same month as startDate', {'endDate': '2020-02', 'startDate': '2020-02'}, '2020-02-29'
|
|
31
|
-
),
|
|
32
|
-
(
|
|
33
|
-
'with endDate not same month as startDate', {'endDate': '2020-02', 'startDate': '2020-01'}, '2020-02-14'
|
|
34
|
-
),
|
|
35
|
-
]
|
|
36
|
-
)
|
|
37
|
-
def test_run(test_name: str, cycle: dict, result: str):
|
|
38
|
-
assert run(cycle) == result, test_name
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
import pytest
|
|
3
|
-
from tests.utils import fixtures_path
|
|
4
|
-
|
|
5
|
-
from hestia_earth.models.cycle import MODEL
|
|
6
|
-
from hestia_earth.models.cycle.otherSitesArea import MODEL_KEY, run, _should_run
|
|
7
|
-
|
|
8
|
-
fixtures_folder = f"{fixtures_path}/{MODEL}/{MODEL_KEY}"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@pytest.mark.parametrize(
|
|
12
|
-
'test_name,cycle,expected_should_run',
|
|
13
|
-
[
|
|
14
|
-
(
|
|
15
|
-
'no animals => no run',
|
|
16
|
-
{},
|
|
17
|
-
False
|
|
18
|
-
),
|
|
19
|
-
(
|
|
20
|
-
'with animals => no run',
|
|
21
|
-
{
|
|
22
|
-
'animals': [{'term': {'termType': 'liveAnimal'}, 'value': 10}]
|
|
23
|
-
},
|
|
24
|
-
False
|
|
25
|
-
),
|
|
26
|
-
(
|
|
27
|
-
'with animals and otherSites => no run',
|
|
28
|
-
{
|
|
29
|
-
'animals': [{'term': {'termType': 'liveAnimal'}, 'value': 10}],
|
|
30
|
-
'otherSites': [{'siteType': 'animal housing'}]
|
|
31
|
-
},
|
|
32
|
-
False
|
|
33
|
-
),
|
|
34
|
-
(
|
|
35
|
-
'with animals, otherSites and stocking density => run',
|
|
36
|
-
{
|
|
37
|
-
'animals': [{'term': {'termType': 'liveAnimal'}, 'value': 10}],
|
|
38
|
-
'otherSites': [{'siteType': 'animal housing'}],
|
|
39
|
-
'practices': [{'term': {'@id': 'stockingDensityAnimalHousingAverage'}, 'value': [10]}]
|
|
40
|
-
},
|
|
41
|
-
True
|
|
42
|
-
),
|
|
43
|
-
(
|
|
44
|
-
'with multiple animal housing sites => no run',
|
|
45
|
-
{
|
|
46
|
-
'animals': [{'term': {'termType': 'liveAnimal'}, 'value': 10}],
|
|
47
|
-
'site': {'siteType': 'animal housing'},
|
|
48
|
-
'otherSites': [{'siteType': 'animal housing'}],
|
|
49
|
-
'practices': [{'term': {'@id': 'stockingDensityAnimalHousingAverage'}, 'value': [10]}]
|
|
50
|
-
},
|
|
51
|
-
False
|
|
52
|
-
)
|
|
53
|
-
]
|
|
54
|
-
)
|
|
55
|
-
def test_should_run(test_name, cycle, expected_should_run):
|
|
56
|
-
should_run = _should_run(cycle)
|
|
57
|
-
assert should_run == expected_should_run, test_name
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
def test_run():
|
|
61
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
62
|
-
data = json.load(f)
|
|
63
|
-
|
|
64
|
-
with open(f"{fixtures_folder}/result.txt", encoding='utf-8') as f:
|
|
65
|
-
expected = f.read().strip()
|
|
66
|
-
|
|
67
|
-
value = run(data)
|
|
68
|
-
assert value == [float(expected), None]
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
import pytest
|
|
3
|
-
from tests.utils import fixtures_path
|
|
4
|
-
|
|
5
|
-
from hestia_earth.models.cycle.otherSitesUnusedDuration import MODEL, MODEL_KEY, _should_run, run
|
|
6
|
-
|
|
7
|
-
fixtures_folder = f"{fixtures_path}/{MODEL}/{MODEL_KEY}"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@pytest.mark.parametrize(
|
|
11
|
-
'test_name,cycle,expected_should_run',
|
|
12
|
-
[
|
|
13
|
-
(
|
|
14
|
-
'no otherSites => no run',
|
|
15
|
-
{},
|
|
16
|
-
False
|
|
17
|
-
),
|
|
18
|
-
(
|
|
19
|
-
'with otherSites => no run',
|
|
20
|
-
{
|
|
21
|
-
'otherSites': [{'siteType': 'cropland'}, {'siteType': 'permanent pasture'}]
|
|
22
|
-
},
|
|
23
|
-
False
|
|
24
|
-
),
|
|
25
|
-
(
|
|
26
|
-
'with otherSites and otherSitesDuration => no run',
|
|
27
|
-
{
|
|
28
|
-
'otherSites': [{'siteType': 'cropland'}, {'siteType': 'permanent pasture'}],
|
|
29
|
-
'otherSitesDuration': [200, 300]
|
|
30
|
-
},
|
|
31
|
-
False
|
|
32
|
-
),
|
|
33
|
-
(
|
|
34
|
-
'with siteDuration and otherSitesDuration and longFallowRatio => run',
|
|
35
|
-
{
|
|
36
|
-
'otherSites': [{'@id': '1', 'siteType': 'cropland'}, {'@id': '2', 'siteType': 'permanent pasture'}],
|
|
37
|
-
'otherSitesDuration': [200, 300],
|
|
38
|
-
'practices': [{'term': {'@id': 'longFallowRatio'}, 'value': [10], 'site': {'@id': '1'}}]
|
|
39
|
-
},
|
|
40
|
-
True
|
|
41
|
-
)
|
|
42
|
-
]
|
|
43
|
-
)
|
|
44
|
-
def test_should_run_animal(test_name, cycle, expected_should_run):
|
|
45
|
-
should_run, *args = _should_run(cycle)
|
|
46
|
-
assert should_run == expected_should_run, test_name
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
def test_run():
|
|
50
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
51
|
-
data = json.load(f)
|
|
52
|
-
|
|
53
|
-
value = run(data)
|
|
54
|
-
assert value == [50, None]
|