pyDEA package

Subpackages

Submodules

pyDEA.main module

This module contains methods for running pyDEA from terminal.

pyDEA.main.main(filename, output_format='xlsx', output_dir='', sheet_name_usr='')[source]

Main function to run DEA models from terminal.

Parameters:
  • filename (str) – path to file with parameters.
  • output_format (str, optional) – file format of solution file. This value is used only if OUTPUT_FILE in parameters is empty or set to auto. Defaults to xlsx.
  • output_dir (str, optional) – directory where solution must be written. If it is not given, solution will be written to current folder. This value is used only if OUTPUT_FILE in parameters is empty or set to auto.
  • sheet_name_usr (str, optional) – name of the sheet in xls- or xlsx-file with input data from which data will be read. If input data file is in csv format, this value is ignored.

pyDEA.main_gui module

This module should be used for running application GUI.

class pyDEA.main_gui.MainFrame(parent, *args, **kwargs)[source]

Bases: tkinter.ttk.Frame

This class implements main GUI of the application.

parent

Tk object

parent of this frame (Tk()).

params_frame

ParamsFrame

frame with parameters.

data_frame

DataFrame

frame with data and solution.

progress_bar

Progressbar

progress bar widget.

increment

int

progress bar increment, it is modified in other classes that are responsible for solving the problem and update progress.

weights_status_lbl

Label

label that displays if weight restrictions are feasible.

weights_status_str

StringVar

StringVar object used for tracking if weight restrictions are feasible.

current_categories

list of str

list of current categories.

Parameters:parent (Tk object) – parent of this frame (Tk()).
construct_categories()[source]

Returns current categories.

Returns:list of current categories
Return type:(list of str)
create_widgets()[source]

Creates all widgets that belong to this frame.

on_dmu_change(*args)[source]

Updates progress bar.

on_weights_status_change(*args)[source]

This method is called when weight restrictions status is changed.

run()[source]

This method is called when the user presses Run button. Solves the problem and displays solution.

pyDEA.main_gui.ask_quit(main_frame)[source]

This method is called before application is closed if there is an unsaved solution to verify if the user wants to safe solution before quitting.

Parameters:main_frame (MainFrame) – main application GUI.
pyDEA.main_gui.main()[source]

Runs main application GUI.

pyDEA.main_gui.show_error(*args)[source]

Module contents