VeraGrid 5.6.10__tar.gz → 5.6.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. {veragrid-5.6.10 → veragrid-5.6.12}/PKG-INFO +1 -1
  2. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ExecuteVeraGrid.py +0 -2
  3. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/AboutDialogue/about_dialogue.py +1 -1
  4. veragrid-5.6.10/VeraGrid/Gui/AboutDialogue/gui.py → veragrid-5.6.12/VeraGrid/Gui/AboutDialogue/about_gui.py +28 -7
  5. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/AboutDialogue/update_gui_file.py +1 -2
  6. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Analysis/AnalysisDialogue.py +1 -1
  7. veragrid-5.6.10/VeraGrid/Gui/Analysis/gui.py → veragrid-5.6.12/VeraGrid/Gui/Analysis/analysis_gui.py +15 -13
  8. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Analysis/update_gui_file.py +1 -3
  9. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ContingencyPlanner/contingency_planner_dialogue.py +1 -1
  10. veragrid-5.6.10/VeraGrid/Gui/ContingencyPlanner/gui.py → veragrid-5.6.12/VeraGrid/Gui/ContingencyPlanner/contingency_planner_gui.py +2 -2
  11. {veragrid-5.6.10/VeraGrid/Gui/SyncDialogue → veragrid-5.6.12/VeraGrid/Gui/ContingencyPlanner}/update_gui_file.py +2 -2
  12. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/CoordinatesInput/coordinates_dialogue.py +1 -1
  13. veragrid-5.6.10/VeraGrid/Gui/CoordinatesInput/gui.py → veragrid-5.6.12/VeraGrid/Gui/CoordinatesInput/coordinates_input_gui.py +2 -2
  14. veragrid-5.6.12/VeraGrid/Gui/CoordinatesInput/update_gui_file.py +13 -0
  15. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Injections/map_injections_template_graphics.py +48 -18
  16. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/grid_map_widget.py +20 -154
  17. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/controllable_shunt_graphics.py +1 -22
  18. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/generator_graphics.py +1 -24
  19. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/injections_template_graphics.py +12 -1
  20. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Substation/bus_graphics.py +2 -2
  21. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/schematic_widget.py +147 -20
  22. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/terminal_item.py +4 -2
  23. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridGenerator/grid_generator_dialogue.py +1 -1
  24. veragrid-5.6.10/VeraGrid/Gui/GridGenerator/gui.py → veragrid-5.6.12/VeraGrid/Gui/GridGenerator/grid_generator_gui.py +2 -2
  25. veragrid-5.6.12/VeraGrid/Gui/GridGenerator/update_gui_file.py +12 -0
  26. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridMerge/update_gui_file.py +1 -1
  27. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridReduce/grid_reduce.py +22 -5
  28. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridReduce/grid_reduce_gui.py +18 -2
  29. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridReduce/update_gui_file.py +0 -1
  30. {veragrid-5.6.10/VeraGrid/Gui/Main → veragrid-5.6.12/VeraGrid/Gui/Icons}/icons_rc.py +1423 -394
  31. veragrid-5.6.10/VeraGrid/Gui/CoordinatesInput/update_gui_file.py → veragrid-5.6.12/VeraGrid/Gui/Icons/update_icons_rc.py +0 -2
  32. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/LoadCatalogue/SelectComponents.py +2 -2
  33. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/LoadCatalogue/update_gui_file.py +1 -1
  34. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/LoadDesigner/load_designer_ui.py +1 -1
  35. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/LoadDesigner/update_gui_file.py +0 -1
  36. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/MainWindow.py +121 -100
  37. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Model/data_base.py +100 -17
  38. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Model/diagrams.py +69 -29
  39. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Scripting/scripting.py +1 -1
  40. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/base_gui.py +4 -3
  41. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/io.py +14 -18
  42. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/simulations.py +2 -2
  43. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/VeraGridMain.py +2 -2
  44. {veragrid-5.6.10/VeraGrid/Gui/RosetaExplorer → veragrid-5.6.12/VeraGrid/Gui/Main}/update_gui_file.py +0 -1
  45. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ProfilesInput/profiles_from_data_gui.py +1 -1
  46. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ProfilesInput/profiles_from_models_gui.py +1 -1
  47. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ProfilesInput/update_gui_file.py +1 -1
  48. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RmsModelEditor/block_data_dialogue.py +6 -6
  49. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RmsModelEditor/rms_model_editor.py +2 -2
  50. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RmsModelEditor/update_gui_file.py +1 -1
  51. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RosetaExplorer/MainWindow.py +1 -1
  52. {veragrid-5.6.10/VeraGrid/Gui/Main → veragrid-5.6.12/VeraGrid/Gui/RosetaExplorer}/update_gui_file.py +1 -2
  53. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SigmaAnalysis/sigma_analysis_dialogue.py +1 -1
  54. veragrid-5.6.10/VeraGrid/Gui/SigmaAnalysis/gui.py → veragrid-5.6.12/VeraGrid/Gui/SigmaAnalysis/sigma_analysis_gui.py +2 -2
  55. veragrid-5.6.12/VeraGrid/Gui/SigmaAnalysis/update_gui_file.py +13 -0
  56. veragrid-5.6.10/VeraGrid/Gui/SolarPowerWizard/gui.py → veragrid-5.6.12/VeraGrid/Gui/SolarPowerWizard/solar_power_wizard_gui.py +2 -2
  57. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SolarPowerWizard/solar_power_wizzard.py +1 -1
  58. veragrid-5.6.12/VeraGrid/Gui/SolarPowerWizard/update_gui_file.py +13 -0
  59. veragrid-5.6.12/VeraGrid/Gui/SubstationDesigner/voltage_level_conversion.py +589 -0
  60. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SyncDialogue/sync_dialogue.py +1 -1
  61. veragrid-5.6.10/VeraGrid/Gui/SyncDialogue/gui.py → veragrid-5.6.12/VeraGrid/Gui/SyncDialogue/sync_gui.py +2 -2
  62. veragrid-5.6.12/VeraGrid/Gui/SyncDialogue/update_gui_file.py +13 -0
  63. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SystemScaler/system_scaler_ui.py +1 -1
  64. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SystemScaler/update_gui_file.py +1 -1
  65. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TowerBuilder/tower_builder.py +1 -1
  66. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TowerBuilder/update_gui_file.py +1 -1
  67. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TreeModelViewer/MainWindow.py +1 -1
  68. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TreeModelViewer/update_gui_file.py +0 -1
  69. veragrid-5.6.12/VeraGrid/Gui/Widgets/__init__.py +0 -0
  70. veragrid-5.6.12/VeraGrid/Gui/WindPowerWizard/update_gui_file.py +13 -0
  71. veragrid-5.6.10/VeraGrid/Gui/WindPowerWizard/gui.py → veragrid-5.6.12/VeraGrid/Gui/WindPowerWizard/wind_power_wizard_gui.py +2 -2
  72. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/update_gui_common.py +1 -1
  73. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Session/session.py +6 -10
  74. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/__version__.py +1 -1
  75. veragrid-5.6.10/VeraGrid/Gui/AboutDialogue/icons_rc.py +0 -208
  76. veragrid-5.6.10/VeraGrid/Gui/Analysis/icons_rc.py +0 -564
  77. veragrid-5.6.10/VeraGrid/Gui/ContingencyPlanner/icons_rc.py +0 -625
  78. veragrid-5.6.10/VeraGrid/Gui/ContingencyPlanner/update_gui_file.py +0 -14
  79. veragrid-5.6.10/VeraGrid/Gui/CoordinatesInput/icons_rc.py +0 -1077
  80. veragrid-5.6.10/VeraGrid/Gui/GridGenerator/icons_rc.py +0 -625
  81. veragrid-5.6.10/VeraGrid/Gui/GridGenerator/update_gui_file.py +0 -13
  82. veragrid-5.6.10/VeraGrid/Gui/LoadCatalogue/icons_rc.py +0 -175
  83. veragrid-5.6.10/VeraGrid/Gui/LoadDesigner/icons_rc.py +0 -962
  84. veragrid-5.6.10/VeraGrid/Gui/Main/ConsoleLog.py +0 -113
  85. veragrid-5.6.10/VeraGrid/Gui/Main/ConsoleLogController.py +0 -35
  86. veragrid-5.6.10/VeraGrid/Gui/ProfilesInput/icons_rc.py +0 -1519
  87. veragrid-5.6.10/VeraGrid/Gui/RmsModelEditor/icons_rc.py +0 -156
  88. veragrid-5.6.10/VeraGrid/Gui/RosetaExplorer/icons_rc.py +0 -5745
  89. veragrid-5.6.10/VeraGrid/Gui/SigmaAnalysis/icons_rc.py +0 -1059
  90. veragrid-5.6.10/VeraGrid/Gui/SigmaAnalysis/update_gui_file.py +0 -13
  91. veragrid-5.6.10/VeraGrid/Gui/SolarPowerWizard/icons_rc.py +0 -387
  92. veragrid-5.6.10/VeraGrid/Gui/SolarPowerWizard/update_gui_file.py +0 -13
  93. veragrid-5.6.10/VeraGrid/Gui/SubstationDesigner/voltage_level_conversion.py +0 -309
  94. veragrid-5.6.10/VeraGrid/Gui/SyncDialogue/icons_rc.py +0 -422
  95. veragrid-5.6.10/VeraGrid/Gui/SystemScaler/icons_rc.py +0 -962
  96. veragrid-5.6.10/VeraGrid/Gui/TowerBuilder/icons_rc.py +0 -515
  97. veragrid-5.6.10/VeraGrid/Gui/TreeModelViewer/icons_rc.py +0 -5855
  98. veragrid-5.6.10/VeraGrid/Gui/WindPowerWizard/icons_rc.py +0 -162
  99. veragrid-5.6.10/VeraGrid/Gui/WindPowerWizard/update_gui_file.py +0 -13
  100. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/AboutDialogue/__init__.py +0 -0
  101. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Analysis/__init__.py +0 -0
  102. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Analysis/object_plot_analysis.py +0 -0
  103. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ContingencyPlanner/__init__.py +0 -0
  104. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/CoordinatesInput/__init__.py +0 -0
  105. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/Editors/__init__.py +0 -0
  106. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/Editors/controllable_shunt_editor.py +0 -0
  107. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/Editors/generator_editor.py +0 -0
  108. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/Editors/line_editor.py +0 -0
  109. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/Editors/new_line_dialogue.py +0 -0
  110. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/Editors/transformer3w_editor.py +0 -0
  111. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/Editors/transformer_editor.py +0 -0
  112. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/Editors/transformer_taps_editor.py +0 -0
  113. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Branches/__init__.py +0 -0
  114. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Branches/line_location_graphic_item.py +0 -0
  115. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Branches/map_ac_line.py +0 -0
  116. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Branches/map_dc_line.py +0 -0
  117. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Branches/map_fluid_path.py +0 -0
  118. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Branches/map_hvdc_line.py +0 -0
  119. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Branches/map_line_container.py +0 -0
  120. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Branches/map_line_segment.py +0 -0
  121. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Injections/__init__.py +0 -0
  122. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Injections/map_battery_graphics.py +0 -0
  123. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Injections/map_external_grid_graphics.py +0 -0
  124. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Injections/map_generator_graphics.py +0 -0
  125. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Injections/map_load_graphics.py +0 -0
  126. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Injections/map_static_generator_graphics.py +0 -0
  127. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Substation/__init__.py +0 -0
  128. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Substation/node_template.py +0 -0
  129. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Substation/substation_graphic_item.py +0 -0
  130. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Substation/voltage_level_graphic_item.py +0 -0
  131. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/TileProviders/__init__.py +0 -0
  132. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/TileProviders/blue_marble.py +0 -0
  133. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/TileProviders/cartodb.py +0 -0
  134. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/__init__.py +0 -0
  135. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/base_tiles.py +0 -0
  136. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/default_tile_data.py +0 -0
  137. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/pycacheback.py +0 -0
  138. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/tile_worker.py +0 -0
  139. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/tiles.py +0 -0
  140. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/Tiles/tiles_cache.py +0 -0
  141. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/__init__.py +0 -0
  142. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/MapWidget/map_widget.py +0 -0
  143. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/__init__.py +0 -0
  144. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/dc_line_graphics.py +0 -0
  145. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/hvdc_graphics.py +0 -0
  146. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/line_graphics.py +0 -0
  147. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/line_graphics_template.py +0 -0
  148. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/series_reactance_graphics.py +0 -0
  149. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/switch_graphics.py +0 -0
  150. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/transformer2w_graphics.py +0 -0
  151. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/transformer3w_graphics.py +0 -0
  152. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/upfc_graphics.py +0 -0
  153. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/vsc_graphics.py +0 -0
  154. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/vsc_graphics_3term.py +0 -0
  155. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Branches/winding_graphics.py +0 -0
  156. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Fluid/__init__.py +0 -0
  157. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Fluid/fluid_node_graphics.py +0 -0
  158. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Fluid/fluid_p2x_graphics.py +0 -0
  159. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Fluid/fluid_path_graphics.py +0 -0
  160. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Fluid/fluid_pump_graphics.py +0 -0
  161. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Fluid/fluid_turbine_graphics.py +0 -0
  162. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/__init__.py +0 -0
  163. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/battery_graphics.py +0 -0
  164. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/current_injection_graphics.py +0 -0
  165. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/external_grid_graphics.py +0 -0
  166. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/load_graphics.py +0 -0
  167. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/shunt_graphics.py +0 -0
  168. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Injections/static_generator_graphics.py +0 -0
  169. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/Substation/__init__.py +0 -0
  170. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/__init__.py +0 -0
  171. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/diagram_bus_selection_dialogue.py +0 -0
  172. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/SchematicWidget/matplotlibwidget.py +0 -0
  173. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/__init__.py +0 -0
  174. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/base_diagram_widget.py +0 -0
  175. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/diagrams_model.py +0 -0
  176. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/generic_graphics.py +0 -0
  177. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Diagrams/graphics_manager.py +0 -0
  178. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridGenerator/__init__.py +0 -0
  179. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridMerge/__init__.py +0 -0
  180. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridMerge/build_diff_tree.py +0 -0
  181. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridMerge/grid_diff.py +0 -0
  182. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridMerge/grid_diff_gui.py +0 -0
  183. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridMerge/grid_merge.py +0 -0
  184. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridMerge/grid_merge_gui.py +0 -0
  185. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/GridReduce/__init__.py +0 -0
  186. {veragrid-5.6.10/VeraGrid/Gui/ProfilesInput → veragrid-5.6.12/VeraGrid/Gui/Icons}/__init__.py +0 -0
  187. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/LoadCatalogue/__init__.py +0 -0
  188. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/LoadCatalogue/catalogue_dialogue.py +0 -0
  189. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/LoadDesigner/__init__.py +0 -0
  190. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/LoadDesigner/load_designer.py +0 -0
  191. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Model/__init__.py +0 -0
  192. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Model/compiled_arrays.py +0 -0
  193. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Model/compiled_arrays_model.py +0 -0
  194. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Model/time_events.py +0 -0
  195. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/README.txt +0 -0
  196. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Results/__init__.py +0 -0
  197. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Results/results.py +0 -0
  198. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Scripting/__init__.py +0 -0
  199. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Server/__init__.py +0 -0
  200. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Server/server.py +0 -0
  201. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Settings/__init__.py +0 -0
  202. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/Settings/configuration.py +0 -0
  203. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/SubClasses/__init__.py +0 -0
  204. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/__init__.py +0 -0
  205. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Main/object_select_window.py +0 -0
  206. {veragrid-5.6.10/VeraGrid/Gui/SolarPowerWizard → veragrid-5.6.12/VeraGrid/Gui/ProfilesInput}/__init__.py +0 -0
  207. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ProfilesInput/excel_dialog.py +0 -0
  208. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ProfilesInput/excel_sheet_selection.py +0 -0
  209. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ProfilesInput/models_dialogue.py +0 -0
  210. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/ProfilesInput/profile_dialogue.py +0 -0
  211. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RmsModelEditor/__init__.py +0 -0
  212. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RmsModelEditor/rms_model_editor_engine.py +0 -0
  213. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RosetaExplorer/RosetaExplorer.py +0 -0
  214. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RosetaExplorer/__init__.py +0 -0
  215. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/RosetaExplorer/roseta_objects_model.py +0 -0
  216. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SigmaAnalysis/__init__.py +0 -0
  217. {veragrid-5.6.10/VeraGrid/Gui/Widgets → veragrid-5.6.12/VeraGrid/Gui/SolarPowerWizard}/__init__.py +0 -0
  218. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SubstationDesigner/__init__.py +0 -0
  219. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SubstationDesigner/substation_designer.py +0 -0
  220. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SubstationDesigner/substation_designer_gui.py +0 -0
  221. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SubstationDesigner/update_gui_file.py +0 -0
  222. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SyncDialogue/__init__.py +0 -0
  223. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SystemScaler/__init__.py +0 -0
  224. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/SystemScaler/system_scaler.py +0 -0
  225. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TowerBuilder/LineBuilderDialogue.py +0 -0
  226. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TowerBuilder/__init__.py +0 -0
  227. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TowerBuilder/table_models.py +0 -0
  228. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TreeModelViewer/TreeModelViewer.py +0 -0
  229. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/TreeModelViewer/__init__.py +0 -0
  230. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Visualization/__init__.py +0 -0
  231. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Visualization/visualization.py +0 -0
  232. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Widgets/custom_qrangeslider.py +0 -0
  233. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/Widgets/matplotlibwidget.py +0 -0
  234. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/WindPowerWizard/__init__.py +0 -0
  235. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/WindPowerWizard/wind_power_wizzard.py +0 -0
  236. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/__init__.py +0 -0
  237. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/associations_model.py +0 -0
  238. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/correct_icons.py +0 -0
  239. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/general_dialogues.py +0 -0
  240. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/gui_functions.py +0 -0
  241. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/messages.py +0 -0
  242. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/object_model.py +0 -0
  243. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/object_proxy_model.py +0 -0
  244. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/pandas_model.py +0 -0
  245. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/plot_config.py +0 -0
  246. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/profiles_model.py +0 -0
  247. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/python_console.py +0 -0
  248. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/python_highlighter.py +0 -0
  249. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/results_model.py +0 -0
  250. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/rms_events_editor_dialog.py +0 -0
  251. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/rms_plot_variables_dialog.py +0 -0
  252. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/table_view_header_wrap.py +0 -0
  253. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/themes.py +0 -0
  254. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/toast_widget.py +0 -0
  255. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/update_gui_all.py +0 -0
  256. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Gui/wrappable_table_model.py +0 -0
  257. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/LICENSE.txt +0 -0
  258. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Session/__init__.py +0 -0
  259. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Session/export_results_driver.py +0 -0
  260. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Session/file_handler.py +0 -0
  261. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Session/server_driver.py +0 -0
  262. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/Session/synchronization_driver.py +0 -0
  263. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/__init__.py +0 -0
  264. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/darkdetect/__init__.py +0 -0
  265. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/darkdetect/_dummy.py +0 -0
  266. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/darkdetect/_linux_detect.py +0 -0
  267. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/darkdetect/_mac_detect.py +0 -0
  268. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/darkdetect/_windows_detect.py +0 -0
  269. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/__init__.py +0 -0
  270. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_color.py +0 -0
  271. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_icon/__init__.py +0 -0
  272. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_icon/icon_engine.py +0 -0
  273. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_icon/svg.py +0 -0
  274. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_main.py +0 -0
  275. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_os_appearance/__init__.py +0 -0
  276. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_os_appearance/_accent/__init__.py +0 -0
  277. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_os_appearance/_accent/_mac_detect.py +0 -0
  278. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_os_appearance/listener.py +0 -0
  279. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_proxy_style.py +0 -0
  280. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_resources/__init__.py +0 -0
  281. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_resources/colors.py +0 -0
  282. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_resources/palette.py +0 -0
  283. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_resources/standard_icons.py +0 -0
  284. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_resources/stylesheets.py +0 -0
  285. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_resources/svg.py +0 -0
  286. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_style_loader.py +0 -0
  287. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_template/__init__.py +0 -0
  288. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_template/engine.py +0 -0
  289. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_template/filter.py +0 -0
  290. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/_util.py +0 -0
  291. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/qtpy/QtCore/__init__.py +0 -0
  292. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/qtpy/QtGui/__init__.py +0 -0
  293. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/qtpy/QtSvg/__init__.py +0 -0
  294. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/qtpy/QtWidgets/__init__.py +0 -0
  295. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/qtpy/__init__.py +0 -0
  296. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/qtpy/qt_compat.py +0 -0
  297. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/qtpy/qt_version.py +0 -0
  298. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/__init__.py +0 -0
  299. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/__main__.py +0 -0
  300. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/_ui/__init__.py +0 -0
  301. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/_ui/dock_ui.py +0 -0
  302. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/_ui/frame_ui.py +0 -0
  303. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/_ui/icons_ui.py +0 -0
  304. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/_ui/mdi_ui.py +0 -0
  305. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/_ui/widgets_ui.py +0 -0
  306. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/ThirdParty/qdarktheme/widget_gallery/main_window.py +0 -0
  307. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/__init__.py +0 -0
  308. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/data/VeraGrid.ico +0 -0
  309. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/data/VeraGrid.svg +0 -0
  310. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/data/__init__.py +0 -0
  311. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/data/cables.csv +0 -0
  312. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/data/sequence_lines.csv +0 -0
  313. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/data/transformers.csv +0 -0
  314. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/data/wires.csv +0 -0
  315. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/plugins.py +0 -0
  316. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/templates.py +0 -0
  317. {veragrid-5.6.10 → veragrid-5.6.12}/VeraGrid/update.py +0 -0
  318. {veragrid-5.6.10 → veragrid-5.6.12}/setup.cfg +0 -0
  319. {veragrid-5.6.10 → veragrid-5.6.12}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: VeraGrid
3
- Version: 5.6.10
3
+ Version: 5.6.12
4
4
  Summary: VeraGrid is a Power Systems simulation program intended for professional use and research
5
5
  Home-page: https://github.com/SanPen/VeraGrid
6
6
  Author: Santiago Peñate Vera et. Al.
@@ -40,8 +40,6 @@ elif os.name == "posix" or sys.platform.startswith("linux"):
40
40
  print(f"Could not set process name: {e}")
41
41
 
42
42
 
43
-
44
-
45
43
  if __name__ == "__main__":
46
44
  print('Loading VeraGrid...')
47
45
  # check_all_svgs()
@@ -10,7 +10,7 @@ from PySide6 import QtWidgets
10
10
  from PySide6.QtCore import Qt
11
11
  from PySide6.QtGui import QClipboard
12
12
  from typing import List
13
- from VeraGrid.Gui.AboutDialogue.gui import Ui_AboutDialog
13
+ from VeraGrid.Gui.AboutDialogue.about_gui import Ui_AboutDialog
14
14
  from VeraGrid.__version__ import __VeraGrid_VERSION__
15
15
  from VeraGrid.update import check_version, get_upgrade_command
16
16
  from VeraGridEngine.__version__ import __VeraGridEngine_VERSION__, copyright_msg, contributors_msg
@@ -1,9 +1,9 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  ################################################################################
4
- ## Form generated from reading UI file 'gui.ui'
4
+ ## Form generated from reading UI file 'about_gui.ui'
5
5
  ##
6
- ## Created by: Qt User Interface Compiler version 6.10.1
6
+ ## Created by: Qt User Interface Compiler version 6.9.2
7
7
  ##
8
8
  ## WARNING! All changes made in this file will be lost when recompiling UI file!
9
9
  ################################################################################
@@ -19,7 +19,7 @@ from PySide6.QtWidgets import (QApplication, QDialog, QGridLayout, QHeaderView,
19
19
  QLabel, QPushButton, QSizePolicy, QSpacerItem,
20
20
  QTabWidget, QTableWidget, QTableWidgetItem, QTextEdit,
21
21
  QVBoxLayout, QWidget)
22
- from .icons_rc import *
22
+ from VeraGrid.Gui.Icons.icons_rc import *
23
23
 
24
24
  class Ui_AboutDialog(object):
25
25
  def setupUi(self, AboutDialog):
@@ -27,7 +27,7 @@ class Ui_AboutDialog(object):
27
27
  AboutDialog.setObjectName(u"AboutDialog")
28
28
  AboutDialog.resize(640, 365)
29
29
  icon = QIcon()
30
- icon.addFile(u":/Icons/icons/VeraGrid_icon.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
30
+ icon.addFile(u":/Program icon/icons/VeraGrid_icon.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
31
31
  AboutDialog.setWindowIcon(icon)
32
32
  self.verticalLayout_2 = QVBoxLayout(AboutDialog)
33
33
  self.verticalLayout_2.setObjectName(u"verticalLayout_2")
@@ -79,6 +79,14 @@ class Ui_AboutDialog(object):
79
79
 
80
80
  self.gridLayout.addWidget(self.copyrightLabel, 4, 1, 1, 2)
81
81
 
82
+ self.label_3 = QLabel(self.tab)
83
+ self.label_3.setObjectName(u"label_3")
84
+ self.label_3.setMaximumSize(QSize(32, 32))
85
+ self.label_3.setPixmap(QPixmap(u":/Program icon/icons/VeraGrid_icon.png"))
86
+ self.label_3.setScaledContents(True)
87
+
88
+ self.gridLayout.addWidget(self.label_3, 3, 0, 2, 1)
89
+
82
90
  self.tabWidget.addTab(self.tab, "")
83
91
  self.tab_2 = QWidget()
84
92
  self.tab_2.setObjectName(u"tab_2")
@@ -98,12 +106,18 @@ class Ui_AboutDialog(object):
98
106
  self.gridLayout_3.setObjectName(u"gridLayout_3")
99
107
  self.copyLibsButton = QPushButton(self.tab_5)
100
108
  self.copyLibsButton.setObjectName(u"copyLibsButton")
109
+ icon1 = QIcon()
110
+ icon1.addFile(u":/Icons/icons/copy.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
111
+ self.copyLibsButton.setIcon(icon1)
101
112
 
102
113
  self.gridLayout_3.addWidget(self.copyLibsButton, 2, 5, 1, 1)
103
114
 
104
115
  self.updateButton = QPushButton(self.tab_5)
105
116
  self.updateButton.setObjectName(u"updateButton")
106
117
  self.updateButton.setMaximumSize(QSize(80, 16777215))
118
+ icon2 = QIcon()
119
+ icon2.addFile(u":/Icons/icons/sync.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
120
+ self.updateButton.setIcon(icon2)
107
121
 
108
122
  self.gridLayout_3.addWidget(self.updateButton, 2, 0, 1, 1)
109
123
 
@@ -172,11 +186,18 @@ class Ui_AboutDialog(object):
172
186
  self.label.setText("")
173
187
  self.versionLabel.setText(QCoreApplication.translate("AboutDialog", u"version", None))
174
188
  self.copyrightLabel.setText(QCoreApplication.translate("AboutDialog", u"Copyright", None))
189
+ self.label_3.setText("")
175
190
  self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QCoreApplication.translate("AboutDialog", u"About", None))
176
191
  self.contributorsLabel.setText(QCoreApplication.translate("AboutDialog", u"TextLabel", None))
177
192
  self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QCoreApplication.translate("AboutDialog", u"Contributors", None))
178
- self.copyLibsButton.setText(QCoreApplication.translate("AboutDialog", u"Copy", None))
179
- self.updateButton.setText(QCoreApplication.translate("AboutDialog", u"Update", None))
193
+ #if QT_CONFIG(tooltip)
194
+ self.copyLibsButton.setToolTip(QCoreApplication.translate("AboutDialog", u"Copy the table", None))
195
+ #endif // QT_CONFIG(tooltip)
196
+ self.copyLibsButton.setText("")
197
+ #if QT_CONFIG(tooltip)
198
+ self.updateButton.setToolTip(QCoreApplication.translate("AboutDialog", u"Update VeraGrid. If you are on windows don't do this.", None))
199
+ #endif // QT_CONFIG(tooltip)
200
+ self.updateButton.setText("")
180
201
  self.updateLabel.setText("")
181
202
  self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), QCoreApplication.translate("AboutDialog", u"Libraries", None))
182
203
  self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), QCoreApplication.translate("AboutDialog", u"Optional libraries", None))
@@ -187,7 +208,7 @@ class Ui_AboutDialog(object):
187
208
  "hr { height: 1px; border-width: 0; }\n"
188
209
  "li.unchecked::marker { content: \"\\2610\"; }\n"
189
210
  "li.checked::marker { content: \"\\2612\"; }\n"
190
- "</style></head><body style=\" font-family:'Cousine'; font-size:13pt; font-weight:400; font-style:normal;\">\n"
211
+ "</style></head><body style=\" font-family:'Cousine'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
191
212
  "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">+==============+==========================================+</span></p>\n"
192
213
  "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">| Package | License |</span></p>\n"
193
214
  "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; mar"
@@ -8,6 +8,5 @@ Script to update correctly the main GUI (.py) file from the Qt design (.ui) file
8
8
  from VeraGrid.Gui.update_gui_common import convert_resource_file, convert_ui_file
9
9
 
10
10
  if __name__ == '__main__':
11
- convert_resource_file(source='icons.qrc')
12
- for f in ['gui.ui']:
11
+ for f in ['about_gui.ui']:
13
12
  convert_ui_file(source=f)
@@ -5,7 +5,7 @@
5
5
 
6
6
  from typing import List
7
7
  from PySide6 import QtWidgets
8
- from VeraGrid.Gui.Analysis.gui import Ui_MainWindow
8
+ from VeraGrid.Gui.Analysis.analysis_gui import Ui_MainWindow
9
9
  from VeraGrid.Gui.Analysis.object_plot_analysis import grid_analysis, GridErrorLog, FixableErrorOutOfRange
10
10
  from VeraGridEngine.Devices.multi_circuit import MultiCircuit
11
11
  from VeraGrid.Gui.general_dialogues import LogsDialogue, Logger
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  ################################################################################
4
- ## Form generated from reading UI file 'gui.ui'
4
+ ## Form generated from reading UI file 'analysis_gui.ui'
5
5
  ##
6
6
  ## Created by: Qt User Interface Compiler version 6.9.2
7
7
  ##
@@ -21,7 +21,7 @@ from PySide6.QtWidgets import (QApplication, QCheckBox, QDoubleSpinBox, QFrame,
21
21
  QMainWindow, QSizePolicy, QSpacerItem, QStatusBar,
22
22
  QTabWidget, QToolBar, QTreeView, QVBoxLayout,
23
23
  QWidget)
24
- from .icons_rc import *
24
+ from VeraGrid.Gui.Icons.icons_rc import *
25
25
 
26
26
  class Ui_MainWindow(object):
27
27
  def setupUi(self, MainWindow):
@@ -34,16 +34,18 @@ class Ui_MainWindow(object):
34
34
  self.actionSave_diagnostic = QAction(MainWindow)
35
35
  self.actionSave_diagnostic.setObjectName(u"actionSave_diagnostic")
36
36
  icon1 = QIcon()
37
- icon1.addFile(u":/icons/icons/savec.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
37
+ icon1.addFile(u":/Icons/icons/savec.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
38
38
  self.actionSave_diagnostic.setIcon(icon1)
39
39
  self.actionFix_issues = QAction(MainWindow)
40
40
  self.actionFix_issues.setObjectName(u"actionFix_issues")
41
41
  icon2 = QIcon()
42
- icon2.addFile(u":/icons/icons/fix.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
42
+ icon2.addFile(u":/Icons/icons/fix.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
43
43
  self.actionFix_issues.setIcon(icon2)
44
44
  self.actionAnalyze = QAction(MainWindow)
45
45
  self.actionAnalyze.setObjectName(u"actionAnalyze")
46
- self.actionAnalyze.setIcon(icon)
46
+ icon3 = QIcon()
47
+ icon3.addFile(u":/Icons/icons/inputs_analysis 2.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
48
+ self.actionAnalyze.setIcon(icon3)
47
49
  self.centralwidget = QWidget(MainWindow)
48
50
  self.centralwidget.setObjectName(u"centralwidget")
49
51
  self.verticalLayout_2 = QVBoxLayout(self.centralwidget)
@@ -58,7 +60,7 @@ class Ui_MainWindow(object):
58
60
  self.verticalLayout.setContentsMargins(0, 0, 0, 0)
59
61
  self.logsTreeView = QTreeView(self.tab)
60
62
  self.logsTreeView.setObjectName(u"logsTreeView")
61
- self.logsTreeView.setFrameShape(QFrame.NoFrame)
63
+ self.logsTreeView.setFrameShape(QFrame.Shape.NoFrame)
62
64
 
63
65
  self.verticalLayout.addWidget(self.logsTreeView)
64
66
 
@@ -70,8 +72,8 @@ class Ui_MainWindow(object):
70
72
  self.frame = QFrame(self.tab_2)
71
73
  self.frame.setObjectName(u"frame")
72
74
  self.frame.setMaximumSize(QSize(400, 16777215))
73
- self.frame.setFrameShape(QFrame.NoFrame)
74
- self.frame.setFrameShadow(QFrame.Raised)
75
+ self.frame.setFrameShape(QFrame.Shape.NoFrame)
76
+ self.frame.setFrameShadow(QFrame.Shadow.Raised)
75
77
  self.gridLayout = QGridLayout(self.frame)
76
78
  self.gridLayout.setObjectName(u"gridLayout")
77
79
  self.label_4 = QLabel(self.frame)
@@ -260,8 +262,8 @@ class Ui_MainWindow(object):
260
262
 
261
263
  self.frame_2 = QFrame(self.tab_2)
262
264
  self.frame_2.setObjectName(u"frame_2")
263
- self.frame_2.setFrameShape(QFrame.NoFrame)
264
- self.frame_2.setFrameShadow(QFrame.Raised)
265
+ self.frame_2.setFrameShape(QFrame.Shape.NoFrame)
266
+ self.frame_2.setFrameShadow(QFrame.Shadow.Raised)
265
267
  self.gridLayout_2 = QGridLayout(self.frame_2)
266
268
  self.gridLayout_2.setObjectName(u"gridLayout_2")
267
269
  self.label_8 = QLabel(self.frame_2)
@@ -305,9 +307,9 @@ class Ui_MainWindow(object):
305
307
 
306
308
  self.horizontalLayout.addItem(self.horizontalSpacer)
307
309
 
308
- icon3 = QIcon()
309
- icon3.addFile(u":/icons/icons/gear.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
310
- self.tabWidget.addTab(self.tab_2, icon3, "")
310
+ icon4 = QIcon()
311
+ icon4.addFile(u":/icons/icons/gear.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
312
+ self.tabWidget.addTab(self.tab_2, icon4, "")
311
313
 
312
314
  self.verticalLayout_2.addWidget(self.tabWidget)
313
315
 
@@ -17,9 +17,7 @@ if __name__ == '__main__':
17
17
  rcc_cmd += '.exe'
18
18
  uic_cmd += '.exe'
19
19
 
20
- convert_resource_file(source='icons.qrc', rcc_cmd=rcc_cmd)
21
-
22
- for f in ['gui.ui']:
20
+ for f in ['analysis_gui.ui']:
23
21
  convert_ui_file(source=f, uic_cmd=uic_cmd)
24
22
 
25
23
 
@@ -6,7 +6,7 @@ import sys
6
6
  from PySide6 import QtWidgets
7
7
  from typing import List
8
8
 
9
- from VeraGrid.Gui.ContingencyPlanner.gui import Ui_MainWindow
9
+ from VeraGrid.Gui.ContingencyPlanner.contingency_planner_gui import Ui_MainWindow
10
10
  import VeraGridEngine.Devices as dev
11
11
  from VeraGridEngine.enumerations import DeviceType
12
12
  from VeraGridEngine.Devices.multi_circuit import MultiCircuit
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  ################################################################################
4
- ## Form generated from reading UI file 'gui.ui'
4
+ ## Form generated from reading UI file 'contingency_planner_gui.ui'
5
5
  ##
6
6
  ## Created by: Qt User Interface Compiler version 6.9.2
7
7
  ##
@@ -20,7 +20,7 @@ from PySide6.QtWidgets import (QApplication, QCheckBox, QDialog, QDoubleSpinBox,
20
20
  QFormLayout, QFrame, QGridLayout, QHBoxLayout,
21
21
  QLabel, QListView, QPushButton, QSizePolicy,
22
22
  QSpacerItem, QSpinBox, QVBoxLayout, QWidget)
23
- from .icons_rc import *
23
+ from VeraGrid.Gui.Icons.icons_rc import *
24
24
 
25
25
  class Ui_MainWindow(object):
26
26
  def setupUi(self, MainWindow):
@@ -2,12 +2,12 @@
2
2
  # License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
  # file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
4
  # SPDX-License-Identifier: MPL-2.0
5
+
5
6
  """
6
7
  Script to update correctly the main GUI (.py) file from the Qt design (.ui) file
7
8
  """
8
9
  from VeraGrid.Gui.update_gui_common import convert_resource_file, convert_ui_file
9
10
 
10
11
  if __name__ == '__main__':
11
- convert_resource_file(source='icons.qrc')
12
- for f in ['gui.ui']:
12
+ for f in ['contingency_planner_gui.ui']:
13
13
  convert_ui_file(source=f)
@@ -7,7 +7,7 @@ import sys
7
7
  import pandas as pd
8
8
  from PySide6 import QtGui, QtCore, QtWidgets
9
9
  from typing import List, Tuple, Union
10
- from VeraGrid.Gui.CoordinatesInput.gui import Ui_Dialog
10
+ from VeraGrid.Gui.CoordinatesInput.coordinates_input_gui import Ui_Dialog
11
11
  from VeraGrid.Gui.ProfilesInput.excel_dialog import ExcelDialog
12
12
  from VeraGrid.Gui.general_dialogues import LogsDialogue
13
13
  from VeraGridEngine.Devices.Substation import Bus
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  ################################################################################
4
- ## Form generated from reading UI file 'gui.ui'
4
+ ## Form generated from reading UI file 'coordinates_input_gui.ui'
5
5
  ##
6
6
  ## Created by: Qt User Interface Compiler version 6.9.2
7
7
  ##
@@ -19,7 +19,7 @@ from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QDialog,
19
19
  QFrame, QGridLayout, QHeaderView, QLabel,
20
20
  QPushButton, QRadioButton, QSizePolicy, QSpacerItem,
21
21
  QSplitter, QTableView, QVBoxLayout, QWidget)
22
- from .icons_rc import *
22
+ from VeraGrid.Gui.Icons.icons_rc import *
23
23
 
24
24
  class Ui_Dialog(object):
25
25
  def setupUi(self, Dialog):
@@ -0,0 +1,13 @@
1
+ # This Source Code Form is subject to the terms of the Mozilla Public
2
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ # file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ # SPDX-License-Identifier: MPL-2.0
5
+
6
+ """
7
+ Script to update correctly the main GUI (.py) file from the Qt design (.ui) file
8
+ """
9
+ from VeraGrid.Gui.update_gui_common import convert_resource_file, convert_ui_file
10
+
11
+ if __name__ == '__main__':
12
+ for f in ['coordinates_input_gui.ui']:
13
+ convert_ui_file(source=f)
@@ -5,7 +5,7 @@
5
5
 
6
6
  from __future__ import annotations
7
7
  from typing import TYPE_CHECKING, List, Union
8
- from PySide6.QtCore import Qt
8
+ from PySide6.QtCore import Qt, QPointF
9
9
  from PySide6.QtGui import QPen, QCursor, QColor, QBrush
10
10
  from PySide6.QtWidgets import (QGraphicsEllipseItem, QMenu,
11
11
  QGraphicsSceneContextMenuEvent,
@@ -100,6 +100,37 @@ class MapInjectionTemplateGraphicItem(NodeTemplate, QGraphicsEllipseItem):
100
100
 
101
101
  return color
102
102
 
103
+ def mousePressEvent(self, event: QGraphicsSceneMouseEvent):
104
+ """
105
+ Event handler for mouse press events.
106
+ """
107
+ super().mousePressEvent(event)
108
+ # selected_items = self.editor.map.view.selected_items()
109
+ # if len(selected_items) < 2:
110
+ self.setSelected(True)
111
+
112
+ event.setAccepted(True)
113
+ self.editor.map.view.disable_move = True
114
+
115
+ if self.api_object is not None:
116
+ self.editor.set_editor_model(api_object=self.api_object)
117
+
118
+ def mouseReleaseEvent(self, event: QGraphicsSceneMouseEvent):
119
+ """
120
+ Event handler for mouse release events.
121
+ """
122
+ # super().mouseReleaseEvent(event)
123
+ self.editor.disableMove = True
124
+ self.update_position_at_the_diagram() # always update
125
+
126
+ def mouseMoveEvent(self, event: QGraphicsSceneMouseEvent) -> None:
127
+ """
128
+ Event handler for mouse move events.
129
+ """
130
+
131
+ pos = self.mapToScene(event.pos())
132
+ self.refresh(pos=pos)
133
+
103
134
  def update_position_at_the_diagram(self) -> None:
104
135
  """
105
136
  Updates the element position in the diagram (to save)
@@ -115,6 +146,21 @@ class MapInjectionTemplateGraphicItem(NodeTemplate, QGraphicsEllipseItem):
115
146
  longitude=long,
116
147
  graphic_object=self)
117
148
 
149
+ def refresh(self, pos: QPointF):
150
+ """
151
+ This function refreshes the x, y coordinates of the graphic item
152
+ Returns:
153
+
154
+ """
155
+
156
+ x = pos.x() - self.rect().width() / 2
157
+ y = pos.y() - self.rect().height() / 2
158
+ self.setRect(x, y, self.rect().width(), self.rect().height())
159
+ self.set_callbacks(pos.x(), pos.y())
160
+
161
+
162
+ self.update_position_at_the_diagram() # always update
163
+
118
164
  def set_size(self, r: float):
119
165
  """
120
166
 
@@ -162,22 +208,6 @@ class MapInjectionTemplateGraphicItem(NodeTemplate, QGraphicsEllipseItem):
162
208
  # plot the profiles
163
209
  self.api_object.plot_profiles(time=ts)
164
210
 
165
- def mousePressEvent(self, event: QGraphicsSceneMouseEvent):
166
- """
167
- mouse press: display the editor
168
- :param event:
169
- :return:
170
- """
171
- super().mousePressEvent(event)
172
- self._editor.set_editor_model(api_object=self.api_object)
173
-
174
- def mouseReleaseEvent(self, event: QGraphicsSceneMouseEvent):
175
- """
176
- Event handler for mouse release events.
177
- """
178
- super().mouseReleaseEvent(event)
179
- # self.editor.disableMove = True
180
- self.update_position_at_the_diagram() # always update
181
211
 
182
212
  def mouseDoubleClickEvent(self, event, /):
183
213
  """
@@ -202,7 +232,7 @@ class MapInjectionTemplateGraphicItem(NodeTemplate, QGraphicsEllipseItem):
202
232
 
203
233
  add_menu_entry(menu=menu,
204
234
  text="Consolidate coordinates",
205
- function_ptr=self.consolidate_coordinates,
235
+ function_ptr=self.editor.consolidate_object_coordinates,
206
236
  icon_path=":/Icons/icons/assign_to_profile.png")
207
237
 
208
238
  menu.addSeparator()
@@ -6,7 +6,7 @@ from __future__ import annotations
6
6
 
7
7
  import ast
8
8
  import os
9
- from typing import Union, List, Set, Tuple, Dict, TYPE_CHECKING
9
+ from typing import Union, List, Tuple, Dict, TYPE_CHECKING
10
10
  import json
11
11
  import numpy as np
12
12
  import math
@@ -135,7 +135,7 @@ class MapLibraryModel(QStandardItemModel):
135
135
  :return: QByteArray
136
136
  """
137
137
  data = QByteArray()
138
- stream = QDataStream(data, QIODevice.WriteOnly)
138
+ stream = QDataStream(data, QIODevice.OpenModeFlag.WriteOnly)
139
139
  stream.writeQString(val)
140
140
  return data
141
141
 
@@ -165,7 +165,7 @@ class MapLibraryModel(QStandardItemModel):
165
165
  txt = self.data(idx, Qt.ItemDataRole.DisplayRole)
166
166
 
167
167
  data = QByteArray()
168
- stream = QDataStream(data, QIODevice.WriteOnly)
168
+ stream = QDataStream(data, QIODevice.OpenModeFlag.WriteOnly)
169
169
  stream.writeQString(txt)
170
170
 
171
171
  mime_data.setData('component/name', data)
@@ -373,6 +373,18 @@ class GridMapWidget(BaseDiagramWidget):
373
373
  selected_substations.append((item.api_object, item))
374
374
  return selected_substations
375
375
 
376
+ def get_selected_generators_tup(self) -> List[Tuple[Generator, MapGeneratorGraphicItem]]:
377
+ """
378
+ Get only selected generators from the scene
379
+
380
+ :return: List of (Generator, GeneratorGraphicItem) tuples
381
+ """
382
+ selected_generators = []
383
+ for item in self.diagram_scene.selectedItems():
384
+ if hasattr(item, 'api_object') and isinstance(item, MapGeneratorGraphicItem):
385
+ selected_generators.append((item.api_object, item))
386
+ return selected_generators
387
+
376
388
  def get_selected_linelocations_tup(self) -> List[Tuple[LineLocation, LineLocationGraphicItem]]:
377
389
  """
378
390
  Get only selected Line Locations from the scene
@@ -2087,6 +2099,7 @@ class GridMapWidget(BaseDiagramWidget):
2087
2099
  def consolidate_object_coordinates(self):
2088
2100
  selected_lines = self.get_selected_line_segments_tup()
2089
2101
  selected_substations = self.get_selected_substations_tup()
2102
+ selected_generators = self.get_selected_generators_tup()
2090
2103
  line_graphics_list = []
2091
2104
  for subst, subst_graphic in selected_substations:
2092
2105
  subst.latitude = subst_graphic.lat
@@ -2098,6 +2111,10 @@ class GridMapWidget(BaseDiagramWidget):
2098
2111
  gelm.api_object.lat = gelm.lat
2099
2112
  gelm.api_object.long = gelm.lon
2100
2113
 
2114
+ for gen, gen_graphic in selected_generators:
2115
+ gen.latitude = gen_graphic.lat
2116
+ gen.longitude = gen_graphic.lon
2117
+
2101
2118
  ok = yes_no_question(title='Update lengths?',
2102
2119
  text='Do you want to update lengths of lines? \n'
2103
2120
  'IMPORTANT: This will take into account every movement of substation and line '
@@ -3111,154 +3128,3 @@ def generate_map_diagram(
3111
3128
 
3112
3129
  return diagram
3113
3130
 
3114
-
3115
- def get_devices_to_expand(circuit: MultiCircuit, substations: List[Substation], max_level: int = 1,
3116
- expand_outside: bool = True) -> Tuple[
3117
- List[Substation],
3118
- List[VoltageLevel],
3119
- List[Line],
3120
- List[DcLine],
3121
- List[HvdcLine]]:
3122
- """
3123
- get lists of devices to expand given a root bus
3124
- :param circuit: MultiCircuit
3125
- :param substations: List of Bus
3126
- :param max_level: max expansion level
3127
- :param expand_outside: whether to expand outside of the given references using the branches
3128
- :return:
3129
- """
3130
-
3131
- # get all Branches
3132
- all_branches = circuit.lines + circuit.dc_lines + circuit.hvdc_lines
3133
-
3134
- # create a pool of buses that belong to the substations
3135
- # store the bus objects and their level from the root
3136
- bus_pool = [(b, 0) for b in circuit.buses if b.substation in substations]
3137
-
3138
- voltage_levels = set()
3139
- substations_extended = set()
3140
- selected_branches = set()
3141
-
3142
- while len(bus_pool) > 0:
3143
-
3144
- # search the next bus
3145
- bus, level = bus_pool.pop()
3146
-
3147
- if bus.voltage_level is not None:
3148
- voltage_levels.add(bus.voltage_level)
3149
- if bus.substation not in substations_extended:
3150
- substations_extended.add(bus.substation)
3151
-
3152
- if level < max_level:
3153
-
3154
- for i, br in enumerate(all_branches):
3155
-
3156
- if br.bus_from == bus:
3157
- if expand_outside:
3158
- bus_pool.append((br.bus_to, level + 1))
3159
- selected_branches.add(br)
3160
-
3161
- elif br.bus_to == bus:
3162
- if expand_outside:
3163
- bus_pool.append((br.bus_from, level + 1))
3164
- selected_branches.add(br)
3165
-
3166
- else:
3167
- pass
3168
-
3169
- # sort Branches
3170
- lines: List[Line] = list()
3171
- dc_lines: List[DcLine] = list()
3172
- hvdc_lines: List[HvdcLine] = list()
3173
-
3174
- for obj in selected_branches:
3175
-
3176
- if obj.device_type == DeviceType.LineDevice:
3177
- lines.append(obj)
3178
-
3179
- elif obj.device_type == DeviceType.DCLineDevice:
3180
- dc_lines.append(obj)
3181
-
3182
-
3183
- elif obj.device_type == DeviceType.HVDCLineDevice:
3184
- hvdc_lines.append(obj)
3185
-
3186
- else:
3187
- raise Exception(f'Unrecognized branch type {obj.device_type.value}')
3188
-
3189
- list_substations_extended = list(substations_extended)
3190
-
3191
- for substation in substations:
3192
- if substation not in list_substations_extended:
3193
- list_substations_extended.append(substation)
3194
-
3195
- return list_substations_extended, list(voltage_levels), lines, dc_lines, hvdc_lines
3196
-
3197
-
3198
- def make_diagram_from_substations(circuit: MultiCircuit,
3199
- substations: List[Substation] | Set[Substation],
3200
- prog_func: Union[Callable, None] = None,
3201
- text_func: Union[Callable, None] = None,
3202
- use_flow_based_width: bool = False,
3203
- min_branch_width: int = 1.0,
3204
- max_branch_width=5,
3205
- min_bus_width=1.0,
3206
- max_bus_width=20,
3207
- arrow_size=20,
3208
- palette: Colormaps = Colormaps.VeraGrid,
3209
- default_bus_voltage: float = 10,
3210
- expand_outside: bool = True,
3211
- name="Map diagram"):
3212
- """
3213
- Create a vicinity diagram
3214
- :param circuit: MultiCircuit
3215
- :param substations: List of Bus
3216
- :param prog_func:
3217
- :param text_func:
3218
- :param use_flow_based_width: use flow based width
3219
- :param min_branch_width: minimum branch width
3220
- :param max_branch_width: maximum branch width
3221
- :param min_bus_width:
3222
- :param max_bus_width: maximum bus width
3223
- :param arrow_size: arrow size
3224
- :param palette: Colormaps
3225
- :param default_bus_voltage: default bus voltage
3226
- :param expand_outside: whether to expand outside the given references using the branches
3227
- :param name: Name of the diagram
3228
- :return:
3229
- """
3230
-
3231
- (substations_extended, voltage_levels,
3232
- lines, dc_lines, hvdc_lines) = get_devices_to_expand(circuit=circuit,
3233
- substations=substations,
3234
- max_level=1,
3235
- expand_outside=expand_outside)
3236
-
3237
- # Draw schematic subset
3238
- diagram = generate_map_diagram(
3239
- substations=substations_extended,
3240
- voltage_levels=voltage_levels,
3241
- lines=lines,
3242
- dc_lines=dc_lines,
3243
- hvdc_lines=hvdc_lines,
3244
- fluid_nodes=list(),
3245
- fluid_paths=list(),
3246
- external_grids=list(),
3247
- static_generators=list(),
3248
- loads=list(),
3249
- batteries=list(),
3250
- generators=list(),
3251
- prog_func=prog_func,
3252
- text_func=text_func,
3253
- name=name,
3254
- use_flow_based_width=use_flow_based_width,
3255
- min_branch_width=min_branch_width,
3256
- max_branch_width=max_branch_width,
3257
- min_bus_width=min_bus_width,
3258
- max_bus_width=max_bus_width,
3259
- arrow_size=arrow_size,
3260
- palette=palette,
3261
- default_bus_voltage=default_bus_voltage
3262
- )
3263
-
3264
- return diagram