Skip to main content

Package for conducting data envelopment analysis

Project description

pyDEA is a software package developed in Python for conducting data envelopment analysis (DEA).

User documentation can be found at https://araith.github.io/pyDEA/.

Source

The latest source version is available on github: https://github.com/araith/pyDEA.

Installation

The pyDEA package can be installed via pip, easy_install or from source. In order to install it via pip open terminal and use the following command:

>> pip install pyDEA

In order to install a specific version use the following command:

>> pip install pyDEA==version_number

In order to install pyDEA via easy_install use the following command:

>> easy_install pyDEA

Or for specific version:

>> easy_install pyDEA==version_number

In order to install from source, download and unzip source files, open terminal and navigate to pyDEA main folder and run the following command:

>> python setup.py install –record files.txt

This command will create distribution files in pyDEA folder and write paths to all other installed files to files.txt.

How to Run

The pyDEA package supports several interfaces. It has a Graphical User Interface (GUI), Command Line Interface (CLI) and it can be imported and used directly in python scripts. After package installation, in order to run GUI, open terminal and type:

>> pyDEA

Or use command:

>> python -m pyDEA.main_gui

In order to run CLI, use the following command:

>> python -m pyDEA.main file_with_params output_file_format output_dir sheet_name

where

  • file_with_params is path to file with parameters.

  • output_file_format, possible values: xls, xlsx and csv, default value is xlsx. This value is optional and is used only if OUTPUT_FILE in parameters file is empty or set to auto. Otherwise, the value in OUTPUT_FILE is used instead.

  • output_dir is output directory. It is optional, if it is not specified, solution will be written to current directory. This value is used only if OUTPUT_FILE in parameters file is empty or set to auto. Otherwise, the value in OUTPUT_FILE is used instead.

  • sheet_name is sheet name from which data should be read. It is optional, if it is not specified, data will be read from the first sheet.

If you want to specify sheet name, but not output directory use empty string as the third argument, as shown below:

>> python -m pyDEA.main .file_with_params “” “” sheet_name

If file path contains spaces use quotes.

The pyDEA package can be imported in a python script as any other package. However, in order to access its methods and classes you need explicitly import them, for example, from pyDEA import main_gui. Then you can execute GUI by calling main_gui.main().

Another example:

>> from pyDEA.core.utils import dea_utils

>> dea_utils.change_to_unique_name_if_needed(“test”)

This example imports all methods and classes defined in dea_utils.

Uninstalling

If pyDEA was installed via pip or easy_install, it can be uninstalled by using the following command:

>> pip uninstall pyDEA

If pyDEA was installed from source, it must be manually uninstalled. Simply remove all files listed in files.txt and all pyDEA package files.

Acknowledgements

pyDEA has been financially supported by the Department of Engineering Science at the University of Auckland and the Auckland Medical Research Foundation (AMRF).

The pyDEA solver was first developed during a summer project in 2009 / 2010 at the University of Auckland, Department of Engineering Science by Kane Harton. Development was continued by Harriet Priddey during her Part IV project at the Department of Engineering Science in 2010. The code was further modified and enhanced with a GUI by Andrea Raith in 2010 / 2011. Alan Lee, Matt Rouse and Andrea Raith continued work on the GUI and the underlying DEA solver continued between November 2011 and February 2012. From 2014, pyDEA was re-implemented by Olga Perederieieva with input from Fariza Fauzi.

Thank you to Paul Rouse for guidance on DEA and help with the revamped version of pyDEA. Also, thank you to Oliver Weide for help with python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyDEA-1.6.tar.gz (213.9 kB view details)

Uploaded Source

Built Distribution

pyDEA-1.6-py3-none-any.whl (121.7 kB view details)

Uploaded Python 3

File details

Details for the file pyDEA-1.6.tar.gz.

File metadata

  • Download URL: pyDEA-1.6.tar.gz
  • Upload date:
  • Size: 213.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyDEA-1.6.tar.gz
Algorithm Hash digest
SHA256 753757517f2f7c28c2e2dd4f061909f2faedaf6422e6e3160526cd79f2443eba
MD5 18b4d8d23c88cd700c43db9fa318cd38
BLAKE2b-256 98a51158328ef1b8ab9607e4dcd3987fee40543528f15aabbbacfb02dbbbd6fd

See more details on using hashes here.

File details

Details for the file pyDEA-1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pyDEA-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e93046d202c2a7beb1a25732d2aa4588ad0b2ba1e2acead7c3919001fe1dcef8
MD5 1bee18c3648446ed17521ba4212fbd21
BLAKE2b-256 f82d06a4560b9ffc0005e2fcf3bf328725b7b4b0c07312a9081972d0fd66d7ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page