tools.costIndex module

Pychemqt include a basic cost stimation utility for equipments. The cost are updated using the Chemical Engineering Plant Cost Index (CEPCI) update monthly at https://www.chemengonline.com. The index define several kind of equipments with different update values.

costIndex

The module include all related cost index functionality:

  • UI_CostIndex: Dialog to show/configure costindex values

  • CostData: Common widget for equipment with cost support

API reference

class tools.costIndex.Ui_CostIndex(parent=None)[source]

Bases: QDialog

Dialog to show/configure costIndex

Methods

accept()

Overwrite accept signal to save changes

closeEvent(event)

Override close event to ask data changes

loadData(i)

Load costIndex data from file

setCustom()

Set custom currentIndex

__init__(parent=None)[source]
setCustom()[source]

Set custom currentIndex

loadData(i)[source]

Load costIndex data from file

closeEvent(event)[source]

Override close event to ask data changes

accept()[source]

Overwrite accept signal to save changes

class tools.costIndex.CostData(equipment, parent=None)[source]

Bases: QWidget

Common widget for equipment with cost support It have property to easy access to properties:

  • factor: install factor

  • base: base index (January 1982)

  • actual: current index

  • values: a tuple with all properties, (factor, base,actual)

Attributes:
actual

Actual index value

base

Base index value

factor

Instalation factor value property

values

Tuple with the instalation factor, the base and actual index

Methods

enterEvent([event])

Show costIndex button when mouse enter in widget

leaveEvent([event])

Hide costIndex button when mouse leave widget

on_costIndex_clicked()

Show costIndes dialog to show/change

setActual(value)

Set actual index value

setBase(value)

Set base index value

setFactor(value)

Set instalation factor value property

setValues(factor, base, actual)

Set values property

valueChanged

valueChanged

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

__init__(equipment, parent=None)[source]

equipment: equipment class where the widget have to be put, define indiceCostos as a index in costIndex

on_costIndex_clicked()[source]

Show costIndes dialog to show/change

enterEvent(event=None)[source]

Show costIndex button when mouse enter in widget

leaveEvent(event=None)[source]

Hide costIndex button when mouse leave widget

property factor

Instalation factor value property

setFactor(value)[source]

Set instalation factor value property

property base

Base index value

setBase(value)[source]

Set base index value

property actual

Actual index value

setActual(value)[source]

Set actual index value

property values

Tuple with the instalation factor, the base and actual index

setValues(factor, base, actual)[source]

Set values property