@hestia-earth/engine-models 0.65.1 → 0.65.3
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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models.d.ts +0 -8
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/package.json +2 -2
- package/search-results.json +5123 -0
- package/src/index.ts +1 -0
- package/src/models.ts +0 -8
- package/src/version.ts +1 -0
- package/README.md +0 -52
package/src/index.ts
CHANGED
package/src/models.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { EmissionMethodTier } from '@hestia-earth/schema';
|
|
2
2
|
|
|
3
3
|
export interface IModel {
|
|
4
|
-
/**
|
|
5
|
-
* Is model from EcoinventV3.
|
|
6
|
-
*/
|
|
7
|
-
ecoinvent: boolean;
|
|
8
4
|
/**
|
|
9
5
|
* Path to the implementation (code) of the model.
|
|
10
6
|
*/
|
|
@@ -13,10 +9,6 @@ export interface IModel {
|
|
|
13
9
|
* Path to the documentation of the model.
|
|
14
10
|
*/
|
|
15
11
|
docPath: string;
|
|
16
|
-
/**
|
|
17
|
-
* Path to the API Documentation.
|
|
18
|
-
*/
|
|
19
|
-
apiDocsPath?: string;
|
|
20
12
|
/**
|
|
21
13
|
* The name of the model used as `methodModel`.
|
|
22
14
|
*/
|
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ENGINE_VERSION = '0.65.3';
|
package/README.md
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# HESTIA Engine Models
|
|
2
|
-
|
|
3
|
-
[](https://gitlab.com/hestia-earth/hestia-engine-models/commits/master)
|
|
4
|
-
[](https://gitlab.com/hestia-earth/hestia-engine-models/commits/master)
|
|
5
|
-
|
|
6
|
-
HESTIA's set of models for running calculations or retrieving data using external datasets and internal lookups.
|
|
7
|
-
|
|
8
|
-
## Documentation
|
|
9
|
-
|
|
10
|
-
Documentation for every model can be found in the [HESTIA API Documentation](https://hestia.earth/docs/#hestia-calculation-models).
|
|
11
|
-
|
|
12
|
-
## Install
|
|
13
|
-
|
|
14
|
-
1. Install python `3` (we recommend using python `3.6` minimum)
|
|
15
|
-
2. Install the module:
|
|
16
|
-
```bash
|
|
17
|
-
pip install hestia_earth.models
|
|
18
|
-
```
|
|
19
|
-
3. Set the following environment variables:
|
|
20
|
-
```
|
|
21
|
-
API_URL=https://api.hestia.earth
|
|
22
|
-
WEB_URL=https://hestia.earth
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Usage
|
|
26
|
-
|
|
27
|
-
```python
|
|
28
|
-
from hestia_earth.models.pooreNemecek2018 import run
|
|
29
|
-
|
|
30
|
-
# cycle is a JSONLD node Cycle
|
|
31
|
-
run('no3ToGroundwaterSoilFlux', cycle_data)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Additionally, to reduce the number of queries to the HESTIA API and run the models faster, prefetching can be enabled:
|
|
35
|
-
```python
|
|
36
|
-
from hestia_earth.models.preload_requests import enable_preload
|
|
37
|
-
|
|
38
|
-
enable_preload()
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Using Spatial Models
|
|
42
|
-
|
|
43
|
-
We have models that can gap-fill geographical information on a `Site`. If you want to use these models:
|
|
44
|
-
1. Install the library: `pip install hestia_earth.earth_engine`
|
|
45
|
-
2. Follow the [Getting Started instructions](https://gitlab.com/hestia-earth/hestia-earth-engine#getting-started).
|
|
46
|
-
|
|
47
|
-
### Using the ecoinventV3 model
|
|
48
|
-
|
|
49
|
-
ecoinvent is a consistent, transparent, and well validated life cycle inventory database.
|
|
50
|
-
We use ecoinvent data to ascertain the environmental impacts of activities that occur outside of our system boundary, for example data on the environmental impacts of extracting oil and producing diesel, or the impacts of manufacturing plastics.
|
|
51
|
-
|
|
52
|
-
The `ecoinventV3` model requires a valid [license](https://ecoinvent.org/offerings/licences/) to run. We are currently working on a way to enable users of this code with a valid ecoinvent licence to run these models themselves, but for now, these models are only available on the public platform.
|