@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/src/index.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './models';
2
+ export * from './version';
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
- [![Pipeline Status](https://gitlab.com/hestia-earth/hestia-engine-models/badges/master/pipeline.svg)](https://gitlab.com/hestia-earth/hestia-engine-models/commits/master)
4
- [![Coverage Report](https://gitlab.com/hestia-earth/hestia-engine-models/badges/master/coverage.svg)](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.