UI.petro module¶
Module with petroleum fraction pseudocomponent definition UI interfaces
Definicion_Petro: Definition of crude and oil fraction
View_Petro: Dialog to show the properties of a petroleum fraction
API reference¶
- class UI.petro.View_Petro(petrol=None, parent=None)[source]¶
Bases:
QDialogDialog to show the properties of a petroleum fractions
Methods
fill(petrol)Fill petrol properties values in widgets
setReadOnly(boolean)Set readonly state for child widgets
- class UI.petro.Definicion_Petro(parent=None)[source]¶
Bases:
newComponentDialog for define hypothetical crude and oil fraction
- Attributes:
unknownDefine compound to show properties by options selected in widget
Methods
Change type of calculation and update widget
Check curren data of curve to check completeness of its definition and enable/disable accordly the buttons
curveIndexChanged(index)Show the composition unit appropiated to the new curve selected
End the curve distillation definition and add the data to the Petroleo instance
Do distillation curve fitting regression
Define cut range for blending
- ViewDetails¶
alias of
View_Petro
- property unknown¶
Define compound to show properties by options selected in widget
- finishCurva()[source]¶
End the curve distillation definition and add the data to the Petroleo instance