GridCal.Gui.ProfilesInput package

Submodules

GridCal.Gui.ProfilesInput.excel_dialog module

class GridCal.Gui.ProfilesInput.excel_dialog.ExcelDialog(parent=None, excel_file=None)

Bases: PySide2.QtWidgets.QDialog

accepted_action()
rejected_action()
staticMetaObject = <PySide2.QtCore.QMetaObject object>

GridCal.Gui.ProfilesInput.excel_sheet_selection module

class GridCal.Gui.ProfilesInput.excel_sheet_selection.Ui_ExcelSelectionDialog

Bases: object

retranslateUi(ExcelSelectionDialog)
setupUi(ExcelSelectionDialog)

GridCal.Gui.ProfilesInput.gui module

class GridCal.Gui.ProfilesInput.gui.Ui_Dialog

Bases: object

retranslateUi(Dialog)
setupUi(Dialog)

GridCal.Gui.ProfilesInput.icons_rc module

GridCal.Gui.ProfilesInput.icons_rc.qCleanupResources()
GridCal.Gui.ProfilesInput.icons_rc.qInitResources()

GridCal.Gui.ProfilesInput.matplotlibwidget module

class GridCal.Gui.ProfilesInput.matplotlibwidget.MatplotlibWidget(parent=None)

Bases: PySide2.QtWidgets.QWidget

clear(force=False)

Clear the interface Args:

force: Remove the object and create a new one (brute force)

Returns:

get_axis()
get_figure()
plot(x, y, title='', xlabel='', ylabel='')

Plot series Args:

x: X values y: Y values title: Title xlabel: Label for X ylabel: Label for Y

Returns:

redraw()

Redraw the interface Returns:

setTitle(text)

Sets the figure title

staticMetaObject = <PySide2.QtCore.QMetaObject object>
class GridCal.Gui.ProfilesInput.matplotlibwidget.MplCanvas

Bases: matplotlib.backends.backend_qt5agg.FigureCanvasQTAgg

pan_factory(ax)

Mouse pan handler

rec_zoom()
setTitle(text)

Sets the figure title

set_graph_mode()

Sets the borders to nicely display graphs

set_last_zoom()
staticMetaObject = <PySide2.QtCore.QMetaObject object>
zoom_factory(ax, base_scale=1.2)

Mouse zoom handler

GridCal.Gui.ProfilesInput.profile_dialogue module

class GridCal.Gui.ProfilesInput.profile_dialogue.MultiplierType

Bases: enum.Enum

An enumeration.

Cosfi = 2
Mult = (1,)
class GridCal.Gui.ProfilesInput.profile_dialogue.PandasModel(data, parent=None)

Bases: PySide2.QtCore.QAbstractTableModel

Class to populate a Qt table view with a pandas data frame

columnCount(self, parent:PySide2.QtCore.QModelIndex=Invalid(PySide2.QtCore.QModelIndex)) → int
data(self, index:PySide2.QtCore.QModelIndex, role:int=PySide2.QtCore.Qt.ItemDataRole.DisplayRole) → typing.Any
headerData(self, section:int, orientation:PySide2.QtCore.Qt.Orientation, role:int=PySide2.QtCore.Qt.ItemDataRole.DisplayRole) → typing.Any
rowCount(self, parent:PySide2.QtCore.QModelIndex=Invalid(PySide2.QtCore.QModelIndex)) → int
staticMetaObject = <PySide2.QtCore.QMetaObject object>
class GridCal.Gui.ProfilesInput.profile_dialogue.ProfileInputGUI(parent=None, list_of_objects=[], magnitudes=[''])

Bases: PySide2.QtWidgets.QDialog

assignation_table_double_click()

Set the selected profile into the clicked slot

Performs an automatic link between the sources and the objectives based on the names

display_associations()

@return:

do_it()

Close. The data has to be queried later to the object by the parent by calling get_association_data

get_association_data()

Return a dictionary with the data association @return:

get_multiplier()

Gets the necessary multiplier to pass the profile units to Mega Remember that the power units in GridCal are the MVA

get_profile(parent=None, labels=None, alsoQ=None)

Return ths assigned profiles @return:

Array of profiles assigned to the input objectives Array specifying which objectives are not assigned
import_profile()

Select a file to be loaded

Links the selected origin with all the destinations

Links the selected origin with the selected destinations

make_association(source_idx, obj_idx, scale=None, cosfi=None, mult=None, col_idx=None)

Makes an association in the associations table

msg(text, title='Warning')

Message box :param text: Text to display :param title: Name of the window

static normalize_string(s)

Normalizes a string

objectives_list_double_click()

Link source to objective when the objective item is double clicked :return:

print_profile()

prints the profile clicked on the table @return:

Random link

set_multiplier(type)

Set the table multipliers

sources_list_double_click()

When an item in the sources list is double clicked, plot the series :return:

staticMetaObject = <PySide2.QtCore.QMetaObject object>
GridCal.Gui.ProfilesInput.profile_dialogue.get_list_model(iterable)

get Qt list model from a simple iterable :param iterable: :return: List model

GridCal.Gui.ProfilesInput.update_gui_file module

Script to update correctly the main GUI (.py) file from the Qt design (.ui) file