flextool 4.6.2__tar.gz → 4.6.3__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 (727) hide show
  1. {flextool-4.6.2/flextool.egg-info → flextool-4.6.3}/PKG-INFO +1 -1
  2. {flextool-4.6.2 → flextool-4.6.3}/docs/dev/architecture.md +5 -0
  3. {flextool-4.6.2 → flextool-4.6.3}/docs/flextool_gui_interface.md +28 -3
  4. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/performance.md +1 -1
  5. {flextool-4.6.2 → flextool-4.6.3}/docs/install_gui.md +1 -1
  6. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/groups.md +1 -1
  7. {flextool-4.6.2 → flextool-4.6.3}/docs/terminal_workflow.md +56 -0
  8. flextool-4.6.3/flextool/cli/cmd_repair_value_list.py +403 -0
  9. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_behaviour_changes.py +4 -4
  10. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_benders.py +72 -21
  11. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_orchestration.py +18 -22
  12. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_region_filter.py +110 -6
  13. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_run_model.py +3 -0
  14. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_solver_outcome.py +15 -8
  15. {flextool-4.6.2 → flextool-4.6.3}/flextool/env_check.py +14 -13
  16. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/entry.py +7 -4
  17. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/notices.py +27 -228
  18. flextool-4.6.3/flextool/gui/dialogs/_modal_base.py +301 -0
  19. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/add_dialog.py +171 -220
  20. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/group_picker.py +3 -6
  21. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/local_solver_settings_dialog.py +9 -5
  22. flextool-4.6.3/flextool/gui/dialogs/message_box.py +199 -0
  23. flextool-4.6.3/flextool/gui/dialogs/message_list_window.py +451 -0
  24. flextool-4.6.3/flextool/gui/dialogs/migration_consent_dialog.py +101 -0
  25. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/plot_dialog.py +7 -16
  26. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/project_dialog.py +39 -145
  27. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/project_package_dialog.py +6 -3
  28. flextool-4.6.3/flextool/gui/error_handling.py +33 -0
  29. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/execution_window.py +7 -6
  30. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/hover_tooltip.py +13 -0
  31. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/input_sources.py +93 -37
  32. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/main_window.py +563 -398
  33. flextool-4.6.3/flextool/gui/message_sources.py +372 -0
  34. flextool-4.6.3/flextool/gui/messages.py +480 -0
  35. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/project_utils.py +14 -0
  36. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/settings_io.py +8 -6
  37. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/__init__.py +4 -7
  38. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_warnings/__init__.py +2 -1
  39. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_warnings/_input_specs.py +42 -10
  40. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_warnings/registry.py +6 -2
  41. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/db_migration.py +36 -14
  42. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/frozen.py +4 -3
  43. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/install_info.py +14 -9
  44. flextool-4.6.3/flextool/update_flextool/list_default_repair.py +138 -0
  45. flextool-4.6.3/flextool/update_flextool/list_default_restore.py +335 -0
  46. flextool-4.6.3/flextool/update_flextool/value_list_answers.py +323 -0
  47. flextool-4.6.3/flextool/update_flextool/value_list_archive.py +260 -0
  48. flextool-4.6.3/flextool/update_flextool/value_list_history.py +290 -0
  49. flextool-4.6.3/flextool/update_flextool/value_list_repair.py +273 -0
  50. flextool-4.6.3/flextool/update_flextool/value_list_suspects.py +335 -0
  51. flextool-4.6.3/flextool/update_flextool/value_list_write.py +391 -0
  52. {flextool-4.6.2 → flextool-4.6.3/flextool.egg-info}/PKG-INFO +1 -1
  53. {flextool-4.6.2 → flextool-4.6.3}/flextool.egg-info/SOURCES.txt +13 -1
  54. {flextool-4.6.2 → flextool-4.6.3}/flextool.egg-info/entry_points.txt +1 -0
  55. {flextool-4.6.2 → flextool-4.6.3}/pyproject.toml +2 -1
  56. flextool-4.6.2/flextool/gui/dialogs/database_check_dialog.py +0 -54
  57. flextool-4.6.2/flextool/gui/dialogs/migration_consent_dialog.py +0 -209
  58. flextool-4.6.2/flextool/gui/error_handling.py +0 -50
  59. flextool-4.6.2/flextool/update_flextool/value_list_history.py +0 -170
  60. {flextool-4.6.2 → flextool-4.6.3}/LICENSE.txt +0 -0
  61. {flextool-4.6.2 → flextool-4.6.3}/MANIFEST.in +0 -0
  62. {flextool-4.6.2 → flextool-4.6.3}/README.md +0 -0
  63. {flextool-4.6.2 → flextool-4.6.3}/_flextool_build.py +0 -0
  64. {flextool-4.6.2 → flextool-4.6.3}/docs/advanced_concepts.md +0 -0
  65. {flextool-4.6.2 → flextool-4.6.3}/docs/ai_assistant.md +0 -0
  66. {flextool-4.6.2 → flextool-4.6.3}/docs/dev/engine.md +0 -0
  67. {flextool-4.6.2 → flextool-4.6.3}/docs/dev/slack_convention.md +0 -0
  68. {flextool-4.6.2 → flextool-4.6.3}/docs/env_vars.md +0 -0
  69. {flextool-4.6.2 → flextool-4.6.3}/docs/excel_interface.md +0 -0
  70. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/basics.md +0 -0
  71. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/emissions.md +0 -0
  72. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/index.md +0 -0
  73. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/investment.md +0 -0
  74. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/outputs.md +0 -0
  75. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/solve_sequences.md +0 -0
  76. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/stochastics.md +0 -0
  77. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/storage_hydro.md +0 -0
  78. {flextool-4.6.2 → flextool-4.6.3}/docs/how_to/thermal_chp.md +0 -0
  79. {flextool-4.6.2 → flextool-4.6.3}/docs/index.md +0 -0
  80. {flextool-4.6.2 → flextool-4.6.3}/docs/install_toolbox.md +0 -0
  81. {flextool-4.6.2 → flextool-4.6.3}/docs/interface_overview.md +0 -0
  82. {flextool-4.6.2 → flextool-4.6.3}/docs/limitations.md +0 -0
  83. {flextool-4.6.2 → flextool-4.6.3}/docs/reading_results.md +0 -0
  84. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/commodities.md +0 -0
  85. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/connections.md +0 -0
  86. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/entities_and_time.md +0 -0
  87. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/flow_groups.md +0 -0
  88. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/index.md +0 -0
  89. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/nodes.md +0 -0
  90. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/parameter_groups.md +0 -0
  91. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/reserves.md +0 -0
  92. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/units.md +0 -0
  93. {flextool-4.6.2 → flextool-4.6.3}/docs/reference/user_constraints.md +0 -0
  94. {flextool-4.6.2 → flextool-4.6.3}/docs/results.md +0 -0
  95. {flextool-4.6.2 → flextool-4.6.3}/docs/solvers/copt.md +0 -0
  96. {flextool-4.6.2 → flextool-4.6.3}/docs/solvers/cplex.md +0 -0
  97. {flextool-4.6.2 → flextool-4.6.3}/docs/solvers/gurobi.md +0 -0
  98. {flextool-4.6.2 → flextool-4.6.3}/docs/solvers/highs.md +0 -0
  99. {flextool-4.6.2 → flextool-4.6.3}/docs/solvers/index.md +0 -0
  100. {flextool-4.6.2 → flextool-4.6.3}/docs/solvers/xpress.md +0 -0
  101. {flextool-4.6.2 → flextool-4.6.3}/docs/spine_database.md +0 -0
  102. {flextool-4.6.2 → flextool-4.6.3}/docs/spine_toolbox.md +0 -0
  103. {flextool-4.6.2 → flextool-4.6.3}/docs/tutorial.md +0 -0
  104. {flextool-4.6.2 → flextool-4.6.3}/flextool/__init__.py +0 -0
  105. {flextool-4.6.2 → flextool-4.6.3}/flextool/_allocator.py +0 -0
  106. {flextool-4.6.2 → flextool-4.6.3}/flextool/_child_python.py +0 -0
  107. {flextool-4.6.2 → flextool-4.6.3}/flextool/_file_lock.py +0 -0
  108. {flextool-4.6.2 → flextool-4.6.3}/flextool/_local_solver_settings.py +0 -0
  109. {flextool-4.6.2 → flextool-4.6.3}/flextool/_mem_sampler.py +0 -0
  110. {flextool-4.6.2 → flextool-4.6.3}/flextool/_process_tree.py +0 -0
  111. {flextool-4.6.2 → flextool-4.6.3}/flextool/_resources.py +0 -0
  112. {flextool-4.6.2 → flextool-4.6.3}/flextool/_safe_text.py +0 -0
  113. {flextool-4.6.2 → flextool-4.6.3}/flextool/_solver_config_source.py +0 -0
  114. {flextool-4.6.2 → flextool-4.6.3}/flextool/_solver_option_rules.py +0 -0
  115. {flextool-4.6.2 → flextool-4.6.3}/flextool/_thread_budget.py +0 -0
  116. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/__init__.py +0 -0
  117. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/_files.py +0 -0
  118. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/backends/__init__.py +0 -0
  119. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/backends/_common.py +0 -0
  120. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/backends/anthropic_messages.py +0 -0
  121. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/backends/openai_chat.py +0 -0
  122. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/budget.py +0 -0
  123. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/caps.py +0 -0
  124. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/chat_cli.py +0 -0
  125. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/cli.py +0 -0
  126. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/context.py +0 -0
  127. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/docs_store.py +0 -0
  128. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/endpoint.py +0 -0
  129. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/env_knobs.py +0 -0
  130. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/errors.py +0 -0
  131. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/inputs/__init__.py +0 -0
  132. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/inputs/_db.py +0 -0
  133. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/inputs/_notes.py +0 -0
  134. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/inputs/_schema.py +0 -0
  135. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/inputs/_units.py +0 -0
  136. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/inputs/_values.py +0 -0
  137. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/keys.py +0 -0
  138. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/llm_adapter.py +0 -0
  139. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/llm_errors.py +0 -0
  140. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/llm_retry.py +0 -0
  141. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/mcp_server.py +0 -0
  142. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/model_check.py +0 -0
  143. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/model_facts.py +0 -0
  144. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/model_list_cache.py +0 -0
  145. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/model_versions.py +0 -0
  146. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/net.py +0 -0
  147. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/pacing.py +0 -0
  148. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/placeholders.py +0 -0
  149. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/probes.py +0 -0
  150. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/project.py +0 -0
  151. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/prompt.py +0 -0
  152. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/providers.py +0 -0
  153. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/redact.py +0 -0
  154. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/registry.py +0 -0
  155. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/results/__init__.py +0 -0
  156. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/results/_catalog.py +0 -0
  157. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/results/_entity.py +0 -0
  158. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/results/_overview.py +0 -0
  159. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/results/_query.py +0 -0
  160. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/results/_runs.py +0 -0
  161. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/results/_slacks.py +0 -0
  162. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/runtime_context.py +0 -0
  163. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/session.py +0 -0
  164. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/settings.py +0 -0
  165. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/store.py +0 -0
  166. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/textsearch.py +0 -0
  167. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/thoughts.py +0 -0
  168. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/tiers.py +0 -0
  169. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/tools/__init__.py +0 -0
  170. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/tools/diagnostics.py +0 -0
  171. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/tools/discovery.py +0 -0
  172. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/tools/explain.py +0 -0
  173. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/tools/inputs.py +0 -0
  174. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/tools/orientation.py +0 -0
  175. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/tools/results.py +0 -0
  176. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/unit_wording.py +0 -0
  177. {flextool-4.6.2 → flextool-4.6.3}/flextool/assistant/usage.py +0 -0
  178. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/__init__.py +0 -0
  179. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/__main__.py +0 -0
  180. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_cli.py +0 -0
  181. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_db_alt.py +0 -0
  182. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_final_outputs.py +0 -0
  183. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_guard.py +0 -0
  184. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_loop.py +0 -0
  185. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_readers.py +0 -0
  186. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_report.py +0 -0
  187. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_sizing.py +0 -0
  188. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_solve.py +0 -0
  189. {flextool-4.6.2 → flextool-4.6.3}/flextool/calibrate/_solve_status.py +0 -0
  190. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/__init__.py +0 -0
  191. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/_console.py +0 -0
  192. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/_timing.py +0 -0
  193. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_execute_flextool_workflow.py +0 -0
  194. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_export_to_tabular.py +0 -0
  195. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_freeze_database.py +0 -0
  196. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_import_sensitivities.py +0 -0
  197. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_migrate_database.py +0 -0
  198. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_open_results_db.py +0 -0
  199. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_project_package.py +0 -0
  200. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_read_matpower.py +0 -0
  201. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_read_old_flextool.py +0 -0
  202. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_read_self_describing_tabular_input.py +0 -0
  203. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_read_tabular_input.py +0 -0
  204. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_run_flextool.py +0 -0
  205. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_scenario_results.py +0 -0
  206. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_solve_mps.py +0 -0
  207. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_time_runs.py +0 -0
  208. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_trust_workspace.py +0 -0
  209. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_update_flextool.py +0 -0
  210. {flextool-4.6.2 → flextool-4.6.3}/flextool/cli/cmd_write_outputs.py +0 -0
  211. {flextool-4.6.2 → flextool-4.6.3}/flextool/common_utils/__init__.py +0 -0
  212. {flextool-4.6.2 → flextool-4.6.3}/flextool/common_utils/plot_mem_shape.py +0 -0
  213. {flextool-4.6.2 → flextool-4.6.3}/flextool/console_markers.py +0 -0
  214. {flextool-4.6.2 → flextool-4.6.3}/flextool/decomposition/__init__.py +0 -0
  215. {flextool-4.6.2 → flextool-4.6.3}/flextool/decomposition/region_decomposition.py +0 -0
  216. {flextool-4.6.2 → flextool-4.6.3}/flextool/decomposition/region_filter.py +0 -0
  217. {flextool-4.6.2 → flextool-4.6.3}/flextool/docs_build/__init__.py +0 -0
  218. {flextool-4.6.2 → flextool-4.6.3}/flextool/docs_build/__main__.py +0 -0
  219. {flextool-4.6.2 → flextool-4.6.3}/flextool/docs_build/catalogue.py +0 -0
  220. {flextool-4.6.2 → flextool-4.6.3}/flextool/docs_build/formulation.py +0 -0
  221. {flextool-4.6.2 → flextool-4.6.3}/flextool/docs_build/index.py +0 -0
  222. {flextool-4.6.2 → flextool-4.6.3}/flextool/docs_build/parameters.py +0 -0
  223. {flextool-4.6.2 → flextool-4.6.3}/flextool/docs_build/scope.py +0 -0
  224. {flextool-4.6.2 → flextool-4.6.3}/flextool/docs_build/warnings.py +0 -0
  225. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/__init__.py +0 -0
  226. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_csv_reload/__init__.py +0 -0
  227. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_csv_reload/_field_seeds.py +0 -0
  228. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_csv_reload/_meta.py +0 -0
  229. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_csv_reload/_seed.py +0 -0
  230. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_csv_reload/_stamp.py +0 -0
  231. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_csv_reload/_topology.py +0 -0
  232. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_csv_reload/load.py +0 -0
  233. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/_csv_reload/offline_outputs.py +0 -0
  234. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/autoscale/__init__.py +0 -0
  235. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/autoscale/_config.py +0 -0
  236. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/autoscale/_guard.py +0 -0
  237. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/autoscale/_layer2.py +0 -0
  238. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/autoscale/_layer2_types.py +0 -0
  239. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/autoscale/_quantity_types.py +0 -0
  240. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/autoscale/_report.py +0 -0
  241. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/__init__.py +0 -0
  242. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_axis_enums.py +0 -0
  243. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_constants.py +0 -0
  244. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_db_loader.py +0 -0
  245. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_db_reader.py +0 -0
  246. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_inmemory_reader.py +0 -0
  247. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_input_source.py +0 -0
  248. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_lifetime_roles.py +0 -0
  249. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_param_shapes.py +0 -0
  250. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_piecewise_curve.py +0 -0
  251. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_solve_config.py +0 -0
  252. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_solve_state.py +0 -0
  253. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_solve_step_aggregation.py +0 -0
  254. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_spinedb_reader.py +0 -0
  255. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_timeline.py +0 -0
  256. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/input/_timeline_rules.py +0 -0
  257. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/__init__.py +0 -0
  258. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_balance_terms.py +0 -0
  259. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_capacity.py +0 -0
  260. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_coarse_flows.py +0 -0
  261. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_commodity_ladder.py +0 -0
  262. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_common.py +0 -0
  263. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_cumulative_invest.py +0 -0
  264. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_dc_power_flow.py +0 -0
  265. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_delay.py +0 -0
  266. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_exact.py +0 -0
  267. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_extend.py +0 -0
  268. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_group_slack.py +0 -0
  269. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_lead_time.py +0 -0
  270. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_non_anticipativity.py +0 -0
  271. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_online.py +0 -0
  272. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_pdt_join.py +0 -0
  273. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_reserve.py +0 -0
  274. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_retire_built.py +0 -0
  275. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_self_discharge.py +0 -0
  276. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/_unit_floors.py +0 -0
  277. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/model/core.py +0 -0
  278. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/__init__.py +0 -0
  279. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_benders_slice.py +0 -0
  280. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_capacity_margin.py +0 -0
  281. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_coarse_flows.py +0 -0
  282. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_cohort_capacity.py +0 -0
  283. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_dump_csvs.py +0 -0
  284. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_horizon_dump.py +0 -0
  285. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_parquet_bundle.py +0 -0
  286. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_prices.py +0 -0
  287. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_reserve_report.py +0 -0
  288. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/output/_writer.py +0 -0
  289. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/__init__.py +0 -0
  290. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_annuity.py +0 -0
  291. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_co2_methods.py +0 -0
  292. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_dump_stamp.py +0 -0
  293. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_flex_data_provider.py +0 -0
  294. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_input_writer.py +0 -0
  295. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_invest_seeds.py +0 -0
  296. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_provider_io.py +0 -0
  297. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_provider_keys.py +0 -0
  298. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_provider_translators.py +0 -0
  299. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_reduce_detail.py +0 -0
  300. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_reserve_methods.py +0 -0
  301. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_solve_context.py +0 -0
  302. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/_stochastic_detect.py +0 -0
  303. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/__init__.py +0 -0
  304. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_arc_unions.py +0 -0
  305. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_base_steps.py +0 -0
  306. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_blocks.py +0 -0
  307. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_calc_params.py +0 -0
  308. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_capacity_margin_peak.py +0 -0
  309. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_chain_params.py +0 -0
  310. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_co2_accumulators.py +0 -0
  311. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_dispatchers.py +0 -0
  312. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_energy_margin.py +0 -0
  313. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_energy_margin_adder.py +0 -0
  314. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_inflow_scaling.py +0 -0
  315. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_inflow_scaling_checks.py +0 -0
  316. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_leaf_sets.py +0 -0
  317. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_lp_scaling.py +0 -0
  318. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_mid_sets.py +0 -0
  319. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_pdt_lookup.py +0 -0
  320. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_pdt_params.py +0 -0
  321. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_per_solve.py +0 -0
  322. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_period_calc.py +0 -0
  323. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_period_params.py +0 -0
  324. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_reserve_sets.py +0 -0
  325. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_solve_time.py +0 -0
  326. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_solve_writers.py +0 -0
  327. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/emit/_vectorize.py +0 -0
  328. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/flex_data.py +0 -0
  329. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/__init__.py +0 -0
  330. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_arithmetic.py +0 -0
  331. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_block.py +0 -0
  332. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_block_layout.py +0 -0
  333. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_branch.py +0 -0
  334. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_coarse.py +0 -0
  335. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_cohort_handoff.py +0 -0
  336. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_cohorts.py +0 -0
  337. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_cost_lines.py +0 -0
  338. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_derived.py +0 -0
  339. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_direct.py +0 -0
  340. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_discount.py +0 -0
  341. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_existing.py +0 -0
  342. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_existing_salvage.py +0 -0
  343. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_extend.py +0 -0
  344. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_fixed_costs.py +0 -0
  345. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_lifetime_costs.py +0 -0
  346. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_lifetime_inputs.py +0 -0
  347. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_mintime.py +0 -0
  348. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_npv.py +0 -0
  349. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_per_solve_sets.py +0 -0
  350. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_period_values.py +0 -0
  351. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_piecewise.py +0 -0
  352. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_profiles.py +0 -0
  353. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_projection.py +0 -0
  354. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_ramp_links.py +0 -0
  355. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_report_lines.py +0 -0
  356. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_retire_built.py +0 -0
  357. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_retire_existing.py +0 -0
  358. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_retire_settlement.py +0 -0
  359. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_run_calendar.py +0 -0
  360. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_run_costs.py +0 -0
  361. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/preprocess/params/_walks.py +0 -0
  362. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/__init__.py +0 -0
  363. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_acceptance.py +0 -0
  364. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_benders_final.py +0 -0
  365. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_carry_routing.py +0 -0
  366. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_determinism.py +0 -0
  367. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_handoff.py +0 -0
  368. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_objective_options.py +0 -0
  369. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_realization.py +0 -0
  370. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_realized_overlap.py +0 -0
  371. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_recursive_solve.py +0 -0
  372. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_solver_base.py +0 -0
  373. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_solver_catalogue.py +0 -0
  374. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_solver_dispatch.py +0 -0
  375. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_stochastic.py +0 -0
  376. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_subprocess_solve.py +0 -0
  377. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/_warm.py +0 -0
  378. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/chain.py +0 -0
  379. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/solver_catalogue/copt.json +0 -0
  380. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/solver_catalogue/cplex.json +0 -0
  381. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/solver_catalogue/gurobi.json +0 -0
  382. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/solver_catalogue/highs.json +0 -0
  383. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine/solve/solver_catalogue/xpress.json +0 -0
  384. {flextool-4.6.2 → flextool-4.6.3}/flextool/engine_polars/__init__.py +0 -0
  385. {flextool-4.6.2 → flextool-4.6.3}/flextool/export_to_tabular/__init__.py +0 -0
  386. {flextool-4.6.2 → flextool-4.6.3}/flextool/export_to_tabular/db_reader.py +0 -0
  387. {flextool-4.6.2 → flextool-4.6.3}/flextool/export_to_tabular/excel_writer.py +0 -0
  388. {flextool-4.6.2 → flextool-4.6.3}/flextool/export_to_tabular/export_settings.yaml +0 -0
  389. {flextool-4.6.2 → flextool-4.6.3}/flextool/export_to_tabular/export_to_excel.py +0 -0
  390. {flextool-4.6.2 → flextool-4.6.3}/flextool/export_to_tabular/formatting.py +0 -0
  391. {flextool-4.6.2 → flextool-4.6.3}/flextool/export_to_tabular/sheet_config.py +0 -0
  392. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/__init__.py +0 -0
  393. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/__main__.py +0 -0
  394. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/_menus.py +0 -0
  395. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/__init__.py +0 -0
  396. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/chat_tab.py +0 -0
  397. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/chat_window.py +0 -0
  398. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/fonts.py +0 -0
  399. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/gate.py +0 -0
  400. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/geometry.py +0 -0
  401. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/gui_state.py +0 -0
  402. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/markdown_stream.py +0 -0
  403. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/settings_dialog.py +0 -0
  404. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/strings.py +0 -0
  405. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/transcript.py +0 -0
  406. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/assistant/worker.py +0 -0
  407. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/calibrate_commands.py +0 -0
  408. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/calibrate_jobs.py +0 -0
  409. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/check_tree.py +0 -0
  410. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/cli_format.py +0 -0
  411. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/config_parser.py +0 -0
  412. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/data_models.py +0 -0
  413. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/db_editor_integration.py +0 -0
  414. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/db_version_check.py +0 -0
  415. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/__init__.py +0 -0
  416. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/calibrate_dialog.py +0 -0
  417. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/file_picker.py +0 -0
  418. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/migration_progress_dialog.py +0 -0
  419. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/plot_settings_picker.py +0 -0
  420. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/dialogs/update_dialog.py +0 -0
  421. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/downsampling.py +0 -0
  422. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/execution_manager.py +0 -0
  423. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/log_view.py +0 -0
  424. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/network_graph.py +0 -0
  425. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/output_actions.py +0 -0
  426. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/output_log_window.py +0 -0
  427. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/platform_utils.py +0 -0
  428. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/plot_cache.py +0 -0
  429. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/plot_canvas.py +0 -0
  430. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/plot_config_reader.py +0 -0
  431. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/result_viewer.py +0 -0
  432. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/scenario_key.py +0 -0
  433. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/scenario_lists.py +0 -0
  434. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/solve_reader.py +0 -0
  435. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/tree_reorder.py +0 -0
  436. {flextool-4.6.2 → flextool-4.6.3}/flextool/gui/ui_metrics.py +0 -0
  437. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/__init__.py +0 -0
  438. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/_commodity_ladder.py +0 -0
  439. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/_commodity_ladder_sets.py +0 -0
  440. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/_dc_power_flow.py +0 -0
  441. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/_method_constants.py +0 -0
  442. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/_piecewise.py +0 -0
  443. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/_process_method.py +0 -0
  444. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/_specs.py +0 -0
  445. {flextool-4.6.2 → flextool-4.6.3}/flextool/input_derivation/_validators.py +0 -0
  446. {flextool-4.6.2 → flextool-4.6.3}/flextool/lean_parquet.py +0 -0
  447. {flextool-4.6.2 → flextool-4.6.3}/flextool/model_builder/__init__.py +0 -0
  448. {flextool-4.6.2 → flextool-4.6.3}/flextool/model_builder/_special.py +0 -0
  449. {flextool-4.6.2 → flextool-4.6.3}/flextool/model_builder/build_model.py +0 -0
  450. {flextool-4.6.2 → flextool-4.6.3}/flextool/model_builder/encoding.py +0 -0
  451. {flextool-4.6.2 → flextool-4.6.3}/flextool/model_builder/names.py +0 -0
  452. {flextool-4.6.2 → flextool-4.6.3}/flextool/model_builder/profiles.py +0 -0
  453. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/__init__.py +0 -0
  454. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/axis_helpers.py +0 -0
  455. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/color_template.py +0 -0
  456. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/config.py +0 -0
  457. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/format_helpers.py +0 -0
  458. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/legend_helpers.py +0 -0
  459. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/orchestrator.py +0 -0
  460. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/perf.py +0 -0
  461. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/plan.py +0 -0
  462. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/plot_bars.py +0 -0
  463. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/plot_bars_detail.py +0 -0
  464. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/plot_lines.py +0 -0
  465. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/shared_manifest.py +0 -0
  466. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/subplot_helpers.py +0 -0
  467. {flextool-4.6.2 → flextool-4.6.3}/flextool/plot_outputs/unit_labels.py +0 -0
  468. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/import_old_excel_input.json +0 -0
  469. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/read_matpower.py +0 -0
  470. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/read_old_flextool.py +0 -0
  471. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/read_self_describing_excel.py +0 -0
  472. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/read_tabular_with_specification.py +0 -0
  473. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/write_old_flextool_to_db.py +0 -0
  474. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/write_self_describing_to_db.py +0 -0
  475. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_inputs/write_to_input_db.py +0 -0
  476. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/__init__.py +0 -0
  477. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_annualize.py +0 -0
  478. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_csv_sidecars.py +0 -0
  479. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_excel_writer.py +0 -0
  480. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_fan_labels.py +0 -0
  481. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_inmemory_helpers.py +0 -0
  482. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_output_meta.py +0 -0
  483. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_ramp_inputs.py +0 -0
  484. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_sheet_names.py +0 -0
  485. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_timeline_breaks.py +0 -0
  486. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/_unit_context.py +0 -0
  487. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/calc_capacity_flows.py +0 -0
  488. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/calc_connections.py +0 -0
  489. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/calc_costs.py +0 -0
  490. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/calc_group_flows.py +0 -0
  491. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/calc_piecewise.py +0 -0
  492. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/calc_ramp_envelope.py +0 -0
  493. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/calc_slacks.py +0 -0
  494. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/calc_storage_vre.py +0 -0
  495. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/drop_levels.py +0 -0
  496. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/handoff_writers.py +0 -0
  497. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/out_ancillary.py +0 -0
  498. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/out_capacity.py +0 -0
  499. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/out_costs.py +0 -0
  500. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/out_flowgroup.py +0 -0
  501. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/out_flows.py +0 -0
  502. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/out_group.py +0 -0
  503. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/out_node.py +0 -0
  504. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/persist_realized_slice.py +0 -0
  505. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/process_results.py +0 -0
  506. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/read_highs_solution.py +0 -0
  507. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/read_parameters.py +0 -0
  508. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/read_sets.py +0 -0
  509. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/read_variables.py +0 -0
  510. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/reduced_cells.py +0 -0
  511. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/solve_order.py +0 -0
  512. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/spinedb_replay.py +0 -0
  513. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/union_realized_slice.py +0 -0
  514. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/write_outputs.py +0 -0
  515. {flextool-4.6.2 → flextool-4.6.3}/flextool/process_outputs/write_spinedb.py +0 -0
  516. {flextool-4.6.2 → flextool-4.6.3}/flextool/project_package.py +0 -0
  517. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/__init__.py +0 -0
  518. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/clustering.py +0 -0
  519. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/force_include.py +0 -0
  520. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/netload.py +0 -0
  521. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/netload_inputs.py +0 -0
  522. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/netload_iterate.py +0 -0
  523. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/preprocess.py +0 -0
  524. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/scenario_stack.py +0 -0
  525. {flextool-4.6.2 → flextool-4.6.3}/flextool/representative_periods/weights.py +0 -0
  526. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_options.py +0 -0
  527. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_record/__init__.py +0 -0
  528. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_record/_owner.py +0 -0
  529. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_record/_status.py +0 -0
  530. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_record/_tee.py +0 -0
  531. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_warnings/_behaviour_specs.py +0 -0
  532. {flextool-4.6.2 → flextool-4.6.3}/flextool/run_warnings/_engine_specs.py +0 -0
  533. {flextool-4.6.2 → flextool-4.6.3}/flextool/safe_names.py +0 -0
  534. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/__init__.py +0 -0
  535. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/config_builder.py +0 -0
  536. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/constants.py +0 -0
  537. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/data_models.py +0 -0
  538. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/db_reader.py +0 -0
  539. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/dispatch_data.py +0 -0
  540. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/dispatch_mappings.py +0 -0
  541. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/dispatch_plots.py +0 -0
  542. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/input_entity_colors.py +0 -0
  543. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/orchestrator.py +0 -0
  544. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/plan_union.py +0 -0
  545. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/plot_settings_seed.py +0 -0
  546. {flextool-4.6.2 → flextool-4.6.3}/flextool/scenario_comparison/ramp_plots.py +0 -0
  547. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/AXIS_CONTRACT.md +0 -0
  548. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/howto_aggregate_output.json +0 -0
  549. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/howto_connections.json +0 -0
  550. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/howto_demand.json +0 -0
  551. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/howto_hydro_reservoir.json +0 -0
  552. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/howto_hydro_reservoir_with_pump.json +0 -0
  553. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/howto_non_sync_and_curtailment.json +0 -0
  554. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/howto_ramp_and_start_up.json +0 -0
  555. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/howto_stochastics.json +0 -0
  556. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/templates_examples.json +0 -0
  557. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/canonical_databases/templates_time_settings_only.json +0 -0
  558. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/comparison_settings_template.json +0 -0
  559. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/default_plot_settings.yaml +0 -0
  560. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/default_plots.yaml +0 -0
  561. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/flextool_axis_contract.json +0 -0
  562. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/flextool_axis_contract.schema.json +0 -0
  563. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/old_flextool_import_template.json +0 -0
  564. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/output_info_template.json +0 -0
  565. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/output_settings_template.json +0 -0
  566. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_constant_default.json +0 -0
  567. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_default_optional_output.json +0 -0
  568. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_default_value.json +0 -0
  569. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_drop_down.json +0 -0
  570. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_lifetime_method.json +0 -0
  571. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_optional_outputs.json +0 -0
  572. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_output_node_flows.json +0 -0
  573. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_results_master.json +0 -0
  574. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_rolling_start_remove.json +0 -0
  575. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_rolling_window.json +0 -0
  576. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_storage_binding_defaults.json +0 -0
  577. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_v2.json +0 -0
  578. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/pre_v26/flextool_template_v25.json +0 -0
  579. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/spinedb_results_schema.json +0 -0
  580. {flextool-4.6.2 → flextool-4.6.3}/flextool/schemas/spinedb_schema.json +0 -0
  581. {flextool-4.6.2 → flextool-4.6.3}/flextool/solver_config/copt.opt.template +0 -0
  582. {flextool-4.6.2 → flextool-4.6.3}/flextool/solver_config/cplex.opt.template +0 -0
  583. {flextool-4.6.2 → flextool-4.6.3}/flextool/solver_config/gurobi.opt.template +0 -0
  584. {flextool-4.6.2 → flextool-4.6.3}/flextool/solver_config/highs.opt.template +0 -0
  585. {flextool-4.6.2 → flextool-4.6.3}/flextool/solver_config/xpress.opt.template +0 -0
  586. {flextool-4.6.2 → flextool-4.6.3}/flextool/spinedb_backend/__init__.py +0 -0
  587. {flextool-4.6.2 → flextool-4.6.3}/flextool/spinedb_backend/_axis_enums.py +0 -0
  588. {flextool-4.6.2 → flextool-4.6.3}/flextool/spinedb_backend/_backend.py +0 -0
  589. {flextool-4.6.2 → flextool-4.6.3}/flextool/sqlite_url.py +0 -0
  590. {flextool-4.6.2 → flextool-4.6.3}/flextool/timeline_pieces.py +0 -0
  591. {flextool-4.6.2 → flextool-4.6.3}/flextool/units_of_measure.py +0 -0
  592. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/__init__.py +0 -0
  593. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/bundle_install.py +0 -0
  594. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/canonical_databases.py +0 -0
  595. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/db_handle.py +0 -0
  596. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/ensure_settings_db.py +0 -0
  597. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/export_database.py +0 -0
  598. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/extend_tests_fixture.py +0 -0
  599. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/fixture_schema.py +0 -0
  600. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/generate_canonical.py +0 -0
  601. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/initialize_database.py +0 -0
  602. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/migrate_before_run.py +0 -0
  603. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/migration_backup.py +0 -0
  604. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/self_update.py +0 -0
  605. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/sync_master_json_template.py +0 -0
  606. {flextool-4.6.2 → flextool-4.6.3}/flextool/update_flextool/test_fixtures.py +0 -0
  607. {flextool-4.6.2 → flextool-4.6.3}/flextool/user_dirs.py +0 -0
  608. {flextool-4.6.2 → flextool-4.6.3}/flextool.egg-info/dependency_links.txt +0 -0
  609. {flextool-4.6.2 → flextool-4.6.3}/flextool.egg-info/requires.txt +0 -0
  610. {flextool-4.6.2 → flextool-4.6.3}/flextool.egg-info/top_level.txt +0 -0
  611. {flextool-4.6.2 → flextool-4.6.3}/flextool_assistant_entry.py +0 -0
  612. {flextool-4.6.2 → flextool-4.6.3}/flextool_run_supervisor.py +0 -0
  613. {flextool-4.6.2 → flextool-4.6.3}/setup.cfg +0 -0
  614. {flextool-4.6.2 → flextool-4.6.3}/tests/test_bar_layout.py +0 -0
  615. {flextool-4.6.2 → flextool-4.6.3}/tests/test_bar_sub_pixel_labels.py +0 -0
  616. {flextool-4.6.2 → flextool-4.6.3}/tests/test_blocks.py +0 -0
  617. {flextool-4.6.2 → flextool-4.6.3}/tests/test_branch_weights.py +0 -0
  618. {flextool-4.6.2 → flextool-4.6.3}/tests/test_child_python_safe_path.py +0 -0
  619. {flextool-4.6.2 → flextool-4.6.3}/tests/test_child_run_argv.py +0 -0
  620. {flextool-4.6.2 → flextool-4.6.3}/tests/test_ci_shard.py +0 -0
  621. {flextool-4.6.2 → flextool-4.6.3}/tests/test_color_template.py +0 -0
  622. {flextool-4.6.2 → flextool-4.6.3}/tests/test_commodity_ladder_rolling.py +0 -0
  623. {flextool-4.6.2 → flextool-4.6.3}/tests/test_comparison_excel.py +0 -0
  624. {flextool-4.6.2 → flextool-4.6.3}/tests/test_comparison_project_root.py +0 -0
  625. {flextool-4.6.2 → flextool-4.6.3}/tests/test_comparison_results_registry.py +0 -0
  626. {flextool-4.6.2 → flextool-4.6.3}/tests/test_complete_period_share_reduction.py +0 -0
  627. {flextool-4.6.2 → flextool-4.6.3}/tests/test_connection_node_warnings.py +0 -0
  628. {flextool-4.6.2 → flextool-4.6.3}/tests/test_console_run_tool.py +0 -0
  629. {flextool-4.6.2 → flextool-4.6.3}/tests/test_cost_aggregation_semantics.py +0 -0
  630. {flextool-4.6.2 → flextool-4.6.3}/tests/test_cost_breakdown_by_entity.py +0 -0
  631. {flextool-4.6.2 → flextool-4.6.3}/tests/test_csv_dump_roundtrip.py +0 -0
  632. {flextool-4.6.2 → flextool-4.6.3}/tests/test_dc_power_flow.py +0 -0
  633. {flextool-4.6.2 → flextool-4.6.3}/tests/test_dependency_caps.py +0 -0
  634. {flextool-4.6.2 → flextool-4.6.3}/tests/test_dispatch_consumer_and_connection_signs.py +0 -0
  635. {flextool-4.6.2 → flextool-4.6.3}/tests/test_dispatch_multi_period.py +0 -0
  636. {flextool-4.6.2 → flextool-4.6.3}/tests/test_dispatch_node_debug_and_tree.py +0 -0
  637. {flextool-4.6.2 → flextool-4.6.3}/tests/test_dispatch_order_specials.py +0 -0
  638. {flextool-4.6.2 → flextool-4.6.3}/tests/test_dispatch_scenario_tag.py +0 -0
  639. {flextool-4.6.2 → flextool-4.6.3}/tests/test_ensure_settings_db.py +0 -0
  640. {flextool-4.6.2 → flextool-4.6.3}/tests/test_entity_unitsize_invariant.py +0 -0
  641. {flextool-4.6.2 → flextool-4.6.3}/tests/test_entity_universe_carrier.py +0 -0
  642. {flextool-4.6.2 → flextool-4.6.3}/tests/test_env_check.py +0 -0
  643. {flextool-4.6.2 → flextool-4.6.3}/tests/test_env_knob_registry.py +0 -0
  644. {flextool-4.6.2 → flextool-4.6.3}/tests/test_excel_text_cells.py +0 -0
  645. {flextool-4.6.2 → flextool-4.6.3}/tests/test_execution_log_lint.py +0 -0
  646. {flextool-4.6.2 → flextool-4.6.3}/tests/test_export_to_tabular.py +0 -0
  647. {flextool-4.6.2 → flextool-4.6.3}/tests/test_extend_tests_fixture.py +0 -0
  648. {flextool-4.6.2 → flextool-4.6.3}/tests/test_flowgroup_indicators.py +0 -0
  649. {flextool-4.6.2 → flextool-4.6.3}/tests/test_force_include.py +0 -0
  650. {flextool-4.6.2 → flextool-4.6.3}/tests/test_group_output_warnings.py +0 -0
  651. {flextool-4.6.2 → flextool-4.6.3}/tests/test_handoff_writers.py +0 -0
  652. {flextool-4.6.2 → flextool-4.6.3}/tests/test_input_entity_colors.py +0 -0
  653. {flextool-4.6.2 → flextool-4.6.3}/tests/test_lean_parquet.py +0 -0
  654. {flextool-4.6.2 → flextool-4.6.3}/tests/test_lh2_three_region.py +0 -0
  655. {flextool-4.6.2 → flextool-4.6.3}/tests/test_min_load_rolling.py +0 -0
  656. {flextool-4.6.2 → flextool-4.6.3}/tests/test_model_builder_invest.py +0 -0
  657. {flextool-4.6.2 → flextool-4.6.3}/tests/test_model_builder_special_functions.py +0 -0
  658. {flextool-4.6.2 → flextool-4.6.3}/tests/test_non_anticipativity.py +0 -0
  659. {flextool-4.6.2 → flextool-4.6.3}/tests/test_old_flextool_importer_schema_drift.py +0 -0
  660. {flextool-4.6.2 → flextool-4.6.3}/tests/test_open_results_db.py +0 -0
  661. {flextool-4.6.2 → flextool-4.6.3}/tests/test_output_column_metadata.py +0 -0
  662. {flextool-4.6.2 → flextool-4.6.3}/tests/test_output_csv_names.py +0 -0
  663. {flextool-4.6.2 → flextool-4.6.3}/tests/test_output_metadata_renderers.py +0 -0
  664. {flextool-4.6.2 → flextool-4.6.3}/tests/test_output_work_folder_isolation.py +0 -0
  665. {flextool-4.6.2 → flextool-4.6.3}/tests/test_parameter_group_coverage.py +0 -0
  666. {flextool-4.6.2 → flextool-4.6.3}/tests/test_period_share_of_year_output.py +0 -0
  667. {flextool-4.6.2 → flextool-4.6.3}/tests/test_piecewise_validation.py +0 -0
  668. {flextool-4.6.2 → flextool-4.6.3}/tests/test_plan_union.py +0 -0
  669. {flextool-4.6.2 → flextool-4.6.3}/tests/test_plot_draw_order.py +0 -0
  670. {flextool-4.6.2 → flextool-4.6.3}/tests/test_plot_gaps.py +0 -0
  671. {flextool-4.6.2 → flextool-4.6.3}/tests/test_plot_pipeline.py +0 -0
  672. {flextool-4.6.2 → flextool-4.6.3}/tests/test_plot_plan_chunk_reconstruction.py +0 -0
  673. {flextool-4.6.2 → flextool-4.6.3}/tests/test_plot_plan_time_labels_roundtrip.py +0 -0
  674. {flextool-4.6.2 → flextool-4.6.3}/tests/test_plot_settings_seed.py +0 -0
  675. {flextool-4.6.2 → flextool-4.6.3}/tests/test_project_package_cli.py +0 -0
  676. {flextool-4.6.2 → flextool-4.6.3}/tests/test_ramp_histogram.py +0 -0
  677. {flextool-4.6.2 → flextool-4.6.3}/tests/test_read_highs_solution.py +0 -0
  678. {flextool-4.6.2 → flextool-4.6.3}/tests/test_recourse_cost_reconciliation.py +0 -0
  679. {flextool-4.6.2 → flextool-4.6.3}/tests/test_regional_filter.py +0 -0
  680. {flextool-4.6.2 → flextool-4.6.3}/tests/test_representative_periods.py +0 -0
  681. {flextool-4.6.2 → flextool-4.6.3}/tests/test_rolling_online_carry.py +0 -0
  682. {flextool-4.6.2 → flextool-4.6.3}/tests/test_rolling_online_mintime_carry.py +0 -0
  683. {flextool-4.6.2 → flextool-4.6.3}/tests/test_rolling_online_minuptime.py +0 -0
  684. {flextool-4.6.2 → flextool-4.6.3}/tests/test_rp_alternative_name.py +0 -0
  685. {flextool-4.6.2 → flextool-4.6.3}/tests/test_rp_force_include_wiring.py +0 -0
  686. {flextool-4.6.2 → flextool-4.6.3}/tests/test_rp_solves_filter.py +0 -0
  687. {flextool-4.6.2 → flextool-4.6.3}/tests/test_run_options.py +0 -0
  688. {flextool-4.6.2 → flextool-4.6.3}/tests/test_safe_names.py +0 -0
  689. {flextool-4.6.2 → flextool-4.6.3}/tests/test_safe_text.py +0 -0
  690. {flextool-4.6.2 → flextool-4.6.3}/tests/test_scenario_colors.py +0 -0
  691. {flextool-4.6.2 → flextool-4.6.3}/tests/test_scenario_stack.py +0 -0
  692. {flextool-4.6.2 → flextool-4.6.3}/tests/test_scenarios.py +0 -0
  693. {flextool-4.6.2 → flextool-4.6.3}/tests/test_self_describing_reader.py +0 -0
  694. {flextool-4.6.2 → flextool-4.6.3}/tests/test_shared_axis_manifest.py +0 -0
  695. {flextool-4.6.2 → flextool-4.6.3}/tests/test_simple_bar_entity_color.py +0 -0
  696. {flextool-4.6.2 → flextool-4.6.3}/tests/test_solve_config.py +0 -0
  697. {flextool-4.6.2 → flextool-4.6.3}/tests/test_solve_reader.py +0 -0
  698. {flextool-4.6.2 → flextool-4.6.3}/tests/test_specification_excel_import.py +0 -0
  699. {flextool-4.6.2 → flextool-4.6.3}/tests/test_sqlite_url.py +0 -0
  700. {flextool-4.6.2 → flextool-4.6.3}/tests/test_stochastic_co2_total_price.py +0 -0
  701. {flextool-4.6.2 → flextool-4.6.3}/tests/test_stream_concat_temp_cleanup.py +0 -0
  702. {flextool-4.6.2 → flextool-4.6.3}/tests/test_support_load.py +0 -0
  703. {flextool-4.6.2 → flextool-4.6.3}/tests/test_synthesize_invest_dual.py +0 -0
  704. {flextool-4.6.2 → flextool-4.6.3}/tests/test_thread_budget.py +0 -0
  705. {flextool-4.6.2 → flextool-4.6.3}/tests/test_time_runs.py +0 -0
  706. {flextool-4.6.2 → flextool-4.6.3}/tests/test_timeline_breaks.py +0 -0
  707. {flextool-4.6.2 → flextool-4.6.3}/tests/test_timings_csv.py +0 -0
  708. {flextool-4.6.2 → flextool-4.6.3}/tests/test_toolbox_specs.py +0 -0
  709. {flextool-4.6.2 → flextool-4.6.3}/tests/test_unidirectional_connection.py +0 -0
  710. {flextool-4.6.2 → flextool-4.6.3}/tests/test_unit_online_dt_columns.py +0 -0
  711. {flextool-4.6.2 → flextool-4.6.3}/tests/test_units_of_measure.py +0 -0
  712. {flextool-4.6.2 → flextool-4.6.3}/tests/test_units_of_measure_validators.py +0 -0
  713. {flextool-4.6.2 → flextool-4.6.3}/tests/test_user_dirs_isolation.py +0 -0
  714. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v52_migration.py +0 -0
  715. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v63_migration.py +0 -0
  716. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v64_migration.py +0 -0
  717. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v65_migration.py +0 -0
  718. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v66_migration.py +0 -0
  719. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v67_migration.py +0 -0
  720. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v68_migration.py +0 -0
  721. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v69_migration.py +0 -0
  722. {flextool-4.6.2 → flextool-4.6.3}/tests/test_v70_migration.py +0 -0
  723. {flextool-4.6.2 → flextool-4.6.3}/tests/test_workdir_empty_default.py +0 -0
  724. {flextool-4.6.2 → flextool-4.6.3}/tests/test_xlsx_startup_input_round_trip.py +0 -0
  725. {flextool-4.6.2 → flextool-4.6.3}/tests/test_xlsx_v77_round_trip.py +0 -0
  726. {flextool-4.6.2 → flextool-4.6.3}/tests/test_xlsx_workflow.py +0 -0
  727. {flextool-4.6.2 → flextool-4.6.3}/tests/test_years_represented.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flextool
3
- Version: 4.6.2
3
+ Version: 4.6.3
4
4
  Summary: IRENA FlexTool is an energy and power systems model for understanding the role of variable power generation in future energy systems.
5
5
  Author: IRENA FlexTool contributors
6
6
  License: © International Renewable Energy Agency 2018-2022
@@ -904,6 +904,11 @@ network_graph.py Network-topology figure builder.
904
904
  check_tree.py CheckTreeController.
905
905
  hover_tooltip.py / tree_reorder.py / downsampling.py / cli_format.py / scenario_key.py / config_parser.py
906
906
  dialogs/ Add / project / plot / file-picker dialogs.
907
+ dialogs/_modal_base.py ModalBase + ModalGrab: the shared modal base (deferred grab, shield).
908
+ dialogs/message_box.py The one FlexTool box: tell / ask / name_list (no native messagebox).
909
+ dialogs/message_list_window.py Non-modal message list window + MessageListController (indicator, auto-show).
910
+ messages.py Tk-free message list core: specs, per-user store, MessageCenter.
911
+ message_sources.py The list's sources (W-0490, upgraded, unreadable, solver settings, update).
907
912
  ```
908
913
 
909
914
  ### `flextool/update_flextool/` — migration and updates
@@ -44,6 +44,31 @@ Each project lives in `projects/<name>/` and owns its own input sources, executi
44
44
 
45
45
  F2 or double-click on the drop-down renames the current project. The most recently used project is reopened on the next launch.
46
46
 
47
+ ## Messages
48
+
49
+ The **Messages** button at the top right opens the list of FlexTool's notices about the open project, its databases and this installation. The button shows how many messages there are, and it is highlighted while a message needs your attention or is new. The list shows one message at a time: **Previous** and **Next** page through them, and **Open documentation** opens the page that explains the message.
50
+
51
+ When you open a project or press **Refresh**, the list opens by itself if a message is waiting that you have not seen yet. It also opens by itself when a database that needs checking is added. Otherwise only the button changes, so the list never pops up over a run.
52
+
53
+ - **Close for now** (or Escape) closes the list. The messages come back the next time you open the project or start FlexTool.
54
+ - **Dismiss** removes a message for good. Only messages that report something have it, such as "This database was upgraded" or "A newer FlexTool is available".
55
+ - A message without **Dismiss** stays as long as its cause does, and says in its text what ends it.
56
+
57
+ A message that only reports something opens the list by itself at the first two project opens; after that it waits in the list until you dismiss it. A message that needs your attention ("Please check this database", "FlexTool cannot read this database file") opens the list at every project open.
58
+
59
+ The list can show:
60
+
61
+ - **Please check this database**: the database may have been changed by a library bug when it was upgraded ([W-0490](reference/warnings.md#w-0490)). It also appears, with a general text, for a database whose upgrade history FlexTool cannot read (it reads it again at each refresh). It has no **Dismiss**: it ends only when a repaired copy is in the database's place. **Copy repair command** copies the command that repairs this database; paste it into a terminal (PowerShell on Windows) and follow [Repairing a value list (W-0490)](terminal_workflow.md#repairing-a-value-list-w-0490). The repair tool writes a repaired copy and never changes the database itself. On Linux, paste the command before you close FlexTool: the copied text is lost when FlexTool exits.
62
+ - **Shipped defaults lost in an old upgrade**: an upgrade of this database before FlexTool 4.6.3 left some list-valued defaults empty ([W-0491](reference/warnings.md#w-0491)). Results can differ only in how storage nodes start and end (`storage_start_end_method`); the text says whether that applies. It has no **Dismiss** and opens the list by itself at the first two project opens; it ends only when the database holds the repair tool's record, so use the copy the tool writes in place of the database. **Copy repair command** works as above.
63
+ - **FlexTool cannot read this database file**: the data version or the frozen marker of a database could not be read. It goes away once FlexTool can read the file.
64
+ - **This database was upgraded** (one per database): FlexTool upgraded it to the current data version (see [Migration and frozen databases](#migration-and-frozen-databases)).
65
+ - **This project's solver settings were updated**: see [Solver options → On this computer](#solver-options-on-this-computer).
66
+ - **A newer FlexTool is available**: see [Update notifications](install_gui.md#update-notifications).
67
+
68
+ A red row in the **Input sources** list is a file FlexTool cannot use. When the list has a message about that database, the row's tooltip says so, and double-clicking the row (or pressing Enter on it) opens the list at that message.
69
+
70
+ Dismissals are kept per user in `gui_messages.json` in FlexTool's user settings folder (`~/.config/flextool/` on Linux, `%LOCALAPPDATA%\flextool\` on Windows, `~/Library/Application Support/flextool/` on macOS), never in a database. A database is known by its full path, so a copy of a database starts with no dismissals. To bring back every dismissed message, close FlexTool and delete that file.
71
+
47
72
  ## Input sources
48
73
 
49
74
  The **Input sources** panel lists every `.sqlite` and `.xlsx` file in the project's `input_sources/` directory plus any registered external references. Each input source contributes one or more scenarios.
@@ -62,14 +87,14 @@ Right-click a row for the same actions as the buttons. Column headers sort the l
62
87
 
63
88
  ### Migration and frozen databases
64
89
 
65
- When the list is refreshed, a `.sqlite` source older than this FlexTool (or at the current version but with an older SpineDB schema, e.g. after a `spinedb_api` update) is migrated to the current version: a source in `input_sources/` without asking (a safety copy, `<source>.premigration.bak`, is kept until the migration has finished and put back if it fails, so the source is either migrated or as it was; see [Migrate database schema](terminal_workflow.md#migrate-database-schema)), an external reference after asking whether to migrate it in place or copy it into the project first. Checking the version reads the file read-only, so nothing in the file changes before you agree. Adding scenarios to the execution list, or opening **Calibrate investments**, checks their sources again and migrates any that changed since the last refresh; FlexTool does not run a database that is not at the current version.
90
+ When the list is refreshed, a `.sqlite` source older than this FlexTool (or at the current version but with an older SpineDB schema, e.g. after a `spinedb_api` update) is migrated to the current version: a source in `input_sources/` without asking (a safety copy, `<source>.premigration.bak`, is kept until the migration has finished and put back if it fails, so the source is either migrated or as it was; see [Migrate database schema](terminal_workflow.md#migrate-database-schema)), an external reference after asking whether to upgrade it in place or copy it into the project first (**Upgrade in place**, **Copy into project and upgrade**, the default, or **Cancel**). Checking the version reads the file read-only, so nothing in the file changes before you agree. Adding scenarios to the execution list, or opening **Calibrate investments**, checks their sources again and migrates any that changed since the last refresh; FlexTool does not run a database that is not at the current version. After an upgrade, the [message list](#messages) has a "This database was upgraded" message for each upgraded database, with its data versions before and after; an upgrade that failed gets a box at once.
66
91
 
67
92
  A released model can be **frozen** so that it is never migrated in place without asking: right-click a `.sqlite` source → **Freeze database…** and give a label, e.g. `Reference case 1.0` (at most 170 characters). Only a database at the current version can be frozen. A frozen source shows ❄ in the status column; the tooltip shows the label, the version and the date it was frozen. **Unfreeze database** removes the marker. The same can be done in a terminal with `flextool-freeze` (see [Freeze a released database](terminal_workflow.md#freeze-a-released-database)).
68
93
 
69
94
  When a frozen source is older than this FlexTool (or has an older SpineDB schema), the refresh asks what to do with it. A frozen source newer than this FlexTool is left as it is; running it asks you to update FlexTool.
70
95
 
71
- - **Migrate a copy** (default): the copy, `input_sources/<name>_v<version>.sqlite`, is migrated and added as a new input source. It has its own source number, so its results go to new result folders. The copy is not frozen; it records the label, the old version and the SHA-256 of the frozen file it was made from. The frozen file stays unchanged and is not asked about again while the copy is there.
72
- - **Migrate in place**: after a second confirm, the frozen file itself is migrated. Its frozen marker is kept with the new version.
96
+ - **Upgrade a copy** (default): the copy, `input_sources/<name>_v<version>.sqlite`, is migrated and added as a new input source. It has its own source number, so its results go to new result folders. The copy is not frozen; it records the label, the old version and the SHA-256 of the frozen file it was made from. The frozen file stays unchanged and is not asked about again while the copy is there.
97
+ - **Upgrade in place**: after a second confirm, the frozen file itself is migrated. Its frozen marker is kept with the new version.
73
98
  - **Cancel**: the source is not migrated. Until the project is reopened (or FlexTool restarted) it shows ❄✗ (frozen, older version), its scenarios are not listed and it is not asked about again; right-click → **Migrate frozen database…** asks again.
74
99
 
75
100
  Editing a frozen database in the database editor is not prevented; a frozen database is protected from migration only.
@@ -54,7 +54,7 @@ Large systems that naturally split into regions (e.g. an interconnected pan-cont
54
54
 
55
55
  Set up the regions in the database:
56
56
 
57
- - create one `group` per region, list its `node` members via `group__node`
57
+ - create one `group` per region, list its `node` members via `group__node`; units and connections belong to the region of their nodes (listing them with `group__unit` / `group__connection` is optional). A unit that is not listed and converts through the unit itself (several inputs or outputs, or one input and one output with a `piecewise_linear_efficiency` curve of two or more segments) must have all its nodes in one region. A unit with one input and one output and a single efficiency (one direct flow) is cut between two regions like a connection, unless it has online variables (a `startup_method`) or reserves: then it is refused, as such a connection is. A one-variable connection (`no_losses_no_variable_cost`) between regions works in both directions; a DC power-flow line (`dc_power_flow_with_angles`) between regions is refused: put both its nodes in one region
58
58
  - set the group parameter `decomposition_method` to *benders_regional* on each region group
59
59
  - declare at least two such region groups in the active scenario
60
60
 
@@ -176,7 +176,7 @@ The dialog has an **Install Spine Toolbox** checkbox. Spine Toolbox is a large,
176
176
 
177
177
  ### Update notifications
178
178
 
179
- By default FlexTool makes one lightweight check at startup — against PyPI, or your git remote for a git checkout — for a newer version. When one is available the **Update FlexTool…** button is highlighted. The check fails silently if you are offline or the network is restricted.
179
+ By default FlexTool makes one lightweight check at startup — against PyPI, or your git remote for a git checkout — for a newer version. When one is available the **Update FlexTool…** button is highlighted. For a FlexTool installed from PyPI, the [message list](flextool_gui_interface.md#messages) also shows "A newer FlexTool is available" until you update or dismiss it. The check fails silently if you are offline or the network is restricted.
180
180
 
181
181
  To disable it, untick **Check for updates on startup** in the Update FlexTool dialog (the choice is remembered), or set the environment variable `FLEXTOOL_NO_UPDATE_CHECK=1` to suppress the check entirely.
182
182
 
@@ -74,7 +74,7 @@ The margin of a *relative_of_peak_demand* group is `capacity_margin_relative` ×
74
74
 
75
75
  With representative periods, the row holds at the sampled time steps only, and the storage that counts is the storage of the sampled days: force-include the peak days. Over a coarse time step (`new_stepduration`) the row may be averaged (see below).
76
76
 
77
- Under spatial Benders decomposition (`decomposition_method` *benders_regional*), a capacity margin group (and an inertia or non-synchronous group) with nodes in more than one region is an error: each region would have to hold the whole margin. Use one group per region. The same holds for a group investment, retirement or cumulative-capacity limit with a value set (a method alone makes no limit): a minimum over entities of more than one region is an error, and so is a maximum (each region could use all of it), except a maximum of 0, which splits exactly. A flow limit of a flowGroup, or a user constraint's `constraint_flow_coeff`, on a connection between two regions is an error too: the decomposition replaces that connection with import and export flows in each region, which neither sees.
77
+ Under spatial Benders decomposition (`decomposition_method` *benders_regional*), a capacity margin group (and an inertia or non-synchronous group) with nodes in more than one region is an error: each region would have to hold the whole margin. Use one group per region. The same holds for a group investment, retirement or cumulative-capacity limit with a value set (a method alone makes no limit): a minimum over entities of more than one region is an error, and so is a maximum (each region could use all of it), except a maximum of 0, which splits exactly. A flow limit of a flowGroup, or a user constraint's `constraint_flow_coeff`, on a connection between two regions is an error too: the decomposition replaces that connection with import and export flows in each region, which neither sees. A unit whose nodes are in more than one region, that no region group lists and that converts through the unit itself (several inputs or outputs, or one input and one output with a `piecewise_linear_efficiency` curve of two or more segments), is an error as well; put its nodes in one region. A unit with one input and one output and a single efficiency (one direct flow) between two regions is cut like a connection, except with online variables (a `startup_method`) or reserves, which are an error, as they are on a connection between regions. A DC power-flow line (a connection between two nodes of a `dc_power_flow_with_angles` group) between two regions, or between a region and the master, is an error: the decomposition cannot carry the voltage angles across the regions. Put both nodes of the line in one region, or take the nodes out of the `dc_power_flow_with_angles` group. A one-variable connection (`no_losses_no_variable_cost`) between regions works in both directions.
78
78
 
79
79
  ## CO2 costs and limits
80
80
 
@@ -85,6 +85,7 @@ After `pip install -e .` or `pip install .`, these commands are available direct
85
85
  | `flextool-read-old` | `flextool.cli.cmd_read_old_flextool:main` |
86
86
  | `flextool-migrate-database` | `flextool.cli.cmd_migrate_database:main` |
87
87
  | `flextool-freeze` | `flextool.cli.cmd_freeze_database:main` |
88
+ | `flextool-repair-value-list` | `flextool.cli.cmd_repair_value_list:main` (repair a database that warning W-0490 names, and restore shipped defaults an old upgrade left empty: [Repairing a value list](#repairing-a-value-list-w-0490)) |
88
89
  | `flextool-project` | `flextool.cli.cmd_project_package:main` |
89
90
  | `flextool-time-runs` | `flextool.cli.cmd_time_runs:main` |
90
91
  | `flextool-trust-workspace` | `flextool.cli.cmd_trust_workspace:main` (trust a workspace's or project's solver option files on this computer: [Which option folders are trusted](solvers/index.md#which-option-folders-are-trusted)) |
@@ -522,6 +523,61 @@ flextool-freeze input.sqlite --unfreeze
522
523
 
523
524
  Freezing writes into the file, so take the SHA-256 of the released file after freezing it. Editing a frozen database (in the database editor, or by importing data into it) is not prevented.
524
525
 
526
+ ### Repairing a value list (W-0490)
527
+
528
+ Warning [W-0490](reference/warnings.md#w-0490) says that an old Spine library may have overwritten the `not_allowed` member of the `invest_methods` value list when the database was upgraded (with it, the class defaults and values that were `not_allowed` now read `cumulative_limits`, which lets those entities invest without limit). `flextool-repair-value-list` repairs such a database. In the same run it also restores list-valued defaults (such as `conversion_method` or `solve_mode`) that an upgrade before FlexTool 4.6.3 left empty.
529
+
530
+ ```bash
531
+ flextool-repair-value-list "C:\models\my_model.sqlite"
532
+ # or, with the Python of FlexTool's environment:
533
+ python -P -m flextool.cli.cmd_repair_value_list "C:\models\my_model.sqlite"
534
+ ```
535
+
536
+ In PowerShell, quote with single quotes: `flextool-repair-value-list 'C:\models\my_model.sqlite'` (a full path to `python.exe` needs `&` in front: `& 'C:\FlexTool\venv\Scripts\python.exe' -P -m flextool.cli.cmd_repair_value_list 'C:\models\my_model.sqlite'`). In Command Prompt, a path that contains `%NAME%` of an existing environment variable is expanded by cmd even inside quotes; use PowerShell for such a path.
537
+
538
+ **The database itself is never changed.** The tool works on a private copy and writes the repaired copy `<name>_repaired.sqlite` next to the database (`--output PATH` for another name; an existing file is never overwritten), with two side files: `<name>_repaired.sqlite.value_list_repair.csv` (the answers it applied) and `<name>_repaired.sqlite.value_list_repair.txt` (a report of every change). Close Spine Toolbox and the FlexTool window before running it on a database they have open.
539
+
540
+ **Questions.** The tool asks one question per group of similar items, and **Enter** takes the suggestion:
541
+
542
+ - a **class default** (`invest_method` of unit, connection and node, or an empty shipped default): the suggestion is FlexTool's shipped default, which is strongly recommended (a missing or different class default can lead to unwanted behaviour);
543
+ - a **value** saved before the upgrade that read `not_allowed`: the suggestion is `not_allowed` (marked "certain");
544
+ - a **value** saved after the upgrade: there is no suggestion, because nobody can tell from the file whether `cumulative_limits` was meant. Check it against your notes or Excel input;
545
+ - a **storage node** (restoring empty defaults, see below): no answer is recommended.
546
+
547
+ The keys: `k` keeps the current value, `set:<member>` sets that member (a number works too where the question lists the members), `x` skips, `e` answers each item of a group one by one, `q` quits. A summary and a confirmation come before anything is written. If you quit, the answers so far go to `<name>_repaired.sqlite.value_list_answers.csv` (next to the database, or in the current folder if that folder cannot be written): finish them there and run the tool with `--answers` (see below).
548
+
549
+ **Answering in a file (dry run, answers, apply).** Without a terminal, or to think the answers over:
550
+
551
+ ```bash
552
+ flextool-repair-value-list my_model.sqlite --dry-run --write-answers answers.csv
553
+ # fill in the "answer" column: keep, set:<member> or skip (empty = skip)
554
+ flextool-repair-value-list my_model.sqlite --answers answers.csv
555
+ ```
556
+
557
+ The file is UTF-8 with `,` between columns. Excel with a Finnish (or other `;`) locale opens it as one column on a double-click; open it instead from Excel's **Data → From Text/CSV** (choose "65001: Unicode (UTF-8)" and the comma delimiter, then **Load**), or edit it in any text editor. Save it as **CSV UTF-8**: the tool reads `,` and `;`. Edit only the `answer` column. The `file_key` column ties the file to this database: a file made for another copy (even a copy of the same database with more changes) is refused. `--accept-certain` answers only the items marked "certain" with their suggestion; class defaults and storage questions are always asked.
558
+
559
+ **An older copy as evidence.** If you have a copy of the database from before the upgrade (data version 21 or older), add `--archive "<old copy>"`: where the old copy proves what a value was, the tool marks it "certain". A copy the tool cannot use is refused, and the message says why.
560
+
561
+ **Exit codes.**
562
+
563
+ | Code | Meaning |
564
+ |---|---|
565
+ | 0 | The repaired copy was written (with or without a repair record), or there was nothing to do, or the file has no migration history (W-0490 does not apply), or the copy was already repaired, or a dry run finished |
566
+ | 1 | You quit (the answers so far are in the answers file) or did not confirm `--checked-by-hand`, or the file, the answers file, the archive or `--checked-by-hand` was refused; the message says why |
567
+ | 2 | The command line was wrong |
568
+ | 3 | Answers are needed, but there is no terminal and no `--answers` file (the message gives the three steps above), or `--checked-by-hand` without a terminal and without `--yes` |
569
+ | 4 | The list matches no pattern the tool knows: nothing was written; use the checklist of [W-0490](reference/warnings.md#w-0490), then `--checked-by-hand` (below) |
570
+
571
+ **The repair record ends the warning.** When every item has an answer (`keep` counts as an answer; `skip` does not), the copy holds a record of the repair, and W-0490 and the GUI's "Please check this database" message stop for that copy. A run with a skipped item still writes the other answers, but no record: the warning stays until every item has an answer. Running the tool again on a repaired copy asks nothing and lists the items you kept. To change the decisions, run it again on the original database. A database you fixed by hand (for example by renaming the member back to `not_allowed`) needs one tool run to record the repair; it asks only about what the hand fix does not settle.
572
+
573
+ **A list the tool cannot read (exit code 4).** First go through the checklist of [W-0490](reference/warnings.md#w-0490) on the database. If the tool still gives exit code 4, run it with `--checked-by-hand`: you confirm that you have checked every item of the checklist by hand (type `yes` at the question; without a terminal, add `--yes`). The tool then changes no value for W-0490: it only writes the repair record into the repaired copy, so W-0490 ends for that copy. Empty shipped defaults (below) are still asked about as usual. The option is refused for a database the tool can read (run it without the option), while the list still lacks a member (steps 2-3), and for a database with several W-0490 sessions (please report such a file).
574
+
575
+ **Swapping the repaired copy in.** Check the report, run a scenario on the repaired copy and compare the investments with earlier results. Then close Spine Toolbox and the FlexTool window, move the original out of the way (keep it as the backup) and rename `<name>_repaired.sqlite` to the original name. In a FlexTool GUI project the database is in the project's `input_sources/` folder, so the repaired copy appears there as one more input source until you swap it in; keep the backup outside `input_sources/`, or it is listed as an input source too.
576
+
577
+ **Restoring empty shipped defaults.** An upgrade with FlexTool before 4.6.3 could leave list-valued class defaults (such as `conversion_method`, `invest_method`, `solve_mode`) empty. The tool offers FlexTool's shipped default for each empty one (Enter = restore). This changes no result: FlexTool already uses the shipped default when none is stored. One effect of that old upgrade is different: a storage node that relied on the old `storage_start_end_method` default `fix_start` and had its own start value kept its start fixed in an unaffected database, but this database leaves it free. The tool lists such nodes and asks, for each, whether to fix the start (`set:fix_start`) or keep it free (`k`). **No answer is recommended**: many models bind storage with `storage_binding_method` instead of fixing the start, so check how your model is meant to work. Until every storage question has an answer, the default of `storage_start_end_method` stays empty (the summary says so) and the tool asks again at its next run. These defaults have their own repair record; a default emptied again later is asked again. Until a copy holds that record, each run and the GUI give note [W-0491](reference/warnings.md#w-0491) for the database (the GUI message "Shipped defaults lost in an old upgrade" has no Dismiss); only the record ends it, also when you keep some defaults empty (`k`).
578
+
579
+ **Limits.** Removing the database's metadata (for example with a Spine Toolbox purge) removes the repair record, and the warning comes back: run the tool again. A database whose `invest_methods` list was cut down on purpose (a shipped member deleted) cannot get a repair record, so the warning stays. The tool repairs `.sqlite` files only.
580
+
525
581
  ### Sharing a project
526
582
 
527
583
  `flextool-project` writes a project to one file, checks such a file and imports it (the FlexTool window does the same from **Manage projects… → Export… / Import…**).
@@ -0,0 +1,403 @@
1
+ """``flextool-repair-value-list``: repair a database that W-0490 names, and restore lost shipped defaults (W-0491).
2
+
3
+ The tool never changes the database it is given: it writes a repaired copy (default ``<stem>_repaired.sqlite`` next
4
+ to it) with two side files, the applied answers (``.value_list_repair.csv``, replayable with ``--answers``) and a
5
+ report (``.value_list_repair.txt``). The work is done by ``flextool.update_flextool.value_list_*`` and
6
+ ``list_default_restore``; this module is the command line: one question per similarity group (``e`` answers each
7
+ item of the group), a summary and a confirm, the answers-file route when there is no terminal, and the exit codes:
8
+
9
+ ==== ==========================================================================================================
10
+ 0 copy written (with or without a record); nothing to do; W-0490 does not apply; rerun on a repaired copy;
11
+ dry run finished
12
+ 1 the user quit (a partial answers file is written) or did not confirm ``--checked-by-hand``; newer data
13
+ version or SpineDB schema; archive refused; answers file refused; output exists or is the source;
14
+ ``--checked-by-hand`` refused; verify failed; any other error
15
+ 2 usage error (argparse)
16
+ 3 answers needed, but no terminal and no ``--answers`` (or ``--checked-by-hand`` without ``--yes``)
17
+ 4 the list matches no known pattern (``unclear``): nothing written, use the W-0490 checklist
18
+ ==== ==========================================================================================================
19
+
20
+ :func:`repair_command` builds the command line the GUI copies and the warning texts show. The module imports only
21
+ the standard library and ``flextool._child_python`` at top level, so the GUI can import it cheaply.
22
+
23
+ TODO(v5.0.0): remove with W-0490 (see ``update_flextool/value_list_history``), except the part B route.
24
+ """
25
+ from __future__ import annotations
26
+
27
+ import argparse
28
+ import os
29
+ import shlex
30
+ import sys
31
+ import tempfile
32
+ from pathlib import Path
33
+
34
+ from flextool._child_python import python_module_argv
35
+
36
+ MODULE = "flextool.cli.cmd_repair_value_list"
37
+ PROG = "flextool-repair-value-list"
38
+ EXIT_OK, EXIT_ERROR, EXIT_NEEDS_ANSWERS, EXIT_UNCLEAR = 0, 1, 3, 4
39
+ QUIT_SUFFIX = ".value_list_answers.csv"
40
+ NOTHING = "no value-list overwrite and no empty shipped default found; nothing to do"
41
+ NO_NUMBER = ("A number works only where the members are listed: type set:<member>, or e to answer each item "
42
+ "with its own list.")
43
+ #: The characters PowerShell reads as a single quote (doubled inside a single-quoted string).
44
+ _PS_QUOTES = "'\u2018\u2019\u201a\u201b"
45
+ BY_HAND = ("--checked-by-hand: you confirm that you have gone through every item of the W-0490 checklist by "
46
+ "hand. The tool changes no value for W-0490; it only records the repair in the copy, which ends W-0490 "
47
+ "for that copy.")
48
+ BY_HAND_PROMPT = "Type yes if you have checked every item in the checklist by hand: "
49
+ BY_HAND_NO_TTY = "There is no terminal to confirm in: add --yes to confirm that you have checked every item by hand."
50
+ NO_RECORD = "No repair record was written: the warning stays until every item has an answer."
51
+
52
+
53
+ def repair_command(db_path: str | Path, *, python: str | None = None, shell: str | None = None) -> str:
54
+ """The command that runs this tool on *db_path* (made absolute), as one line for *shell*: ``"posix"``
55
+ (``shlex``), ``"cmd"`` (every argument in double quotes, so ``&``, ``^``, ``|``, ``<`` and ``>`` stay text; a
56
+ Windows path cannot hold ``"``, and cmd cannot escape ``%`` inside quotes) or ``"powershell"`` (``& 'arg' ...``,
57
+ each single-quote character doubled: PowerShell reads ``'`` and U+2018, U+2019, U+201A, U+201B as single
58
+ quotes). Default: ``"cmd"`` on Windows, ``"posix"`` elsewhere. *python* defaults to
59
+ :data:`sys.executable`; a ``pythonw.exe`` is swapped for the ``python.exe`` next to it (a pythonw process has no
60
+ console, so it cannot ask)."""
61
+ exe = python or sys.executable # kept as given: Path() turns "/" into a backslash on Windows
62
+ if Path(exe).name.lower() == "pythonw.exe" and (console := Path(exe).with_name("python.exe")).exists():
63
+ exe = str(console)
64
+ argv = python_module_argv(MODULE, str(Path(db_path).resolve()), python=exe)
65
+ shell = shell or ("cmd" if os.name == "nt" else "posix")
66
+ if shell == "posix":
67
+ return shlex.join(argv)
68
+ if shell == "cmd":
69
+ return " ".join(f'"{a}"' for a in argv)
70
+ if shell == "powershell":
71
+ return "& " + " ".join("'" + "".join(c * 2 if c in _PS_QUOTES else c for c in a) + "'" for a in argv)
72
+ raise ValueError(f"unknown shell {shell!r} (posix, cmd or powershell)")
73
+
74
+
75
+ def build_parser() -> argparse.ArgumentParser:
76
+ p = argparse.ArgumentParser(
77
+ prog=PROG, description="Repair a FlexTool database whose invest_methods value list an old Spine library "
78
+ "overwrote (W-0490), and restore shipped defaults an old upgrade left empty (W-0491). The database itself "
79
+ "is never changed: a repaired copy is written next to it.")
80
+ p.add_argument("database", help="the .sqlite file")
81
+ p.add_argument("--output", help="the repaired copy (default: <name>_repaired.sqlite next to the database)")
82
+ p.add_argument("--archive", help="an older copy of the database (data version below 22) to use as evidence")
83
+ p.add_argument("--dry-run", action="store_true", help="show what would be asked and written; write nothing")
84
+ p.add_argument("--write-answers", metavar="FILE.csv", help="with --dry-run: write the questions to an answers "
85
+ "file to fill in (answer column: keep, set:<member> or skip)")
86
+ p.add_argument("--answers", metavar="FILE.csv", help="take the answers from this file (no questions)")
87
+ p.add_argument("--accept-certain", action="store_true", help="answer the items the evidence makes certain with "
88
+ "their suggestion (class defaults and storage questions are always asked)")
89
+ p.add_argument("--checked-by-hand", action="store_true", help="for a database this tool cannot read (exit "
90
+ "code 4): you have gone through the W-0490 checklist by hand; record the repair in the copy "
91
+ "(no value is changed for W-0490)")
92
+ p.add_argument("--yes", action="store_true", help="with --checked-by-hand: confirm it without being asked")
93
+ return p
94
+
95
+
96
+ class _Quit(Exception):
97
+ pass
98
+
99
+
100
+ def _interactive() -> bool:
101
+ return bool(sys.stdin and sys.stdin.isatty() and sys.stdout and sys.stdout.isatty())
102
+
103
+
104
+ def _where(s) -> str:
105
+ return f" {s.entity} [{s.alternative}]" if s.entity else " (class default)"
106
+
107
+
108
+ def _line(s, answer=None) -> str:
109
+ then = f"answer {answer.text()}" if answer else (f"suggested {s.suggestion}" if s.suggestion else "no suggestion")
110
+ return f" {s.item} {s.cls}.{s.parameter}{_where(s)}: {s.label}; {then}"
111
+
112
+
113
+ def _show_unclear(a) -> None:
114
+ from flextool.update_flextool.frozen import _connect_ro
115
+
116
+ print(f"The invest_methods list matches no pattern this tool knows ({a.reason}). Nothing was written.")
117
+ for m in a.members:
118
+ print(f" list_value {m.id}: index {m.index}, {m.value!r}, commit {m.commit}")
119
+ if a.finding is not None:
120
+ con = _connect_ro(a.path)
121
+ try:
122
+ for row in con.execute('SELECT id, CAST(date AS TEXT), comment FROM "commit" WHERE id >= ? AND id <= ? '
123
+ "ORDER BY id", (a.finding.start_commit, a.finding.end_commit)):
124
+ print(" commit {}: {} {}".format(*row))
125
+ finally:
126
+ con.close()
127
+ print("Use the manual checklist of W-0490 in the FlexTool documentation (warnings reference). If the tool "
128
+ "still cannot read the list after it, run it again with --checked-by-hand to record the repair.")
129
+
130
+
131
+ def _parse(text: str, s, allowed: tuple[str, ...]):
132
+ """The prompt's answer for *s*: an ``Answer``, ``"each"``, or ``None`` (ask again). Raises ``_Quit``."""
133
+ from flextool.update_flextool import value_list_answers as va
134
+
135
+ word = text.strip()
136
+ low = word.lower()
137
+ if low in ("q", "quit"):
138
+ raise _Quit
139
+ if low in ("e", "each"):
140
+ return "each"
141
+ if not low:
142
+ return va.check_answer(s, s.suggestion, allowed) if s.suggestion else None
143
+ word = {"k": "keep", "x": "skip"}.get(low, word)
144
+ if word.isdigit() and 1 <= int(word) <= len(allowed):
145
+ word = f"set:{allowed[int(word) - 1]}"
146
+ return va.check_answer(s, word, allowed)
147
+
148
+
149
+ def _ask_group(items, choices: dict, ask, group: bool) -> dict:
150
+ """Ask one question for *items* (one similarity group, or one item); returns ``{item: Answer}``."""
151
+ from flextool.update_flextool import value_list_answers as va
152
+
153
+ s = items[0]
154
+ same = all(choices[t.item] == choices[s.item] for t in items)
155
+ if len(items) == 1:
156
+ print(f"\n{s.kind} {s.cls}.{s.parameter}{_where(s)}: {s.label}\n {s.evidence}\n {s.context.text()}"
157
+ + (f"\n {s.archive_note}" if s.archive_note else ""))
158
+ else:
159
+ one = len({t.evidence for t in items}) == 1
160
+ print(f"\n{len(items)} items, {s.kind}: {s.label}" + (f"\n {s.evidence}" if one else ""))
161
+ for t in items[:8]:
162
+ print(f" - {t.cls}.{t.parameter}{_where(t)}: " + "; ".join(
163
+ x for x in ("" if one else t.evidence, t.context.text(), t.archive_note) if x))
164
+ if len(items) > 8:
165
+ print(f" ... and {len(items) - 8} more")
166
+ if s.reason:
167
+ print(f" {s.reason}")
168
+ members = choices[s.item] if same else ()
169
+ if members:
170
+ print(" members: " + ", ".join(f"{i} = {m}" for i, m in enumerate(members, 1)))
171
+ enter = "Enter = each item's suggestion" if len({t.suggestion for t in items}) > 1 and all(
172
+ t.suggestion for t in items) else (f"Enter = {s.suggestion}" if s.suggestion and all(
173
+ t.suggestion == s.suggestion for t in items) else "")
174
+ keep = s.keep_text if len(items) == 1 else "keep each as it is"
175
+ opts = [o for o in (enter, f"k = {keep}", "a number = set that member" if members else "", "x = skip",
176
+ "e = answer each" if group and len(items) > 1 else "", "q = quit") if o]
177
+ while True:
178
+ text = ask(f" [{'; '.join(opts)}] > ")
179
+ if text.strip().isdigit() and not members: # each item would map the number to its own list
180
+ print(f" {NO_NUMBER}")
181
+ continue
182
+ try:
183
+ got = [_parse(text, t, choices[t.item]) for t in items]
184
+ except va.AnswersError as exc:
185
+ print(f" {exc}")
186
+ continue
187
+ if "each" in got and group and len(items) > 1:
188
+ out = {}
189
+ for t in items:
190
+ out |= _ask_group([t], choices, ask, False)
191
+ return out
192
+ if all(isinstance(g, va.Answer) for g in got):
193
+ return {t.item: g for t, g in zip(items, got)}
194
+ print(" No answer is suggested here: please choose." if s.kind != "storage" else f" {s.reason}")
195
+
196
+
197
+ def _summary(plan, output: Path) -> None:
198
+ from flextool.update_flextool import value_list_answers as va
199
+
200
+ sets = plan.sets
201
+ keeps = [d for d in plan.decisions if d.action == "keep"]
202
+ left = [d for d in plan.decisions if d.answer is None or d.action == "skip"]
203
+ print(f"\nSummary: {len(sets)} set, {len(keeps)} kept, {len(left)} left as they are (skipped or not answered)"
204
+ + (f"; restores {', '.join(plan.restore)} in invest_methods" if plan.restore else ""))
205
+ for d in sets:
206
+ print(f" {d.suspect.cls}.{d.suspect.parameter}{_where(d.suspect)}: {d.suspect.current or 'empty'} -> "
207
+ f"{d.answer.member}")
208
+ for item, why in plan.stale:
209
+ print(f" stale (not applied): {item}: {why}")
210
+ for w in plan.warnings:
211
+ print(f" warning: {w}")
212
+ if plan.held:
213
+ print(f" {va.STORAGE_HELD}")
214
+ print(f" repair record: {'yes' if plan.part_a_record or plan.part_b_record else 'no'}; copy: {output}")
215
+
216
+
217
+ def _quit_file(output: Path, suspects, key: str, answers: dict) -> Path:
218
+ from flextool.update_flextool import value_list_answers as va
219
+
220
+ for folder in (output.parent, Path.cwd()):
221
+ path = va.free_path(folder / (output.name + QUIT_SUFFIX))
222
+ try:
223
+ va.write_answers(path, suspects, key, answers)
224
+ return path
225
+ except OSError:
226
+ continue
227
+ raise OSError("the partial answers could not be written")
228
+
229
+
230
+ def main(argv: list[str] | None = None, *, ask=None) -> int:
231
+ """Run the tool; *ask* (a callable like :func:`input`) makes it interactive without a terminal (tests)."""
232
+ args = build_parser().parse_args(argv)
233
+ if args.write_answers and not args.dry_run:
234
+ build_parser().error("--write-answers needs --dry-run")
235
+ if args.yes and not args.checked_by_hand:
236
+ build_parser().error("--yes needs --checked-by-hand")
237
+ if args.checked_by_hand and args.archive:
238
+ build_parser().error("--archive is evidence for the tool's own questions; --checked-by-hand asks none")
239
+ from spinedb_api.exception import SpineDBAPIError
240
+
241
+ from flextool.update_flextool import value_list_answers as va
242
+ from flextool.update_flextool import value_list_repair as vr
243
+
244
+ try:
245
+ return _run(args, ask if ask is not None else (input if _interactive() else None))
246
+ except (vr.RepairError, va.AnswersError, OSError) as exc:
247
+ print(f"{PROG}: {exc}", file=sys.stderr)
248
+ except SpineDBAPIError as exc:
249
+ print(f"{PROG}: the Spine library refused the database ({exc}); nothing was written.", file=sys.stderr)
250
+ except KeyboardInterrupt:
251
+ print(f"{PROG}: interrupted; nothing was written.", file=sys.stderr)
252
+ return EXIT_ERROR
253
+
254
+
255
+ def _run(args, ask) -> int:
256
+ from spinedb_api.exception import SpineDBVersionError
257
+
258
+ from flextool.update_flextool import value_list_repair as vr
259
+ from flextool.update_flextool import value_list_write as vw
260
+ from flextool.update_flextool.frozen import sqlite_path_from
261
+
262
+ source = sqlite_path_from(args.database)
263
+ if source is None or not source.is_file():
264
+ raise vr.RepairError(f"No sqlite file at {args.database}.")
265
+ output = Path(args.output) if args.output else vw.default_output(source)
266
+ if args.dry_run:
267
+ if output.resolve() == source.resolve():
268
+ raise vr.RepairError("The repaired copy must be a new file, not the original.")
269
+ else:
270
+ vw.check_output(source, output)
271
+ if args.write_answers and Path(args.write_answers).exists():
272
+ raise vr.RepairError(f"{args.write_answers} exists already; give another name (it is never overwritten).")
273
+ vw.check_schema(source)
274
+ with tempfile.TemporaryDirectory(prefix="flextool-repair-") as tmp:
275
+ snap = vr.snapshot(source, tmp if args.dry_run else output.parent, name=output.name)
276
+ try:
277
+ return _work(args, ask, source, output, vr.analyse(snap))
278
+ except SpineDBVersionError as exc:
279
+ raise vr.RepairError(vr.schema_outdated_message(source.name)) from exc
280
+ finally:
281
+ vw.discard(snap) # a no-op once the copy is published (the snapshot became the output)
282
+
283
+
284
+ def _work(args, ask, source: Path, output: Path, a) -> int:
285
+ from flextool.update_flextool import value_list_answers as va
286
+ from flextool.update_flextool import value_list_archive as varc
287
+ from flextool.update_flextool import value_list_history as vlh
288
+ from flextool.update_flextool import value_list_repair as vr
289
+ from flextool.update_flextool import value_list_suspects as vs
290
+ from flextool.update_flextool import value_list_write as vw
291
+
292
+ if args.checked_by_hand and a.state != vr.UNCLEAR:
293
+ raise vr.RepairError(vr.by_hand_refusal(a))
294
+ by_hand = False
295
+ if a.state == vr.UNCLEAR and (a.reason == vr.SEVERAL or not vlh.record_ends(a.finding, a.path)):
296
+ if not args.checked_by_hand:
297
+ _show_unclear(a)
298
+ return EXIT_UNCLEAR
299
+ if why := vr.by_hand_refusal(a):
300
+ raise vr.RepairError(why)
301
+ print(f"W-0490: state unclear ({a.reason}).\n{BY_HAND}")
302
+ if not (args.yes or args.dry_run):
303
+ if ask is None:
304
+ print(BY_HAND_NO_TTY)
305
+ return EXIT_NEEDS_ANSWERS
306
+ try:
307
+ confirmed = ask(BY_HAND_PROMPT).strip().lower() == "yes"
308
+ except (EOFError, KeyboardInterrupt):
309
+ confirmed = False
310
+ if not confirmed:
311
+ print("Not confirmed: nothing was written.")
312
+ return EXIT_ERROR
313
+ by_hand = True
314
+ elif a.state == vr.UNCLEAR:
315
+ print("W-0490: state unclear.")
316
+ elif a.state == vr.NO_HISTORY:
317
+ print("W-0490 does not apply to this file (it has no upgrade history).")
318
+ elif a.state == vr.NO_FINDING:
319
+ print("No value-list overwrite (W-0490) in this file.")
320
+ else:
321
+ unknown = vs.lost_unknown(a)
322
+ print(f"W-0490: state {a.state}" + (f", {vs.UNKNOWN} ({unknown})" if unknown else (
323
+ f", lost member {a.lost}" if a.lost else "")))
324
+ if line := vr.part_b_line(a):
325
+ print(line)
326
+ found = vr.all_suspects(a)
327
+ archive = None
328
+ if args.archive:
329
+ archive = varc.read_archive(args.archive, a)
330
+ if archive.refused:
331
+ raise vr.RepairError(f"The archive is refused: {archive.reason}.")
332
+ if archive.reason:
333
+ print(f"Archive: {archive.reason}")
334
+ found = varc.apply_archive(a, found, archive)
335
+ prev = vw.previous_repair(a, found)
336
+ for done in (prev.part_a, prev.part_b):
337
+ if done:
338
+ print(f"This copy was {done}.")
339
+ for s in prev.kept:
340
+ print(f" kept:{_where(s)} {s.cls}.{s.parameter}: {s.keep_text}")
341
+ suspects = prev.suspects
342
+ if not suspects and not by_hand and (prev.part_a or prev.part_b or a.state in (vr.NO_HISTORY, vr.NO_FINDING)):
343
+ if not (prev.part_a or prev.part_b):
344
+ print(NOTHING if not vr.part_b_line(a) else "Nothing to do for W-0490.")
345
+ return EXIT_OK
346
+ key, answers, stale, warnings = va.file_key(a), {}, (), ()
347
+ if args.answers:
348
+ read = va.read_answers(args.answers, a, suspects)
349
+ answers, stale, warnings = read.answers, read.stale, read.warnings
350
+ if args.accept_certain:
351
+ answers = va.accept_certain(suspects) | answers
352
+ stale_items = {item for item, _ in stale}
353
+ needed = [s for s in suspects if s.item not in answers and s.item not in stale_items]
354
+ if args.dry_run:
355
+ print(f"Dry run: {len(suspects)} item(s); nothing was written.")
356
+ for s in suspects:
357
+ print(_line(s, answers.get(s.item)))
358
+ if args.write_answers:
359
+ va.write_answers(args.write_answers, suspects, key, answers)
360
+ print(f"Answers file: {args.write_answers} (fill in the answer column, then run with --answers).")
361
+ return EXIT_OK
362
+ if needed and not args.answers:
363
+ if ask is None:
364
+ print(f"{len(needed)} item(s) need an answer, but there is no terminal to ask in:")
365
+ for s in needed:
366
+ print(_line(s))
367
+ db = shlex.quote(str(source)) if os.name != "nt" else f'"{source}"'
368
+ print(f"Answer them in a file:\n 1. {PROG} {db} --dry-run --write-answers answers.csv\n 2. fill in "
369
+ f"the answer column (keep, set:<member> or skip)\n 3. {PROG} {db} --answers answers.csv")
370
+ return EXIT_NEEDS_ANSWERS
371
+ choices = va.choices(a, suspects)
372
+ try:
373
+ for g in vs.groups(needed):
374
+ answers |= _ask_group(list(g.suspects), choices, ask, True)
375
+ except (_Quit, EOFError, KeyboardInterrupt):
376
+ return _quit(output, suspects, key, answers)
377
+ plan = va.make_plan(a, suspects, answers, stale=stale, warnings=warnings, key=key, checked_by_hand=by_hand)
378
+ if ask is not None:
379
+ _summary(plan, output)
380
+ try:
381
+ if ask(f"Write to {output}? [y/N] ").strip().lower() not in ("y", "yes"):
382
+ raise _Quit
383
+ except (_Quit, EOFError, KeyboardInterrupt):
384
+ return _quit(output, suspects, key, answers)
385
+ w = vw.write_copy(a, plan, output, source=source, archive=archive, previous=prev)
386
+ for line in w.lines:
387
+ print(f" {line}")
388
+ print(f"Repaired copy: {w.output}\n answers: {w.answers}\n report: {w.report}")
389
+ if not (w.part_a_record or w.part_b_record) and any(d.answer is None or d.action == va.SKIP
390
+ for d in plan.decisions):
391
+ print(NO_RECORD)
392
+ return EXIT_OK
393
+
394
+
395
+ def _quit(output: Path, suspects, key: str, answers: dict) -> int:
396
+ path = _quit_file(output, suspects, key, answers)
397
+ print(f"\nQuit: nothing was written to a database. The answers so far are in {path} (finish it and run with "
398
+ "--answers).")
399
+ return EXIT_ERROR
400
+
401
+
402
+ if __name__ == "__main__":
403
+ sys.exit(main())
@@ -18,8 +18,8 @@ each entity of a change once per run, so rolls and repeated solves of the same r
18
18
  once-per-run scope.
19
19
 
20
20
  ``gui_solver_defaults`` is not a database change: its marker is the ``solver_settings_revision`` of a GUI
21
- project's settings.yaml, and the GUI shows the notice once when it updates an older file
22
- (``flextool.gui.settings_io``).
21
+ project's settings.yaml; when the GUI updates an older file it prints the notice once and lists it in its message
22
+ list until dismissed (``flextool.gui.settings_io``).
23
23
  """
24
24
  from __future__ import annotations
25
25
 
@@ -101,8 +101,8 @@ BEHAVIOUR_CHANGES: dict[str, BehaviourChange] = {
101
101
  "solve; the GUI no longer has a MIP-gap setting). Results of MIP solves (integer "
102
102
  "investments, online variables) can change within the gap; an LP keeps its optimal "
103
103
  "objective value."),
104
- silence=("This notice is shown once. To keep the old behaviour, choose presolve 'Choose' in the "
105
- "Solver options dialog and set solver_mip_gap on the solves in the database."),
104
+ silence=("To keep the old behaviour, choose presolve 'Choose' in the Solver options dialog and set "
105
+ "solver_mip_gap on the solves in the database."),
106
106
  since="4.2.0",
107
107
  published="7.11.2026",
108
108
  ),