Skip to main content

Solid Waste Optimization Life-cycle Framework in Python(SwolfPy)

https://img.shields.io/pypi/v/swolfpy.svg Supported Python Versions License Downloads Format Documentation Status Test DOi JIE DOI

Features

  • Life-cycle assessment of Municipal Solid Waste (MSW) systems

    • Comparative LCA

    • Contribution analysis

    • LCI report

  • Monte Carlo simulation

    • Uncertainty analysis

    • Data visualization (distributions & correlations)

  • Optimization

    • Minimize environmental burdens or cost subject to a number of technical or policy-related constraints

Life-cycle process models

Process model

Description

1

Landfill (LF)

Calculates emissions, material use, and energy use associated with construction, operations, closure and post-closure activities, landfill gas and leachate management, and carbon storage.

2

Waste-to-Energy (WTE)

Calculates emissions, mass flows, and resource use and recovery for the mass burn WTE process.

3

Gasification & Syngas Combustion (GC)

Calculates emissions, mass flows, and resource use and recovery for the GC process (Produced syngas from gasification is combusted to produce electricity by steam turbine).

4

Composting (Comp)

Calculates emissions, mass flows, and resource use and recovery for aerobic composting process and final use of compost.

5

Home Composting (HC)

Calculates emissions, mass flows, and resource use and recovery for home composting process and final use of compost.

6

Anaerobic Digestion (AD)

Calculates emissions, mass flows, and resource use and recovery for anaerobic digestion process and final use of compost.

7

Single-Stream Material Recovery facility (SS_MRF)

Calculates cost, emissions, and energy use associated with material recovery facilities.

8

Refuse-Derived Fuel (RDF)

Calculates cost, emissions, and energy use associated with RDF production facilities.

9

Reprocessing (Reproc)

Calculates emissions, mass flows, and resource use and recovery associated with recycling materials.

10

Transfer Station (TS)

Calculates cost, emissions, and energy use associated with Transfer Stations.

11

Single Family Collection (SF_Col)

Calculates cost, emissions, and fossil fuel use associated with MSW collection from single family sector.

12

Multi Family Collection (MF_Col)

Calculates cost, emissions, and fossil fuel use associated with MSW collection from multi-family sector.

13

Commercial Collection (COM_Col)

Calculates cost, emissions, and fossil fuel use associated with MSW collection from commercial sector.

14

Animal Feed (AnF)

Calculates cost, emissions, and energy use associated with conversion of food waste to animal feed and final use of produced feed.

Installation

1- Download and install miniconda from: https://docs.conda.io/en/latest/miniconda.html

2- Update conda in a terminal window or anaconda prompt:

conda update conda

3- Create a new environment for swolfpy:

conda create --name swolfpy python=3.9 graphviz

4- Add Graphviz executables to your system PATH (This step is optional; Enables plotting SWM network). You can find Graphviz executables in \\miniconda3\\envs\\swolfpy\\Library\\bin\\graphviz folder or search for dot.exe file in your system. Add the directory to the Path variable in your environment variables.

5- Activate the environment:

conda activate swolfpy

6- Install swolfpy in the environment:

pip install swolfpy

7- Open python to run swolfpy:

python

8- Run swolfpy

  • In terminal:

    swolfpy
    # or
    python -m swolfpy
  • In python:

    import swolfpy as sp
    sp.SwolfPy()

History

1.4.0 (2024-03-02)

  • Pin the version of scipy to 1.8.0 to avoid inexact indices changed from a deprecation to raising an error in 1.9

  • Fix sphinx warnings

1.3.0 (2024-02-20)

  • Add entry point for the GUI (run swolfpy in terminal)

1.2.0 (2023-07-30)

  • Downgrade to Python 3.9

1.0.0 (2023-06-03)

  • Upgrade to Python 3.10

  • Add PreCommit

0.2.5 (2022-04-07)

  • Minor changes in optimization and GUI

0.2.3 (2021-11-16)

  • Improve data validation in GUI

  • Improve warning/Pop-ups

0.2.2 (2021-10-02)

  • Add Home Composting (HC)

  • Add Gasification & Syngas combustion (GC)

  • Add Refuse-derived fuel (RDF)

0.2.0 (2021-05-10)

  • Add tab for correlation analysis.

  • Add cost calculations.

  • Add help to interface.

  • Parallel optimization.

0.1.8 (2020-05-20)

  • Add tab for Monte Carlo results analysis.

  • Show Sankey for mass flows after optimization.

  • Show SWM Network graph.

0.1.6 (2020-04-11)

  • Add Reprocessing.

  • Revise Functional units.

  • Revise parameters class.

0.1.0 (2020-02-27)

  • First release on PyPI.

  • Main functionality: LCA, Monte-Carlo, and Optimization.

  • Process Models include LF, WTE, Composting, AD, SS_MRF, and Collection.

Metadata

Release files for swolfpy 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swolfpy 1.4.0
File Size Uploaded
swolfpy-1.4.0.tar.gz 6.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for swolfpy 1.4.0
File Interpreter ABI Platform
swolfpy-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 MB

Release files / swolfpy-1.4.0.tar.gz

Download URL swolfpy-1.4.0.tar.gz
Size 6.8 MB
Tags Source
SHA-256 checksum
How to use checksums
7964cb077ef1d62960d8b583b81741456ade829b91934a2fc9ca4c8d21f4b953
BLAKE2b-256 checksum
How to use checksums
50756df90dae95791c9a2d4d894c59ffc9d330d67102a4086a2d2ec9cfe8a0a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / swolfpy-1.4.0-py3-none-any.whl

Download URL swolfpy-1.4.0-py3-none-any.whl
Size 603.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a578621027c05ca020df57f90ed869d5ac9637a67000f60705b8a3181f5acde0
BLAKE2b-256 checksum
How to use checksums
913595394137174fa174d81fb259a5b52032fa4da72239bf223e1ffa255d1fb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

3 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page