├── .gitignore ├── .travis.yml ├── CHANGES.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── MANIFEST.in ├── README.md ├── appveyor.yml ├── docs ├── Makefile ├── make.bat ├── notebooks │ ├── Quickstart - the notebook edition.ipynb │ ├── Using presamples with brightway2.ipynb │ └── presamples docs and examples.ipynb └── source │ ├── conf.py │ ├── contributing.rst │ ├── examples.rst │ ├── images │ ├── bw2_eg1_A_orig.jpeg │ ├── bw2_eg1_A_orig.jpg │ ├── bw2_eg1_A_with_ps.jpeg │ ├── bw2_eg1_A_with_ps.jpg │ ├── bw2_eg1_A_without_ps.jpg │ ├── bw2_eg1a.jpg │ ├── bw2_eg1b.jpg │ ├── bw2_eg2_A0.jpeg │ ├── bw2_eg2_A0.jpg │ ├── bw2_eg2_A1.jpg │ ├── bw2_eg3_after.jpg │ ├── bw2_eg3_before.jpg │ ├── bw2_eg4_plot.jpeg │ ├── eg1_A_after.jpeg │ ├── eg1_A_orig.jpeg │ └── matrix_data.jpg │ ├── index.rst │ ├── installing.rst │ ├── presamples_logo.png │ ├── pubs.rst │ ├── quickstart.rst │ ├── tech_ref.rst │ └── use_with_bw2.rst ├── presamples ├── __init__.py ├── array.py ├── campaigns.py ├── errors.py ├── fallbacks.py ├── indexer.py ├── loader.py ├── models │ ├── __init__.py │ ├── fixed_sum.py │ ├── inventory_base.py │ ├── kronecker_delta.py │ ├── model_base.py │ └── parameterized.py ├── package_interface.py ├── packaging.py └── utils.py ├── presamples_logo.png ├── pytest.ini ├── requirements.txt ├── setup.py ├── test_requirements.txt └── tests ├── campaigns.py ├── fixed_sum.py ├── import_order.py ├── indexer.py ├── inventory_model.py ├── kronecker.py ├── loader.py ├── matrix_insertion.py ├── package_interface.py ├── parameterized_brightway_model.py ├── presamples_array.py ├── random.nonsense ├── test_packaging.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/CHANGES.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/appveyor.yml -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/notebooks/Quickstart - the notebook edition.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/notebooks/Quickstart - the notebook edition.ipynb -------------------------------------------------------------------------------- /docs/notebooks/Using presamples with brightway2.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/notebooks/Using presamples with brightway2.ipynb -------------------------------------------------------------------------------- /docs/notebooks/presamples docs and examples.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/notebooks/presamples docs and examples.ipynb -------------------------------------------------------------------------------- /docs/source/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/conf.py -------------------------------------------------------------------------------- /docs/source/contributing.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/contributing.rst -------------------------------------------------------------------------------- /docs/source/examples.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/examples.rst -------------------------------------------------------------------------------- /docs/source/images/bw2_eg1_A_orig.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg1_A_orig.jpeg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg1_A_orig.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg1_A_orig.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg1_A_with_ps.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg1_A_with_ps.jpeg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg1_A_with_ps.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg1_A_with_ps.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg1_A_without_ps.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg1_A_without_ps.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg1a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg1a.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg1b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg1b.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg2_A0.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg2_A0.jpeg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg2_A0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg2_A0.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg2_A1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg2_A1.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg3_after.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg3_after.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg3_before.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg3_before.jpg -------------------------------------------------------------------------------- /docs/source/images/bw2_eg4_plot.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/bw2_eg4_plot.jpeg -------------------------------------------------------------------------------- /docs/source/images/eg1_A_after.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/eg1_A_after.jpeg -------------------------------------------------------------------------------- /docs/source/images/eg1_A_orig.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/eg1_A_orig.jpeg -------------------------------------------------------------------------------- /docs/source/images/matrix_data.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/images/matrix_data.jpg -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/index.rst -------------------------------------------------------------------------------- /docs/source/installing.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/installing.rst -------------------------------------------------------------------------------- /docs/source/presamples_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/presamples_logo.png -------------------------------------------------------------------------------- /docs/source/pubs.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/pubs.rst -------------------------------------------------------------------------------- /docs/source/quickstart.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/quickstart.rst -------------------------------------------------------------------------------- /docs/source/tech_ref.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/tech_ref.rst -------------------------------------------------------------------------------- /docs/source/use_with_bw2.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/docs/source/use_with_bw2.rst -------------------------------------------------------------------------------- /presamples/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/__init__.py -------------------------------------------------------------------------------- /presamples/array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/array.py -------------------------------------------------------------------------------- /presamples/campaigns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/campaigns.py -------------------------------------------------------------------------------- /presamples/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/errors.py -------------------------------------------------------------------------------- /presamples/fallbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/fallbacks.py -------------------------------------------------------------------------------- /presamples/indexer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/indexer.py -------------------------------------------------------------------------------- /presamples/loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/loader.py -------------------------------------------------------------------------------- /presamples/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/models/__init__.py -------------------------------------------------------------------------------- /presamples/models/fixed_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/models/fixed_sum.py -------------------------------------------------------------------------------- /presamples/models/inventory_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/models/inventory_base.py -------------------------------------------------------------------------------- /presamples/models/kronecker_delta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/models/kronecker_delta.py -------------------------------------------------------------------------------- /presamples/models/model_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/models/model_base.py -------------------------------------------------------------------------------- /presamples/models/parameterized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/models/parameterized.py -------------------------------------------------------------------------------- /presamples/package_interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/package_interface.py -------------------------------------------------------------------------------- /presamples/packaging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/packaging.py -------------------------------------------------------------------------------- /presamples/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples/utils.py -------------------------------------------------------------------------------- /presamples_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/presamples_logo.png -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/pytest.ini -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | bw2calc 2 | bw2data 3 | numpy 4 | peewee 5 | scipy 6 | stats_arrays 7 | wrapt 8 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/setup.py -------------------------------------------------------------------------------- /test_requirements.txt: -------------------------------------------------------------------------------- 1 | bw2calc 2 | bw2data 3 | numpy 4 | pytest 5 | scipy 6 | wrapt 7 | -------------------------------------------------------------------------------- /tests/campaigns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/campaigns.py -------------------------------------------------------------------------------- /tests/fixed_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/fixed_sum.py -------------------------------------------------------------------------------- /tests/import_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/import_order.py -------------------------------------------------------------------------------- /tests/indexer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/indexer.py -------------------------------------------------------------------------------- /tests/inventory_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/inventory_model.py -------------------------------------------------------------------------------- /tests/kronecker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/kronecker.py -------------------------------------------------------------------------------- /tests/loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/loader.py -------------------------------------------------------------------------------- /tests/matrix_insertion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/matrix_insertion.py -------------------------------------------------------------------------------- /tests/package_interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/package_interface.py -------------------------------------------------------------------------------- /tests/parameterized_brightway_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/parameterized_brightway_model.py -------------------------------------------------------------------------------- /tests/presamples_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/presamples_array.py -------------------------------------------------------------------------------- /tests/random.nonsense: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/random.nonsense -------------------------------------------------------------------------------- /tests/test_packaging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/test_packaging.py -------------------------------------------------------------------------------- /tests/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PascalLesage/presamples/HEAD/tests/utils.py --------------------------------------------------------------------------------