Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jan 22, 2024
2 parents 0c5cf24 + 522ebf8 commit 70dc096
Show file tree
Hide file tree
Showing 8 changed files with 1,120 additions and 1,339 deletions.
416 changes: 406 additions & 10 deletions dev/Untitled1.ipynb

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions docs/load.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,58 @@ This is done as follows:
*premise* relies on ISIC v.4 and CCP classifications to categorize activities.
Also, a number of activities do not have a category and are found under *Meterials/Others*.

As Simapro CSV files for OpenLCA
--------------------------------

*premise* can export the databases as a modified version
of Simapro-CSV files compatible with OpenLCA.

This is done as follows:

.. code-block:: python
ndb.write_db_to_olca()
.. note::

The categorization of imported activities may differ from OpenLCA's
original classification.


The Simapro CSV files can be imported in OpenLCA in a new database like so:

.. image:: olca_fig1.png
:width: 500pt
:align: center


You will need to select "SimaproCSV_Import.csv" as mapping file to use.

.. image:: olca_fig2.png
:width: 500pt
:align: center


Finally, once imported, unlinked flows remain. They can be found under these highlighted folders:

.. image:: olca_fig3.png
:width: 500pt
:align: center


To link them, you need to import an additional mapping flow that you can find here
("Tools" > "Flow mapping" > "Open file").

.. image:: olca_fig4.png
:width: 500pt
:align: center


And then go to "Flow mapping" > "Apply on database".
A few dozens of unlinked flows will remain. You may fix that by manually mapping them.



As a data package
-----------------

Expand Down
Binary file added docs/olca_fig1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/olca_fig2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/olca_fig3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/olca_fig4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,337 changes: 662 additions & 675 deletions premise/data/utils/export/flow_mapping_olca.csv

Large diffs are not rendered by default.

654 changes: 0 additions & 654 deletions premise/data/utils/export/flow_mapping_olca_2.csv

This file was deleted.

0 comments on commit 70dc096

Please sign in to comment.