@hestia-earth/engine-models 0.81.6 → 0.82.0
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.
- package/README.md +19 -0
- package/cjs/formulas.d.ts +86 -0
- package/cjs/formulas.js +180 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +1 -0
- package/cjs/version.d.ts +1 -1
- package/cjs/version.js +1 -1
- package/esm/formulas.d.ts +86 -0
- package/esm/formulas.js +130 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/formulas/README.md +190 -0
- package/formulas/deRuijterEtAl2010/nh3ToAirCropResidueDecomposition.json +30 -0
- package/formulas/emepEea2019/co2ToAirFuelCombustion.json +23 -0
- package/formulas/emepEea2019/nh3ToAirExcreta.json +27 -0
- package/formulas/emepEea2019/pm10ToAirAnimalHousing.json +28 -0
- package/formulas/emepEea2019/pm25ToAirAnimalHousing.json +28 -0
- package/formulas/emepEea2019/tspToAirAnimalHousing.json +28 -0
- package/formulas/hestia/feedConversionRatio/feedConversionRatioCarbon.json +23 -0
- package/formulas/index.json +2464 -0
- package/formulas/ipcc2019/belowGroundCropResidue.json +31 -0
- package/formulas/ipcc2019/ch4ToAirAquacultureSystems.json +29 -0
- package/formulas/ipcc2019/ch4ToAirEntericFermentation.json +29 -0
- package/formulas/ipcc2019/ch4ToAirExcreta.json +36 -0
- package/formulas/ipcc2019/ch4ToAirFloodedRice.json +31 -0
- package/formulas/ipcc2019/ch4ToAirOrganicSoilCultivation.json +40 -0
- package/formulas/ipcc2019/co2ToAirUreaHydrolysis.json +27 -0
- package/formulas/ipcc2019/emissionsToAirOrganicSoilBurning.json +49 -0
- package/formulas/ipcc2019/n2OToAirAquacultureSystemsIndirect.json +31 -0
- package/formulas/ipcc2019/n2OToAirCropResidueBurningDirect.json +25 -0
- package/formulas/ipcc2019/n2OToAirCropResidueDecompositionDirect.json +28 -0
- package/formulas/ipcc2019/n2OToAirCropResidueDecompositionIndirect.json +35 -0
- package/formulas/ipcc2019/n2OToAirExcretaDirect.json +25 -0
- package/formulas/ipcc2019/n2OToAirExcretaIndirect.json +39 -0
- package/formulas/ipcc2019/n2OToAirFuelCombustionIndirect.json +31 -0
- package/formulas/ipcc2019/n2OToAirInorganicFertiliserDirect.json +28 -0
- package/formulas/ipcc2019/n2OToAirInorganicFertiliserIndirect.json +39 -0
- package/formulas/ipcc2019/n2OToAirNaturalVegetationBurningIndirect.json +31 -0
- package/formulas/ipcc2019/n2OToAirOrganicFertiliserDirect.json +28 -0
- package/formulas/ipcc2019/n2OToAirOrganicFertiliserIndirect.json +39 -0
- package/formulas/ipcc2019/n2OToAirOrganicSoilBurningIndirect.json +31 -0
- package/formulas/ipcc2019/n2OToAirOrganicSoilCultivationIndirect.json +31 -0
- package/formulas/ipcc2019/nh3ToAirInorganicFertiliser.json +31 -0
- package/formulas/ipcc2019/nh3ToAirOrganicFertiliser.json +31 -0
- package/formulas/ipcc2019/no3ToGroundwaterCropResidueDecomposition.json +28 -0
- package/formulas/ipcc2019/no3ToGroundwaterExcreta.json +28 -0
- package/formulas/ipcc2019/no3ToGroundwaterInorganicFertiliser.json +28 -0
- package/formulas/ipcc2019/no3ToGroundwaterOrganicFertiliser.json +28 -0
- package/formulas/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.json +13 -0
- package/formulas/ipcc2019/noxToAirInorganicFertiliser.json +31 -0
- package/formulas/ipcc2019/noxToAirOrganicFertiliser.json +31 -0
- package/formulas/ipcc2019/pastureGrass.json +556 -0
- package/formulas/pooreNemecek2018/ch4ToAirAquacultureSystems.json +88 -0
- package/formulas/pooreNemecek2018/n2OToAirAquacultureSystemsDirect.json +32 -0
- package/formulas/pooreNemecek2018/n2ToAirAquacultureSystems.json +32 -0
- package/formulas/pooreNemecek2018/nh3ToAirAquacultureSystems.json +40 -0
- package/formulas/pooreNemecek2018/no3ToGroundwaterCropResidueDecomposition.json +68 -0
- package/formulas/pooreNemecek2018/no3ToGroundwaterExcreta.json +68 -0
- package/formulas/pooreNemecek2018/no3ToGroundwaterInorganicFertiliser.json +68 -0
- package/formulas/pooreNemecek2018/no3ToGroundwaterOrganicFertiliser.json +68 -0
- package/formulas/pooreNemecek2018/noxToAirAquacultureSystems.json +32 -0
- package/formulas/schererPfister2015/nErosionSoilFlux.json +34 -0
- package/formulas/schererPfister2015/pErosionSoilFlux.json +109 -0
- package/formulas/stehfestBouwman2006/n2OToAirCropResidueDecompositionDirect.json +37 -0
- package/formulas/stehfestBouwman2006/n2OToAirExcretaDirect.json +37 -0
- package/formulas/stehfestBouwman2006/n2OToAirInorganicFertiliserDirect.json +37 -0
- package/formulas/stehfestBouwman2006/n2OToAirOrganicFertiliserDirect.json +37 -0
- package/formulas/stehfestBouwman2006/noxToAirCropResidueDecomposition.json +36 -0
- package/formulas/stehfestBouwman2006/noxToAirExcreta.json +36 -0
- package/formulas/stehfestBouwman2006/noxToAirInorganicFertiliser.json +36 -0
- package/formulas/stehfestBouwman2006/noxToAirOrganicFertiliser.json +36 -0
- package/model-links.json +626 -5
- package/package.json +9 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/engine-models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.0",
|
|
4
4
|
"description": "HESTIA Engine Models",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build:ecoinvent-terms": "node scripts/build-ecoinvent-terms.js",
|
|
31
|
-
"build:models": "npm run build:ecoinvent-terms && node scripts/generate-models-links.js",
|
|
31
|
+
"build:models": "npm run build:ecoinvent-terms && node scripts/generate-models-links.js && node scripts/generate-formulas.js",
|
|
32
32
|
"build:documentation": "node scripts/generate-documentation.js",
|
|
33
33
|
"build": "./build-models-json.sh && npm run build:models && npm run build:documentation",
|
|
34
34
|
"build:module": "rm -rf dist && tsc -p tsconfig.dist.json && tsc -p tsconfig.esm.json && npm run build:module:data",
|
|
35
|
-
"build:module:data": "mkdir -p dist/config && cp model-links.json dist/ && cp config/*.json dist/config/ && cp package.json README.md dist/",
|
|
35
|
+
"build:module:data": "mkdir -p dist/config && cp model-links.json dist/ && cp -R formulas dist/ && cp config/*.json dist/config/ && cp package.json README.md dist/",
|
|
36
36
|
"lint": "tsc --noEmit && eslint .",
|
|
37
37
|
"lint:fix": "npm run lint -- --fix",
|
|
38
38
|
"test": "jest --coverage",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"validate:config": "ajv validate -s scripts/config-schema.json -d config/Cycle.json -d config/ImpactAssessment.json -d config/Site.json",
|
|
42
42
|
"validate:models": "node scripts/validate-models-schema.js",
|
|
43
43
|
"validate:docs": "node scripts/validate-documentation.js",
|
|
44
|
+
"validate:formula-coverage": "node scripts/formula-coverage.js",
|
|
44
45
|
"validate:calculations": "ajv validate -s scripts/calculations-schema.json -d config/run-calculations.json -d config/trigger-calculations.json",
|
|
45
46
|
"prepare-release": "node scripts/update-package-version.js && npm run build",
|
|
46
47
|
"release": "standard-version -a",
|
|
@@ -71,11 +72,11 @@
|
|
|
71
72
|
"@babel/preset-typescript": "^7.28.5",
|
|
72
73
|
"@commitlint/cli": "^19.8.1",
|
|
73
74
|
"@commitlint/config-conventional": "^19.8.1",
|
|
74
|
-
"@hestia-earth/api": "^0.26.
|
|
75
|
+
"@hestia-earth/api": "^0.26.14",
|
|
75
76
|
"@hestia-earth/eslint-config": "^0.1.1",
|
|
76
|
-
"@hestia-earth/json-schema": "^
|
|
77
|
-
"@hestia-earth/schema": "^
|
|
78
|
-
"@hestia-earth/schema-validation": "^
|
|
77
|
+
"@hestia-earth/json-schema": "^38.0.0",
|
|
78
|
+
"@hestia-earth/schema": "^38.0.0",
|
|
79
|
+
"@hestia-earth/schema-validation": "^38.0.0",
|
|
79
80
|
"@hestia-earth/utils": "^0.17.19",
|
|
80
81
|
"@jest/globals": "^29.7.0",
|
|
81
82
|
"@types/node": "^22.19.15",
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
},
|
|
104
105
|
"standard-version": {
|
|
105
106
|
"scripts": {
|
|
106
|
-
"postchangelog": "npm run prepare-release && git add model-links.json && git add hestia_earth/models/**/*.md && git add hestia_earth/models/version.py && git add src/version.ts"
|
|
107
|
+
"postchangelog": "npm run prepare-release && git add model-links.json && git add formulas && git add hestia_earth/models/**/*.md && git add hestia_earth/models/version.py && git add src/version.ts"
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
"husky": {
|