flextool 4.7.1__tar.gz → 4.7.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 (835) hide show
  1. {flextool-4.7.1/flextool.egg-info → flextool-4.7.3}/PKG-INFO +1 -1
  2. {flextool-4.7.1 → flextool-4.7.3}/docs/dev/architecture.md +4 -4
  3. {flextool-4.7.1 → flextool-4.7.3}/docs/dev/engine.md +57 -33
  4. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/performance.md +1 -1
  5. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/thermal_chp.md +1 -1
  6. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/connections.md +1 -1
  7. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/reserves.md +1 -1
  8. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/units.md +2 -2
  9. {flextool-4.7.1 → flextool-4.7.3}/docs/results.md +4 -2
  10. {flextool-4.7.1 → flextool-4.7.3}/flextool/_solver_config_source.py +5 -2
  11. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/docs_store.py +1 -0
  12. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_entity.py +1 -1
  13. {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/formulation.py +94 -15
  14. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/__init__.py +2 -2
  15. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_field_seeds.py +4 -4
  16. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_layer2_types.py +63 -63
  17. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_report.py +9 -3
  18. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_axis_enums.py +4 -4
  19. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_param_shapes.py +4 -4
  20. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_piecewise_curve.py +1 -1
  21. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_solve_config.py +3 -3
  22. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_solve_state.py +1 -1
  23. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_spinedb_reader.py +2 -2
  24. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_timeline.py +1 -1
  25. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_balance_terms.py +5 -5
  26. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_capacity.py +1 -1
  27. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_coarse_flows.py +7 -7
  28. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_commodity_ladder.py +5 -5
  29. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_common.py +1 -1
  30. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_cumulative_invest.py +6 -6
  31. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_dc_power_flow.py +4 -4
  32. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_delay.py +1 -1
  33. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_exact.py +2 -2
  34. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_extend.py +1 -1
  35. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_group_slack.py +2 -2
  36. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_lead_time.py +2 -2
  37. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_non_anticipativity.py +2 -2
  38. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_online.py +57 -100
  39. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_pdt_join.py +1 -1
  40. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_period_rows.py +1 -1
  41. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_reserve.py +8 -15
  42. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_retire_built.py +1 -1
  43. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_self_discharge.py +7 -7
  44. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_unit_floors.py +1 -1
  45. flextool-4.7.3/flextool/engine/model/core/__init__.py +106 -0
  46. flextool-4.7.3/flextool/engine/model/core/_build.py +194 -0
  47. flextool-4.7.3/flextool/engine/model/core/_co2.py +350 -0
  48. flextool-4.7.3/flextool/engine/model/core/_context.py +376 -0
  49. flextool-4.7.3/flextool/engine/model/core/_conversion.py +364 -0
  50. flextool-4.7.3/flextool/engine/model/core/_flows.py +509 -0
  51. flextool-4.7.3/flextool/engine/model/core/_invest.py +277 -0
  52. flextool-4.7.3/flextool/engine/model/core/_node_balance.py +609 -0
  53. flextool-4.7.3/flextool/engine/model/core/_objective.py +620 -0
  54. flextool-4.7.3/flextool/engine/model/core/_prepare.py +635 -0
  55. flextool-4.7.3/flextool/engine/model/core/_profiles.py +85 -0
  56. flextool-4.7.3/flextool/engine/model/core/_ramp.py +760 -0
  57. flextool-4.7.3/flextool/engine/model/core/_rp_storage.py +651 -0
  58. flextool-4.7.3/flextool/engine/model/core/_storage_links.py +223 -0
  59. flextool-4.7.3/flextool/engine/model/core/_storage_state.py +1038 -0
  60. flextool-4.7.3/flextool/engine/model/core/_user_constraints.py +661 -0
  61. flextool-4.7.3/flextool/engine/model/core/_variables.py +279 -0
  62. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_coarse_flows.py +1 -1
  63. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_dump_csvs.py +2 -2
  64. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_prices.py +1 -1
  65. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_writer.py +2 -2
  66. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_co2_carry.py +1 -1
  67. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_provider_keys.py +4 -2
  68. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_reduce_detail.py +2 -2
  69. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_solve_context.py +8 -8
  70. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_step_relations.py +2 -2
  71. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_arc_unions.py +2 -2
  72. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_chain_params.py +1 -1
  73. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_co2_accumulators.py +8 -8
  74. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_energy_margin_adder.py +1 -1
  75. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_flowgroup_accumulators.py +1 -1
  76. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_leaf_sets.py +3 -3
  77. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_mid_sets.py +1 -1
  78. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_per_solve.py +3 -2
  79. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_period_params.py +3 -3
  80. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_solve_writers.py +1 -1
  81. flextool-4.7.3/flextool/engine/preprocess/flex_data/__init__.py +64 -0
  82. flextool-4.7.3/flextool/engine/preprocess/flex_data/_coarse.py +605 -0
  83. flextool-4.7.3/flextool/engine/preprocess/flex_data/_container.py +871 -0
  84. flextool-4.7.3/flextool/engine/preprocess/flex_data/_db_overrides.py +453 -0
  85. flextool-4.7.3/flextool/engine/preprocess/flex_data/_handoff.py +1037 -0
  86. flextool-4.7.3/flextool/engine/preprocess/flex_data/_handoff_commodity.py +308 -0
  87. flextool-4.7.3/flextool/engine/preprocess/flex_data/_handoff_inputs.py +351 -0
  88. flextool-4.7.3/flextool/engine/preprocess/flex_data/_handoff_storage.py +314 -0
  89. flextool-4.7.3/flextool/engine/preprocess/flex_data/_load.py +1160 -0
  90. flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_co2.py +399 -0
  91. flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_features.py +942 -0
  92. flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_ramp_online.py +540 -0
  93. flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_storage.py +867 -0
  94. flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_topology.py +366 -0
  95. flextool-4.7.3/flextool/engine/preprocess/flex_data/_readers.py +395 -0
  96. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_arithmetic.py +12 -15
  97. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_branch.py +8 -8
  98. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_coarse.py +2 -1
  99. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_cohorts.py +6 -4
  100. flextool-4.7.3/flextool/engine/preprocess/params/_derived/__init__.py +274 -0
  101. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_active_steps.py +532 -0
  102. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_arc_capacity.py +835 -0
  103. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_delay.py +261 -0
  104. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_dtttdt.py +627 -0
  105. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_existing_capacity.py +475 -0
  106. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_handoff_state.py +270 -0
  107. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_inflation.py +529 -0
  108. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_invest_apply.py +1221 -0
  109. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_invest_sets.py +486 -0
  110. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_ladder.py +365 -0
  111. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_lookbacks.py +171 -0
  112. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_periods.py +460 -0
  113. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_process_flows.py +785 -0
  114. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_process_method.py +718 -0
  115. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_reserves.py +228 -0
  116. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_scaling_inflow.py +297 -0
  117. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_scope.py +268 -0
  118. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_storage.py +678 -0
  119. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_time.py +986 -0
  120. flextool-4.7.3/flextool/engine/preprocess/params/_derived/_unitsize.py +218 -0
  121. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_direct.py +9 -9
  122. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_discount.py +10 -10
  123. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_existing.py +7 -9
  124. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_lifetime_costs.py +15 -11
  125. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_mintime.py +57 -16
  126. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_npv.py +5 -5
  127. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_piecewise.py +14 -13
  128. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_profiles.py +1 -1
  129. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_projection.py +13 -13
  130. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_walks.py +2 -5
  131. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_acceptance.py +23 -9
  132. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_benders.py +5 -5
  133. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_carry_routing.py +2 -1
  134. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_co2_total_scope.py +3 -2
  135. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_handoff.py +7 -5
  136. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_objective_options.py +1 -1
  137. flextool-4.7.3/flextool/engine/solve/_orchestration/__init__.py +75 -0
  138. flextool-4.7.3/flextool/engine/solve/_orchestration/_autoscale_hooks.py +680 -0
  139. flextool-4.7.1/flextool/engine/solve/_orchestration.py → flextool-4.7.3/flextool/engine/solve/_orchestration/_cascade.py +90 -3151
  140. flextool-4.7.3/flextool/engine/solve/_orchestration/_entry.py +645 -0
  141. flextool-4.7.3/flextool/engine/solve/_orchestration/_guards.py +515 -0
  142. flextool-4.7.3/flextool/engine/solve/_orchestration/_highs_options.py +413 -0
  143. flextool-4.7.3/flextool/engine/solve/_orchestration/_memory.py +647 -0
  144. flextool-4.7.3/flextool/engine/solve/_orchestration/_steps.py +254 -0
  145. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_realization.py +11 -8
  146. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_realization_tail.py +4 -3
  147. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_realized_overlap.py +1 -1
  148. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_recursive_solve.py +1 -1
  149. flextool-4.7.3/flextool/engine/solve/_region_filter/__init__.py +77 -0
  150. flextool-4.7.3/flextool/engine/solve/_region_filter/_arcs.py +283 -0
  151. flextool-4.7.3/flextool/engine/solve/_region_filter/_checks.py +374 -0
  152. flextool-4.7.3/flextool/engine/solve/_region_filter/_frames.py +61 -0
  153. flextool-4.7.3/flextool/engine/solve/_region_filter/_master_network.py +643 -0
  154. flextool-4.7.3/flextool/engine/solve/_region_filter/_master_side.py +324 -0
  155. flextool-4.7.3/flextool/engine/solve/_region_filter/_region_data.py +769 -0
  156. flextool-4.7.3/flextool/engine/solve/_region_filter/_regions.py +199 -0
  157. flextool-4.7.3/flextool/engine/solve/_region_filter/_split.py +337 -0
  158. flextool-4.7.3/flextool/engine/solve/_run_model/__init__.py +50 -0
  159. flextool-4.7.1/flextool/engine/solve/_run_model.py → flextool-4.7.3/flextool/engine/solve/_run_model/_native_run_model.py +43 -1448
  160. flextool-4.7.3/flextool/engine/solve/_run_model/_nested_storage.py +346 -0
  161. flextool-4.7.3/flextool/engine/solve/_run_model/_rolling_storage.py +467 -0
  162. flextool-4.7.3/flextool/engine/solve/_run_model/_rp_methods.py +400 -0
  163. flextool-4.7.3/flextool/engine/solve/_run_model/_run_timelines.py +149 -0
  164. flextool-4.7.3/flextool/engine/solve/_run_model/_storage_frames.py +111 -0
  165. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_solver_dispatch.py +3 -3
  166. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_subprocess_solve.py +4 -4
  167. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_warm.py +2 -2
  168. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_commodity_ladder_sets.py +1 -1
  169. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_method_constants.py +1 -1
  170. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_process_method.py +4 -4
  171. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_validators.py +1 -1
  172. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_inmemory_helpers.py +1 -1
  173. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_ramp_inputs.py +30 -7
  174. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_capacity_flows.py +1 -1
  175. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_costs.py +2 -2
  176. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_piecewise.py +1 -1
  177. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_ramp_envelope.py +26 -10
  178. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_storage_vre.py +1 -1
  179. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/drop_levels.py +2 -1
  180. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_ancillary.py +1 -1
  181. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/read_highs_solution.py +2 -2
  182. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/read_parameters.py +6 -2
  183. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/read_sets.py +4 -4
  184. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/_engine_specs.py +3 -2
  185. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/flextool_axis_contract.json +2 -2
  186. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v56_methods.py +1 -1
  187. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v56_renames.py +4 -4
  188. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_history.py +1 -1
  189. {flextool-4.7.1 → flextool-4.7.3/flextool.egg-info}/PKG-INFO +1 -1
  190. {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/SOURCES.txt +78 -6
  191. {flextool-4.7.1 → flextool-4.7.3}/pyproject.toml +1 -1
  192. {flextool-4.7.1 → flextool-4.7.3}/tests/test_commodity_ladder_rolling.py +2 -2
  193. {flextool-4.7.1 → flextool-4.7.3}/tests/test_csv_dump_roundtrip.py +1 -1
  194. {flextool-4.7.1 → flextool-4.7.3}/tests/test_invariant_guards.py +20 -9
  195. {flextool-4.7.1 → flextool-4.7.3}/tests/test_min_load_rolling.py +2 -2
  196. flextool-4.7.3/tests/test_related_tests.py +51 -0
  197. {flextool-4.7.1 → flextool-4.7.3}/tests/test_rolling_online_minuptime.py +1 -1
  198. flextool-4.7.3/tests/test_split_check.py +506 -0
  199. flextool-4.7.1/flextool/engine/model/core.py +0 -7391
  200. flextool-4.7.1/flextool/engine/preprocess/flex_data.py +0 -8407
  201. flextool-4.7.1/flextool/engine/preprocess/params/_derived.py +0 -9944
  202. flextool-4.7.1/flextool/engine/solve/_region_filter.py +0 -2935
  203. flextool-4.7.1/tests/test_split_check.py +0 -182
  204. {flextool-4.7.1 → flextool-4.7.3}/LICENSE.txt +0 -0
  205. {flextool-4.7.1 → flextool-4.7.3}/MANIFEST.in +0 -0
  206. {flextool-4.7.1 → flextool-4.7.3}/README.md +0 -0
  207. {flextool-4.7.1 → flextool-4.7.3}/_flextool_build.py +0 -0
  208. {flextool-4.7.1 → flextool-4.7.3}/docs/advanced_concepts.md +0 -0
  209. {flextool-4.7.1 → flextool-4.7.3}/docs/ai_assistant.md +0 -0
  210. {flextool-4.7.1 → flextool-4.7.3}/docs/dev/assistant.md +0 -0
  211. {flextool-4.7.1 → flextool-4.7.3}/docs/dev/slack_convention.md +0 -0
  212. {flextool-4.7.1 → flextool-4.7.3}/docs/env_vars.md +0 -0
  213. {flextool-4.7.1 → flextool-4.7.3}/docs/excel_interface.md +0 -0
  214. {flextool-4.7.1 → flextool-4.7.3}/docs/flextool_gui_interface.md +0 -0
  215. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/basics.md +0 -0
  216. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/demand_response.md +0 -0
  217. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/emissions.md +0 -0
  218. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/index.md +0 -0
  219. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/investment.md +0 -0
  220. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/outputs.md +0 -0
  221. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/solve_sequences.md +0 -0
  222. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/stochastic_examples.md +0 -0
  223. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/stochastics.md +0 -0
  224. {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/storage_hydro.md +0 -0
  225. {flextool-4.7.1 → flextool-4.7.3}/docs/index.md +0 -0
  226. {flextool-4.7.1 → flextool-4.7.3}/docs/install_gui.md +0 -0
  227. {flextool-4.7.1 → flextool-4.7.3}/docs/install_toolbox.md +0 -0
  228. {flextool-4.7.1 → flextool-4.7.3}/docs/interface_overview.md +0 -0
  229. {flextool-4.7.1 → flextool-4.7.3}/docs/limitations.md +0 -0
  230. {flextool-4.7.1 → flextool-4.7.3}/docs/reading_results.md +0 -0
  231. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/commodities.md +0 -0
  232. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/entities_and_time.md +0 -0
  233. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/flow_groups.md +0 -0
  234. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/groups.md +0 -0
  235. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/index.md +0 -0
  236. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/nodes.md +0 -0
  237. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/parameter_groups.md +0 -0
  238. {flextool-4.7.1 → flextool-4.7.3}/docs/reference/user_constraints.md +0 -0
  239. {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/copt.md +0 -0
  240. {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/cplex.md +0 -0
  241. {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/gurobi.md +0 -0
  242. {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/highs.md +0 -0
  243. {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/index.md +0 -0
  244. {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/option_trust_internals.md +0 -0
  245. {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/xpress.md +0 -0
  246. {flextool-4.7.1 → flextool-4.7.3}/docs/spine_database.md +0 -0
  247. {flextool-4.7.1 → flextool-4.7.3}/docs/spine_toolbox.md +0 -0
  248. {flextool-4.7.1 → flextool-4.7.3}/docs/terminal_workflow.md +0 -0
  249. {flextool-4.7.1 → flextool-4.7.3}/docs/tutorial.md +0 -0
  250. {flextool-4.7.1 → flextool-4.7.3}/flextool/__init__.py +0 -0
  251. {flextool-4.7.1 → flextool-4.7.3}/flextool/_allocator.py +0 -0
  252. {flextool-4.7.1 → flextool-4.7.3}/flextool/_child_python.py +0 -0
  253. {flextool-4.7.1 → flextool-4.7.3}/flextool/_file_lock.py +0 -0
  254. {flextool-4.7.1 → flextool-4.7.3}/flextool/_local_solver_settings.py +0 -0
  255. {flextool-4.7.1 → flextool-4.7.3}/flextool/_mem_sampler.py +0 -0
  256. {flextool-4.7.1 → flextool-4.7.3}/flextool/_process_tree.py +0 -0
  257. {flextool-4.7.1 → flextool-4.7.3}/flextool/_resources.py +0 -0
  258. {flextool-4.7.1 → flextool-4.7.3}/flextool/_safe_text.py +0 -0
  259. {flextool-4.7.1 → flextool-4.7.3}/flextool/_solver_option_rules.py +0 -0
  260. {flextool-4.7.1 → flextool-4.7.3}/flextool/_thread_budget.py +0 -0
  261. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/__init__.py +0 -0
  262. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/_files.py +0 -0
  263. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/backends/__init__.py +0 -0
  264. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/backends/_common.py +0 -0
  265. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/backends/anthropic_messages.py +0 -0
  266. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/backends/openai_chat.py +0 -0
  267. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/budget.py +0 -0
  268. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/caps.py +0 -0
  269. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/chat_cli.py +0 -0
  270. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/cli.py +0 -0
  271. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/context.py +0 -0
  272. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/endpoint.py +0 -0
  273. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/env_knobs.py +0 -0
  274. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/errors.py +0 -0
  275. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/__init__.py +0 -0
  276. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_db.py +0 -0
  277. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_notes.py +0 -0
  278. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_schema.py +0 -0
  279. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_units.py +0 -0
  280. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_values.py +0 -0
  281. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/keys.py +0 -0
  282. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/llm_adapter.py +0 -0
  283. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/llm_errors.py +0 -0
  284. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/llm_retry.py +0 -0
  285. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/mcp_server.py +0 -0
  286. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/model_check.py +0 -0
  287. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/model_facts.py +0 -0
  288. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/model_list_cache.py +0 -0
  289. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/model_versions.py +0 -0
  290. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/net.py +0 -0
  291. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/pacing.py +0 -0
  292. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/placeholders.py +0 -0
  293. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/probes.py +0 -0
  294. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/project.py +0 -0
  295. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/prompt.py +0 -0
  296. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/providers.py +0 -0
  297. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/redact.py +0 -0
  298. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/registry.py +0 -0
  299. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/__init__.py +0 -0
  300. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_catalog.py +0 -0
  301. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_overview.py +0 -0
  302. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_query.py +0 -0
  303. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_runs.py +0 -0
  304. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_slacks.py +0 -0
  305. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/runtime_context.py +0 -0
  306. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/session.py +0 -0
  307. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/settings.py +0 -0
  308. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/store.py +0 -0
  309. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/textsearch.py +0 -0
  310. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/thoughts.py +0 -0
  311. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tiers.py +0 -0
  312. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/__init__.py +0 -0
  313. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/diagnostics.py +0 -0
  314. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/discovery.py +0 -0
  315. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/explain.py +0 -0
  316. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/inputs.py +0 -0
  317. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/orientation.py +0 -0
  318. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/results.py +0 -0
  319. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/unit_wording.py +0 -0
  320. {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/usage.py +0 -0
  321. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/__init__.py +0 -0
  322. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/__main__.py +0 -0
  323. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_cli.py +0 -0
  324. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_db_alt.py +0 -0
  325. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_final_outputs.py +0 -0
  326. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_guard.py +0 -0
  327. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_loop.py +0 -0
  328. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_readers.py +0 -0
  329. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_report.py +0 -0
  330. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_sizing.py +0 -0
  331. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_solve.py +0 -0
  332. {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_solve_status.py +0 -0
  333. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/__init__.py +0 -0
  334. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/_console.py +0 -0
  335. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/_timing.py +0 -0
  336. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_execute_flextool_workflow.py +0 -0
  337. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_export_to_tabular.py +0 -0
  338. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_freeze_database.py +0 -0
  339. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_import_sensitivities.py +0 -0
  340. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_migrate_database.py +0 -0
  341. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_open_results_db.py +0 -0
  342. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_project_package.py +0 -0
  343. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_read_matpower.py +0 -0
  344. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_read_old_flextool.py +0 -0
  345. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_read_self_describing_tabular_input.py +0 -0
  346. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_read_tabular_input.py +0 -0
  347. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_repair_value_list.py +0 -0
  348. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_run_flextool.py +0 -0
  349. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_scenario_results.py +0 -0
  350. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_solve_mps.py +0 -0
  351. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_time_runs.py +0 -0
  352. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_trust_workspace.py +0 -0
  353. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_update_flextool.py +0 -0
  354. {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_write_outputs.py +0 -0
  355. {flextool-4.7.1 → flextool-4.7.3}/flextool/common_utils/__init__.py +0 -0
  356. {flextool-4.7.1 → flextool-4.7.3}/flextool/common_utils/plot_mem_shape.py +0 -0
  357. {flextool-4.7.1 → flextool-4.7.3}/flextool/console_markers.py +0 -0
  358. {flextool-4.7.1 → flextool-4.7.3}/flextool/decomposition/__init__.py +0 -0
  359. {flextool-4.7.1 → flextool-4.7.3}/flextool/decomposition/region_decomposition.py +0 -0
  360. {flextool-4.7.1 → flextool-4.7.3}/flextool/decomposition/region_filter.py +0 -0
  361. {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/__init__.py +0 -0
  362. {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/__main__.py +0 -0
  363. {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/catalogue.py +0 -0
  364. {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/index.py +0 -0
  365. {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/parameters.py +0 -0
  366. {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/scope.py +0 -0
  367. {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/warnings.py +0 -0
  368. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_behaviour_changes.py +0 -0
  369. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/__init__.py +0 -0
  370. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_meta.py +0 -0
  371. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_seed.py +0 -0
  372. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_stamp.py +0 -0
  373. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_topology.py +0 -0
  374. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/load.py +0 -0
  375. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/offline_outputs.py +0 -0
  376. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/__init__.py +0 -0
  377. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_config.py +0 -0
  378. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_guard.py +0 -0
  379. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_layer2.py +0 -0
  380. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_quantity_types.py +0 -0
  381. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/__init__.py +0 -0
  382. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_constants.py +0 -0
  383. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_db_loader.py +0 -0
  384. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_db_reader.py +0 -0
  385. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_inmemory_reader.py +0 -0
  386. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_input_source.py +0 -0
  387. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_lifetime_roles.py +0 -0
  388. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_solve_step_aggregation.py +0 -0
  389. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_timeline_rules.py +0 -0
  390. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/__init__.py +0 -0
  391. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/__init__.py +0 -0
  392. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_benders_slice.py +0 -0
  393. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_capacity_margin.py +0 -0
  394. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_cohort_capacity.py +0 -0
  395. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_horizon_dump.py +0 -0
  396. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_parquet_bundle.py +0 -0
  397. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_reserve_report.py +0 -0
  398. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/__init__.py +0 -0
  399. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_annuity.py +0 -0
  400. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_co2_methods.py +0 -0
  401. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_dump_stamp.py +0 -0
  402. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_flex_data_provider.py +0 -0
  403. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_input_writer.py +0 -0
  404. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_invest_seeds.py +0 -0
  405. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_provider_io.py +0 -0
  406. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_provider_translators.py +0 -0
  407. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_reserve_methods.py +0 -0
  408. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_stochastic_detect.py +0 -0
  409. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/__init__.py +0 -0
  410. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_base_steps.py +0 -0
  411. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_blocks.py +0 -0
  412. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_calc_params.py +0 -0
  413. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_capacity_margin_peak.py +0 -0
  414. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_dispatchers.py +0 -0
  415. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_energy_margin.py +0 -0
  416. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_inflow_scaling.py +0 -0
  417. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_inflow_scaling_checks.py +0 -0
  418. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_lp_scaling.py +0 -0
  419. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_pdt_lookup.py +0 -0
  420. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_pdt_params.py +0 -0
  421. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_period_calc.py +0 -0
  422. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_reserve_sets.py +0 -0
  423. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_solve_time.py +0 -0
  424. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_vectorize.py +0 -0
  425. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/__init__.py +0 -0
  426. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_block.py +0 -0
  427. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_block_layout.py +0 -0
  428. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_cohort_handoff.py +0 -0
  429. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_cost_lines.py +0 -0
  430. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_existing_salvage.py +0 -0
  431. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_extend.py +0 -0
  432. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_fixed_costs.py +0 -0
  433. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_lifetime_inputs.py +0 -0
  434. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_per_solve_sets.py +0 -0
  435. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_period_values.py +0 -0
  436. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_ramp_links.py +0 -0
  437. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_report_lines.py +0 -0
  438. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_retire_built.py +0 -0
  439. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_retire_existing.py +0 -0
  440. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_retire_settlement.py +0 -0
  441. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_run_calendar.py +0 -0
  442. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_run_costs.py +0 -0
  443. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/__init__.py +0 -0
  444. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_benders_final.py +0 -0
  445. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_determinism.py +0 -0
  446. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_solver_base.py +0 -0
  447. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_solver_catalogue.py +0 -0
  448. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_solver_outcome.py +0 -0
  449. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_stochastic.py +0 -0
  450. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/chain.py +0 -0
  451. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/copt.json +0 -0
  452. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/cplex.json +0 -0
  453. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/gurobi.json +0 -0
  454. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/highs.json +0 -0
  455. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/xpress.json +0 -0
  456. {flextool-4.7.1 → flextool-4.7.3}/flextool/engine_polars/__init__.py +0 -0
  457. {flextool-4.7.1 → flextool-4.7.3}/flextool/env_check.py +0 -0
  458. {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/__init__.py +0 -0
  459. {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/db_reader.py +0 -0
  460. {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/excel_writer.py +0 -0
  461. {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/export_settings.yaml +0 -0
  462. {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/export_to_excel.py +0 -0
  463. {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/formatting.py +0 -0
  464. {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/index_names.py +0 -0
  465. {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/sheet_config.py +0 -0
  466. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/__init__.py +0 -0
  467. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/__main__.py +0 -0
  468. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/_menus.py +0 -0
  469. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/__init__.py +0 -0
  470. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/chat_tab.py +0 -0
  471. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/chat_window.py +0 -0
  472. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/entry.py +0 -0
  473. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/fonts.py +0 -0
  474. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/gate.py +0 -0
  475. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/geometry.py +0 -0
  476. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/gui_state.py +0 -0
  477. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/markdown_stream.py +0 -0
  478. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/notices.py +0 -0
  479. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/settings_dialog.py +0 -0
  480. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/strings.py +0 -0
  481. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/transcript.py +0 -0
  482. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/worker.py +0 -0
  483. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/calibrate_commands.py +0 -0
  484. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/calibrate_jobs.py +0 -0
  485. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/check_tree.py +0 -0
  486. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/cli_format.py +0 -0
  487. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/config_parser.py +0 -0
  488. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/data_models.py +0 -0
  489. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/db_editor_integration.py +0 -0
  490. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/db_version_check.py +0 -0
  491. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/__init__.py +0 -0
  492. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/_modal_base.py +0 -0
  493. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/add_dialog.py +0 -0
  494. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/calibrate_dialog.py +0 -0
  495. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/file_picker.py +0 -0
  496. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/group_picker.py +0 -0
  497. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/local_solver_settings_dialog.py +0 -0
  498. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/message_box.py +0 -0
  499. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/message_list_window.py +0 -0
  500. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/migration_consent_dialog.py +0 -0
  501. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/migration_progress_dialog.py +0 -0
  502. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/plot_dialog.py +0 -0
  503. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/plot_settings_picker.py +0 -0
  504. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/project_dialog.py +0 -0
  505. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/project_package_dialog.py +0 -0
  506. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/update_dialog.py +0 -0
  507. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/downsampling.py +0 -0
  508. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/error_handling.py +0 -0
  509. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/execution_manager.py +0 -0
  510. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/execution_window.py +0 -0
  511. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/hover_tooltip.py +0 -0
  512. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/input_sources.py +0 -0
  513. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/log_view.py +0 -0
  514. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/main_window.py +0 -0
  515. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/message_sources.py +0 -0
  516. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/messages.py +0 -0
  517. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/network_graph.py +0 -0
  518. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/output_actions.py +0 -0
  519. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/output_log_window.py +0 -0
  520. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/platform_utils.py +0 -0
  521. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/plot_cache.py +0 -0
  522. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/plot_canvas.py +0 -0
  523. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/plot_config_reader.py +0 -0
  524. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/project_utils.py +0 -0
  525. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/result_viewer.py +0 -0
  526. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/scenario_key.py +0 -0
  527. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/scenario_lists.py +0 -0
  528. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/settings_io.py +0 -0
  529. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/solve_reader.py +0 -0
  530. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/tree_reorder.py +0 -0
  531. {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/ui_metrics.py +0 -0
  532. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/__init__.py +0 -0
  533. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_commodity_ladder.py +0 -0
  534. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_dc_power_flow.py +0 -0
  535. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_piecewise.py +0 -0
  536. {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_specs.py +0 -0
  537. {flextool-4.7.1 → flextool-4.7.3}/flextool/lean_parquet.py +0 -0
  538. {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/__init__.py +0 -0
  539. {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/_special.py +0 -0
  540. {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/build_model.py +0 -0
  541. {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/encoding.py +0 -0
  542. {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/names.py +0 -0
  543. {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/profiles.py +0 -0
  544. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/__init__.py +0 -0
  545. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/axis_helpers.py +0 -0
  546. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/color_template.py +0 -0
  547. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/config.py +0 -0
  548. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/format_helpers.py +0 -0
  549. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/legend_helpers.py +0 -0
  550. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/orchestrator.py +0 -0
  551. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/perf.py +0 -0
  552. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/plan.py +0 -0
  553. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/plot_bars.py +0 -0
  554. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/plot_bars_detail.py +0 -0
  555. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/plot_lines.py +0 -0
  556. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/shared_manifest.py +0 -0
  557. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/subplot_helpers.py +0 -0
  558. {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/unit_labels.py +0 -0
  559. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/__init__.py +0 -0
  560. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/import_old_excel_input.json +0 -0
  561. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/read_matpower.py +0 -0
  562. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/read_old_flextool.py +0 -0
  563. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/read_self_describing_excel.py +0 -0
  564. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/read_tabular_with_specification.py +0 -0
  565. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/write_old_flextool_to_db.py +0 -0
  566. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/write_self_describing_to_db.py +0 -0
  567. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/write_to_input_db.py +0 -0
  568. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/__init__.py +0 -0
  569. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_annualize.py +0 -0
  570. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_csv_sidecars.py +0 -0
  571. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_excel_writer.py +0 -0
  572. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_fan_labels.py +0 -0
  573. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_output_meta.py +0 -0
  574. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_sheet_names.py +0 -0
  575. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_timeline_breaks.py +0 -0
  576. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_unit_context.py +0 -0
  577. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_connections.py +0 -0
  578. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_group_flows.py +0 -0
  579. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_slacks.py +0 -0
  580. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/handoff_writers.py +0 -0
  581. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_capacity.py +0 -0
  582. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_costs.py +0 -0
  583. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_flowgroup.py +0 -0
  584. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_flows.py +0 -0
  585. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_group.py +0 -0
  586. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_node.py +0 -0
  587. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/persist_realized_slice.py +0 -0
  588. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/process_results.py +0 -0
  589. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/read_variables.py +0 -0
  590. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/reduced_cells.py +0 -0
  591. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/solve_order.py +0 -0
  592. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/spinedb_replay.py +0 -0
  593. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/union_realized_slice.py +0 -0
  594. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/write_outputs.py +0 -0
  595. {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/write_spinedb.py +0 -0
  596. {flextool-4.7.1 → flextool-4.7.3}/flextool/project_package.py +0 -0
  597. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/__init__.py +0 -0
  598. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/clustering.py +0 -0
  599. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/force_include.py +0 -0
  600. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/netload.py +0 -0
  601. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/netload_inputs.py +0 -0
  602. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/netload_iterate.py +0 -0
  603. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/preprocess.py +0 -0
  604. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/scenario_stack.py +0 -0
  605. {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/weights.py +0 -0
  606. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_options.py +0 -0
  607. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_record/__init__.py +0 -0
  608. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_record/_owner.py +0 -0
  609. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_record/_status.py +0 -0
  610. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_record/_tee.py +0 -0
  611. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/__init__.py +0 -0
  612. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/_behaviour_specs.py +0 -0
  613. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/_input_specs.py +0 -0
  614. {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/registry.py +0 -0
  615. {flextool-4.7.1 → flextool-4.7.3}/flextool/safe_names.py +0 -0
  616. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/__init__.py +0 -0
  617. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/config_builder.py +0 -0
  618. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/constants.py +0 -0
  619. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/data_models.py +0 -0
  620. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/db_reader.py +0 -0
  621. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/dispatch_data.py +0 -0
  622. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/dispatch_mappings.py +0 -0
  623. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/dispatch_plots.py +0 -0
  624. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/input_entity_colors.py +0 -0
  625. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/orchestrator.py +0 -0
  626. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/plan_union.py +0 -0
  627. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/plot_settings_seed.py +0 -0
  628. {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/ramp_plots.py +0 -0
  629. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/AXIS_CONTRACT.md +0 -0
  630. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_aggregate_output.json +0 -0
  631. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_connections.json +0 -0
  632. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_demand.json +0 -0
  633. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_demand_response.json +0 -0
  634. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_hydro_reservoir.json +0 -0
  635. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_hydro_reservoir_with_pump.json +0 -0
  636. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_non_sync_and_curtailment.json +0 -0
  637. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_ramp_and_start_up.json +0 -0
  638. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_stochastics.json +0 -0
  639. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/templates_examples.json +0 -0
  640. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/templates_time_settings_only.json +0 -0
  641. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/comparison_settings_template.json +0 -0
  642. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/default_plot_settings.yaml +0 -0
  643. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/default_plots.yaml +0 -0
  644. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/flextool_axis_contract.schema.json +0 -0
  645. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/old_flextool_import_template.json +0 -0
  646. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/output_info_template.json +0 -0
  647. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/output_settings_template.json +0 -0
  648. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_constant_default.json +0 -0
  649. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_default_optional_output.json +0 -0
  650. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_default_value.json +0 -0
  651. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_drop_down.json +0 -0
  652. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_lifetime_method.json +0 -0
  653. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_optional_outputs.json +0 -0
  654. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_output_node_flows.json +0 -0
  655. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_results_master.json +0 -0
  656. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_rolling_start_remove.json +0 -0
  657. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_rolling_window.json +0 -0
  658. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_storage_binding_defaults.json +0 -0
  659. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_v2.json +0 -0
  660. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_v25.json +0 -0
  661. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/spinedb_results_schema.json +0 -0
  662. {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/spinedb_schema.json +0 -0
  663. {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/copt.opt.template +0 -0
  664. {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/cplex.opt.template +0 -0
  665. {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/gurobi.opt.template +0 -0
  666. {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/highs.opt.template +0 -0
  667. {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/xpress.opt.template +0 -0
  668. {flextool-4.7.1 → flextool-4.7.3}/flextool/spinedb_backend/__init__.py +0 -0
  669. {flextool-4.7.1 → flextool-4.7.3}/flextool/spinedb_backend/_axis_enums.py +0 -0
  670. {flextool-4.7.1 → flextool-4.7.3}/flextool/spinedb_backend/_backend.py +0 -0
  671. {flextool-4.7.1 → flextool-4.7.3}/flextool/sqlite_url.py +0 -0
  672. {flextool-4.7.1 → flextool-4.7.3}/flextool/timeline_pieces.py +0 -0
  673. {flextool-4.7.1 → flextool-4.7.3}/flextool/units_of_measure.py +0 -0
  674. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/__init__.py +0 -0
  675. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/bundle_install.py +0 -0
  676. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/canonical_databases.py +0 -0
  677. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_handle.py +0 -0
  678. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/__init__.py +0 -0
  679. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/__main__.py +0 -0
  680. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/common.py +0 -0
  681. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/head.py +0 -0
  682. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/runner.py +0 -0
  683. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v01_v25.py +0 -0
  684. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v26_v43.py +0 -0
  685. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v44_v49.py +0 -0
  686. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v50_v55.py +0 -0
  687. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v57_v69.py +0 -0
  688. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v70_v76.py +0 -0
  689. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v77.py +0 -0
  690. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v78.py +0 -0
  691. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v79.py +0 -0
  692. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v80.py +0 -0
  693. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v81.py +0 -0
  694. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v82.py +0 -0
  695. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v83.py +0 -0
  696. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v84_branching.py +0 -0
  697. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/ensure_settings_db.py +0 -0
  698. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/export_database.py +0 -0
  699. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/extend_tests_fixture.py +0 -0
  700. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/fixture_schema.py +0 -0
  701. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/frozen.py +0 -0
  702. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/generate_canonical.py +0 -0
  703. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/initialize_database.py +0 -0
  704. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/install_info.py +0 -0
  705. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/list_default_repair.py +0 -0
  706. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/list_default_restore.py +0 -0
  707. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/migrate_before_run.py +0 -0
  708. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/migration_backup.py +0 -0
  709. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/self_update.py +0 -0
  710. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/sync_master_json_template.py +0 -0
  711. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/test_fixtures.py +0 -0
  712. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_answers.py +0 -0
  713. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_archive.py +0 -0
  714. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_repair.py +0 -0
  715. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_suspects.py +0 -0
  716. {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_write.py +0 -0
  717. {flextool-4.7.1 → flextool-4.7.3}/flextool/user_dirs.py +0 -0
  718. {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/dependency_links.txt +0 -0
  719. {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/entry_points.txt +0 -0
  720. {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/requires.txt +0 -0
  721. {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/top_level.txt +0 -0
  722. {flextool-4.7.1 → flextool-4.7.3}/flextool_assistant_entry.py +0 -0
  723. {flextool-4.7.1 → flextool-4.7.3}/flextool_run_supervisor.py +0 -0
  724. {flextool-4.7.1 → flextool-4.7.3}/setup.cfg +0 -0
  725. {flextool-4.7.1 → flextool-4.7.3}/tests/test_bar_layout.py +0 -0
  726. {flextool-4.7.1 → flextool-4.7.3}/tests/test_bar_sub_pixel_labels.py +0 -0
  727. {flextool-4.7.1 → flextool-4.7.3}/tests/test_blocks.py +0 -0
  728. {flextool-4.7.1 → flextool-4.7.3}/tests/test_branch_weights.py +0 -0
  729. {flextool-4.7.1 → flextool-4.7.3}/tests/test_child_python_safe_path.py +0 -0
  730. {flextool-4.7.1 → flextool-4.7.3}/tests/test_child_run_argv.py +0 -0
  731. {flextool-4.7.1 → flextool-4.7.3}/tests/test_ci_shard.py +0 -0
  732. {flextool-4.7.1 → flextool-4.7.3}/tests/test_color_template.py +0 -0
  733. {flextool-4.7.1 → flextool-4.7.3}/tests/test_comparison_excel.py +0 -0
  734. {flextool-4.7.1 → flextool-4.7.3}/tests/test_comparison_project_root.py +0 -0
  735. {flextool-4.7.1 → flextool-4.7.3}/tests/test_comparison_results_registry.py +0 -0
  736. {flextool-4.7.1 → flextool-4.7.3}/tests/test_complete_period_share_reduction.py +0 -0
  737. {flextool-4.7.1 → flextool-4.7.3}/tests/test_connection_node_warnings.py +0 -0
  738. {flextool-4.7.1 → flextool-4.7.3}/tests/test_console_run_tool.py +0 -0
  739. {flextool-4.7.1 → flextool-4.7.3}/tests/test_cost_aggregation_semantics.py +0 -0
  740. {flextool-4.7.1 → flextool-4.7.3}/tests/test_cost_breakdown_by_entity.py +0 -0
  741. {flextool-4.7.1 → flextool-4.7.3}/tests/test_dc_power_flow.py +0 -0
  742. {flextool-4.7.1 → flextool-4.7.3}/tests/test_dependency_caps.py +0 -0
  743. {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_consumer_and_connection_signs.py +0 -0
  744. {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_multi_period.py +0 -0
  745. {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_node_debug_and_tree.py +0 -0
  746. {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_order_specials.py +0 -0
  747. {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_scenario_tag.py +0 -0
  748. {flextool-4.7.1 → flextool-4.7.3}/tests/test_ensure_settings_db.py +0 -0
  749. {flextool-4.7.1 → flextool-4.7.3}/tests/test_entity_unitsize_invariant.py +0 -0
  750. {flextool-4.7.1 → flextool-4.7.3}/tests/test_entity_universe_carrier.py +0 -0
  751. {flextool-4.7.1 → flextool-4.7.3}/tests/test_env_check.py +0 -0
  752. {flextool-4.7.1 → flextool-4.7.3}/tests/test_env_knob_registry.py +0 -0
  753. {flextool-4.7.1 → flextool-4.7.3}/tests/test_excel_text_cells.py +0 -0
  754. {flextool-4.7.1 → flextool-4.7.3}/tests/test_execution_log_lint.py +0 -0
  755. {flextool-4.7.1 → flextool-4.7.3}/tests/test_export_to_tabular.py +0 -0
  756. {flextool-4.7.1 → flextool-4.7.3}/tests/test_export_workbook_layout.py +0 -0
  757. {flextool-4.7.1 → flextool-4.7.3}/tests/test_extend_tests_fixture.py +0 -0
  758. {flextool-4.7.1 → flextool-4.7.3}/tests/test_flowgroup_indicators.py +0 -0
  759. {flextool-4.7.1 → flextool-4.7.3}/tests/test_force_include.py +0 -0
  760. {flextool-4.7.1 → flextool-4.7.3}/tests/test_group_output_warnings.py +0 -0
  761. {flextool-4.7.1 → flextool-4.7.3}/tests/test_handoff_writers.py +0 -0
  762. {flextool-4.7.1 → flextool-4.7.3}/tests/test_input_entity_colors.py +0 -0
  763. {flextool-4.7.1 → flextool-4.7.3}/tests/test_lean_parquet.py +0 -0
  764. {flextool-4.7.1 → flextool-4.7.3}/tests/test_lh2_three_region.py +0 -0
  765. {flextool-4.7.1 → flextool-4.7.3}/tests/test_model_builder_invest.py +0 -0
  766. {flextool-4.7.1 → flextool-4.7.3}/tests/test_model_builder_special_functions.py +0 -0
  767. {flextool-4.7.1 → flextool-4.7.3}/tests/test_non_anticipativity.py +0 -0
  768. {flextool-4.7.1 → flextool-4.7.3}/tests/test_old_flextool_importer_schema_drift.py +0 -0
  769. {flextool-4.7.1 → flextool-4.7.3}/tests/test_open_results_db.py +0 -0
  770. {flextool-4.7.1 → flextool-4.7.3}/tests/test_output_column_metadata.py +0 -0
  771. {flextool-4.7.1 → flextool-4.7.3}/tests/test_output_csv_names.py +0 -0
  772. {flextool-4.7.1 → flextool-4.7.3}/tests/test_output_metadata_renderers.py +0 -0
  773. {flextool-4.7.1 → flextool-4.7.3}/tests/test_output_work_folder_isolation.py +0 -0
  774. {flextool-4.7.1 → flextool-4.7.3}/tests/test_parameter_group_coverage.py +0 -0
  775. {flextool-4.7.1 → flextool-4.7.3}/tests/test_period_share_of_year_output.py +0 -0
  776. {flextool-4.7.1 → flextool-4.7.3}/tests/test_piecewise_validation.py +0 -0
  777. {flextool-4.7.1 → flextool-4.7.3}/tests/test_plan_union.py +0 -0
  778. {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_draw_order.py +0 -0
  779. {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_gaps.py +0 -0
  780. {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_pipeline.py +0 -0
  781. {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_plan_chunk_reconstruction.py +0 -0
  782. {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_plan_time_labels_roundtrip.py +0 -0
  783. {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_settings_seed.py +0 -0
  784. {flextool-4.7.1 → flextool-4.7.3}/tests/test_project_package_cli.py +0 -0
  785. {flextool-4.7.1 → flextool-4.7.3}/tests/test_ramp_histogram.py +0 -0
  786. {flextool-4.7.1 → flextool-4.7.3}/tests/test_read_highs_solution.py +0 -0
  787. {flextool-4.7.1 → flextool-4.7.3}/tests/test_recourse_cost_reconciliation.py +0 -0
  788. {flextool-4.7.1 → flextool-4.7.3}/tests/test_regional_filter.py +0 -0
  789. {flextool-4.7.1 → flextool-4.7.3}/tests/test_representative_periods.py +0 -0
  790. {flextool-4.7.1 → flextool-4.7.3}/tests/test_rolling_online_carry.py +0 -0
  791. {flextool-4.7.1 → flextool-4.7.3}/tests/test_rolling_online_mintime_carry.py +0 -0
  792. {flextool-4.7.1 → flextool-4.7.3}/tests/test_rp_alternative_name.py +0 -0
  793. {flextool-4.7.1 → flextool-4.7.3}/tests/test_rp_force_include_wiring.py +0 -0
  794. {flextool-4.7.1 → flextool-4.7.3}/tests/test_rp_solves_filter.py +0 -0
  795. {flextool-4.7.1 → flextool-4.7.3}/tests/test_run_options.py +0 -0
  796. {flextool-4.7.1 → flextool-4.7.3}/tests/test_safe_names.py +0 -0
  797. {flextool-4.7.1 → flextool-4.7.3}/tests/test_safe_text.py +0 -0
  798. {flextool-4.7.1 → flextool-4.7.3}/tests/test_scenario_colors.py +0 -0
  799. {flextool-4.7.1 → flextool-4.7.3}/tests/test_scenario_stack.py +0 -0
  800. {flextool-4.7.1 → flextool-4.7.3}/tests/test_scenarios.py +0 -0
  801. {flextool-4.7.1 → flextool-4.7.3}/tests/test_self_describing_reader.py +0 -0
  802. {flextool-4.7.1 → flextool-4.7.3}/tests/test_shared_axis_manifest.py +0 -0
  803. {flextool-4.7.1 → flextool-4.7.3}/tests/test_simple_bar_entity_color.py +0 -0
  804. {flextool-4.7.1 → flextool-4.7.3}/tests/test_solve_config.py +0 -0
  805. {flextool-4.7.1 → flextool-4.7.3}/tests/test_solve_reader.py +0 -0
  806. {flextool-4.7.1 → flextool-4.7.3}/tests/test_specification_excel_import.py +0 -0
  807. {flextool-4.7.1 → flextool-4.7.3}/tests/test_sqlite_url.py +0 -0
  808. {flextool-4.7.1 → flextool-4.7.3}/tests/test_stochastic_co2_total_price.py +0 -0
  809. {flextool-4.7.1 → flextool-4.7.3}/tests/test_stream_concat_temp_cleanup.py +0 -0
  810. {flextool-4.7.1 → flextool-4.7.3}/tests/test_support_load.py +0 -0
  811. {flextool-4.7.1 → flextool-4.7.3}/tests/test_synthesize_invest_dual.py +0 -0
  812. {flextool-4.7.1 → flextool-4.7.3}/tests/test_thread_budget.py +0 -0
  813. {flextool-4.7.1 → flextool-4.7.3}/tests/test_time_runs.py +0 -0
  814. {flextool-4.7.1 → flextool-4.7.3}/tests/test_timeline_breaks.py +0 -0
  815. {flextool-4.7.1 → flextool-4.7.3}/tests/test_timings_csv.py +0 -0
  816. {flextool-4.7.1 → flextool-4.7.3}/tests/test_toolbox_specs.py +0 -0
  817. {flextool-4.7.1 → flextool-4.7.3}/tests/test_unidirectional_connection.py +0 -0
  818. {flextool-4.7.1 → flextool-4.7.3}/tests/test_unit_online_dt_columns.py +0 -0
  819. {flextool-4.7.1 → flextool-4.7.3}/tests/test_units_of_measure.py +0 -0
  820. {flextool-4.7.1 → flextool-4.7.3}/tests/test_units_of_measure_validators.py +0 -0
  821. {flextool-4.7.1 → flextool-4.7.3}/tests/test_user_dirs_isolation.py +0 -0
  822. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v52_migration.py +0 -0
  823. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v63_migration.py +0 -0
  824. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v64_migration.py +0 -0
  825. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v65_migration.py +0 -0
  826. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v66_migration.py +0 -0
  827. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v67_migration.py +0 -0
  828. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v68_migration.py +0 -0
  829. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v69_migration.py +0 -0
  830. {flextool-4.7.1 → flextool-4.7.3}/tests/test_v70_migration.py +0 -0
  831. {flextool-4.7.1 → flextool-4.7.3}/tests/test_workdir_empty_default.py +0 -0
  832. {flextool-4.7.1 → flextool-4.7.3}/tests/test_xlsx_startup_input_round_trip.py +0 -0
  833. {flextool-4.7.1 → flextool-4.7.3}/tests/test_xlsx_v77_round_trip.py +0 -0
  834. {flextool-4.7.1 → flextool-4.7.3}/tests/test_xlsx_workflow.py +0 -0
  835. {flextool-4.7.1 → flextool-4.7.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.7.1
3
+ Version: 4.7.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
@@ -10,7 +10,7 @@ emitters, solve orchestration, handoff) are in [engine.md](engine.md).
10
10
  |---|---|
11
11
  | Orientation: data flow, packages | [Top-level data flow](#top-level-data-flow), [Repository layout](#repository-layout), [Key architectural patterns](#key-architectural-patterns) |
12
12
  | Add a model parameter | [Parameter shapes](#parameter-shapes-dt-broadcasting), [Solve-step aggregation](#solve-step-aggregation-new_stepduration-of-a-solve), [autoscale registry](#layers-bottom-up), engine [Where to start when…](engine.md#where-to-start-when) |
13
- | Add a constraint / variable | engine [LP build](engine.md#lp-build-modelcorepy-and-the-feature-modules), [Equation headers](engine.md#equation-headers), [autoscale registry](#layers-bottom-up) |
13
+ | Add a constraint / variable | engine [LP build](engine.md#lp-build-modelcore-and-the-feature-modules), [Equation headers](engine.md#equation-headers), [autoscale registry](#layers-bottom-up) |
14
14
  | Change preprocess emit | engine [Emitters](engine.md#emitters), [Vectorized per-roll emit](engine.md#vectorized-per-roll-emit) |
15
15
  | Change solve orchestration / rolling / stochastic handoff | engine [Solve modes](engine.md#solve-modes), [Solve-to-solve handoff](engine.md#solve-to-solve-handoff), [Stochastic branches](engine.md#stochastic-branches) |
16
16
  | Schema change & migration | [update_flextool](#flextoolupdate_flextool-migration-and-updates), CONTRIBUTING.md "Updating the Data Structure" |
@@ -475,7 +475,7 @@ reaching the generic broadcast raises.
475
475
 
476
476
  ##### Silent-default `"x"` index — readers outside the resolver
477
477
 
478
- Not every DB read goes through `resolve_param_shape`. The **per-entity cascades** in `_derived.py` /
478
+ Not every DB read goes through `resolve_param_shape`. The **per-entity cascades** in `params/_derived/` /
479
479
  `_existing.py` / `_lifetime_inputs.py` read raw entity params (`source.parameter(...)`) and must detect the period
480
480
  axis themselves. The failure mode is the resolver's: spinedb_api's default `index_name` is the literal string
481
481
  `"x"` (real 2-D maps carry `index_name='x'`, see `_spinedb_reader._discover_index_cols`), so an
@@ -680,7 +680,7 @@ CI-enforced verify chain (`tests.yml::template-check`):
680
680
  group and prepare sub-problems for the Benders solve mode (the filter-only
681
681
  `--region` CLI entry point that materialises one region's standalone input
682
682
  directory). The in-engine slicer used by the live Benders driver lives at
683
- `engine/solve/_region_filter.py`; the master + cut loop is in
683
+ `engine/solve/_region_filter/` (map in its `__init__.py`); the master + cut loop is in
684
684
  `engine/solve/_benders.py`.
685
685
 
686
686
  ### `flextool/model_builder/` and `flextool/representative_periods/`
@@ -968,7 +968,7 @@ changes the optimum. User-facing guide (modes, the guard's thresholds and messag
968
968
  quantity type of every variable (`VARIABLE_FAMILIES`), constraint (`CONSTRAINT_FAMILIES` via `lookup_cstr`) and
969
969
  parameter (`PARAMETER_TYPES`) in `_layer2_types.py` / `_quantity_types.py`. These registries refuse to default
970
970
  — an unregistered name raises `KeyError` in `bucket_coefficients`. That `KeyError` is **caught** in
971
- `_orchestration._autoscale_apply_layer2_pre_solve` and the solve silently reverts to an **un-scaled LP**
971
+ `_orchestration._autoscale_hooks._autoscale_apply_layer2_pre_solve` and the solve silently reverts to an **un-scaled LP**
972
972
  ("autoscale Layer 2 apply failed … reverting"), so a missing registration does not crash — it quietly disables
973
973
  autoscaling. So: every new `add_var(...)` / `add_cstr(...)` literal and every new schema parameter MUST get a
974
974
  registry entry (flags / `yes_no` gates → `DIMENSIONLESS`). `lookup_cstr` resolves dynamic (f-string)
@@ -13,7 +13,7 @@ cross-cutting invariants are in [architecture.md](architecture.md).
13
13
  | Task | Sections |
14
14
  |---|---|
15
15
  | Add a model parameter | [Where to start when…](#where-to-start-when), architecture [Parameter shapes](architecture.md#parameter-shapes-dt-broadcasting), [Solve-step aggregation](architecture.md#solve-step-aggregation-new_stepduration-of-a-solve), [autoscale registry](architecture.md#layers-bottom-up) |
16
- | Add a constraint / variable / objective term | [LP build](#lp-build-modelcorepy-and-the-feature-modules), [Feature flags](#feature-flags-and-required-fields), [Equation headers](#equation-headers) |
16
+ | Add a constraint / variable / objective term | [LP build](#lp-build-modelcore-and-the-feature-modules), [Feature flags](#feature-flags-and-required-fields), [Equation headers](#equation-headers) |
17
17
  | Add an optional model feature | [Where to start when…](#where-to-start-when), [Feature flags](#feature-flags-and-required-fields) |
18
18
  | Change a preprocess emit / derive | [Emitters](#emitters), [Vectorized per-roll emit](#vectorized-per-roll-emit), [FlexDataProvider](#flexdataprovider-and-override-translator) |
19
19
  | Change solve orchestration, warm start, Benders | [Per-solve pipeline](#per-solve-pipeline), [Solve modes](#solve-modes) |
@@ -67,7 +67,7 @@ The steps, with their modules, are listed in `flextool/engine/README.md`
67
67
 
68
68
  `solve.reduce_unit_detail_method` / `reduce_system_detail_method` (user docs: entities_and_time.md "Leaving out
69
69
  detail in a solve") are applied in one place: `preprocess._reduce_detail.apply_reduce_detail(d, unit, system)`,
70
- called by the cascade right after `load_flextool` for every sub-solve (`_orchestration._drive_cascade`). Every
70
+ called by the cascade right after `load_flextool` for every sub-solve (`_orchestration._cascade._drive_cascade`). Every
71
71
  consumer after it reads the reduced data: the online / ramp carry check (`check_online_ramp_carry`, outside
72
72
  `load_flextool` so that it sees the reduced online set), the realization checks, the Benders split, the cold and
73
73
  warm build, the handoff and the per-roll outputs. The per-roll emit and the input derivation are not changed.
@@ -131,10 +131,14 @@ Which `has_*` flags each level turns off is listed under [Feature flags](#featur
131
131
 
132
132
  ## FlexData — the central data carrier
133
133
 
134
- `FlexData` (`preprocess/flex_data.py`) is a `@dataclass` of about 400
134
+ `FlexData` (`preprocess/flex_data/_container.py`) is a `@dataclass` of about 400
135
135
  fields. Nine are positional and always present (the time / weighting / node
136
136
  floor); every other field defaults to `None` and is filled in only when
137
- the scenario exercises the corresponding feature.
137
+ the scenario exercises the corresponding feature. The package
138
+ `preprocess/flex_data/` re-exports the public names; its modules are the
139
+ container, the shared readers (`_readers`), the feature loaders (`_load_*`,
140
+ `_coarse`), `load_flextool` (`_load`), the DB-direct passes (`_db_overrides`)
141
+ and `build_handoff_from_solution` with its helpers (`_handoff*`).
138
142
 
139
143
  The naming convention is documented on the class:
140
144
 
@@ -183,7 +187,7 @@ or stale CSVs in a reused work folder cannot change a run (Rule 4 of
183
187
  provider from them first; architecture.md
184
188
  [CSV dump](architecture.md#csv-dump-supported-and-csv-reload-unsupported)).
185
189
 
186
- ## LP build: `model/core.py` and the feature modules
190
+ ## LP build: `model/core/` and the feature modules
187
191
 
188
192
  `build_flextool(m, d)` builds the LP into the `polar_high.Problem` `m`
189
193
  from the `FlexData` `d`. Its body is a table of contents: a list of
@@ -209,16 +213,22 @@ few shared expressions):
209
213
 
210
214
  Every family function starts with an early-return guard on its flag
211
215
  (`if not b.has_storage: return`), so a feature whose data is empty emits
212
- nothing. The `model/core.py` module docstring is the map: every variable with
216
+ nothing. The `model/core/__init__.py` docstring is the map: every variable with
213
217
  its dims and unit, and every equation family in emit order with the
214
218
  module it lives in. Each row, objective term and variable carries an
215
219
  `EQ.` / `OBJ.` / `VAR.` header with its formula, so
216
220
  `grep -rn "EQ. ─── maxFlow" flextool/engine` finds an equation.
217
221
 
218
- **What lives where.** `model/core.py` holds the core model that every run
219
- uses: node balance, storage state, flows and capacity, conversion,
220
- investment maxima, CO2 caps, user constraints, profiles and the core
221
- objective. An optional feature that brings its own variables or rows
222
+ **What lives where.** The package `model/core/` holds the core model that
223
+ every run uses, one module per equation family: `_prepare` (flags, data
224
+ checks, index sets), `_variables` (variables and shared expressions),
225
+ `_rp_storage`, `_node_balance`, `_flows` (maxFlow, maxOutputSum),
226
+ `_ramp`, `_invest` (investment maxima), `_conversion`, `_co2`,
227
+ `_user_constraints`, `_storage_state`, `_profiles` and `_objective`;
228
+ `_storage_links` holds the storage helpers several of them read,
229
+ `_context` the `_Build` context and the required-field tuples, `_build`
230
+ the table of contents. `core/__init__.py` re-exports the public names
231
+ only: code that needs a private helper imports it from its module. An optional feature that brings its own variables or rows
222
232
  lives in its own module, exposing the parts of the interface it needs —
223
233
  `add_variables(b)`, `add_constraints(b)`, `objective_terms(b)`:
224
234
  `_online` (unit commitment), `_unit_floors` (minimum load and
@@ -242,7 +252,7 @@ degenerate models. Check the effect with `tools/lp_snapshot.py`
242
252
 
243
253
  `_prepare` sets one `has_*` flag per feature on the `_Build` context from
244
254
  its switch field on `FlexData`. The data each feature needs is a
245
- module-level tuple at the top of `model/core.py`:
255
+ module-level tuple in `model/core/_context.py`:
246
256
 
247
257
  ```python
248
258
  ALWAYS = ("dt", "nodeBalance",
@@ -347,7 +357,7 @@ grammar; `tests/docs/test_header_grammar.py` checks it):
347
357
  - **One header per family.** A generic row helper carries no header; its
348
358
  callers do (`ROW_HELPERS` in the test: `_coarse_flows.add_cstr` /
349
359
  `add_twin` / `add_row_rule_cstr`, `_lead_time.period_limit`,
350
- `core._ramp_family`, `_cumulative_invest._group_period_limit_online`,
360
+ `core._ramp._ramp_family`, `_cumulative_invest._group_period_limit_online`,
351
361
  `_online._add_max_input_flow_online`).
352
362
  - **Ratchets** (`tests/docs/test_header_grammar.py`): every `add_cstr` /
353
363
  `add_var` in `engine/model/` has a header earlier in its function or sits
@@ -513,7 +523,7 @@ heat rate) is checked before the solve, so the curve is the upper envelope of it
513
523
  One-input, one-output multi-line units (`process_piecewise_remap`) keep their input-side items on the output
514
524
  (`_projection.single_input_curve_arc_remap`); reserves, operating cost, start-up input, commodity / CO2,
515
525
  flowGroup membership and inertia stay on the input.
516
- - **Model** (`core._eq_conversion_piecewise`, rows `conversion_piecewise` and the coarse twin): weighted input ≥
526
+ - **Model** (`core._conversion._eq_conversion_piecewise`, rows `conversion_piecewise` and the coarse twin): weighted input ≥
517
527
  `pw_slope·x + pw_intercept·unitsize·U` for every line, `U` = units online, or the units built (existing count +
518
528
  invested − divested) without online variables; `conversion_indirect` skips these units. The rows are `≥`, so the
519
529
  input can exceed the curve where that costs nothing or pays (the over-burn cases, units.md "Input above the
@@ -554,7 +564,7 @@ adds:
554
564
  | `maxState_rp_start` | `model._eq_rp_storage_chain` | Sibling capacity bound on `v_state_rp_start[n, d, t]` over `rp_block_first`. Both bounds depend on invest/divest, so they are rows rather than variable bounds. |
555
565
  | `non_anticipativity_rp_block_start` | `model._non_anticipativity.add_dispatch_constraints` | `v_state_rp_start` equal across the forecast star at the block starts inside the tie window, for `include_stochastics` nodes in `nodeState_rp`; a block already tied by a `non_anticipativity_storage_state_first` row is left out. |
556
566
 
557
- In a stochastic solve every forecast branch period is an rp period with the timeset of the period it branches from (`_solve_writers._with_branch_period_timesets`); `rp_period_previous` is then a tree (a branch's first period ← the trunk period, later periods ← the same branch). A rolling_window solve on representative periods is a configuration error (`_run_model._reject_rolling_rp`), and so is a plain bind_forward_only node in a solve on representative periods (`_run_model._reject_plain_forward_in_rp_solve`). A plain bind_within_solve / bind_within_period / bind_intraperiod_blocks node there is a warning (`_run_model._warn_plain_cyclic_in_rp_solve`: the plain cycle moves the level between the representative periods unweighted while their flows are weighted, which is reasonable with equal weights or storage whose inflow timing does not matter; the weights are the user's to use).
567
+ In a stochastic solve every forecast branch period is an rp period with the timeset of the period it branches from (`_solve_writers._with_branch_period_timesets`); `rp_period_previous` is then a tree (a branch's first period ← the trunk period, later periods ← the same branch). A rolling_window solve on representative periods is a configuration error (`_run_model._rp_methods._reject_rolling_rp`), and so is a plain bind_forward_only node in a solve on representative periods (`_run_model._rp_methods._reject_plain_forward_in_rp_solve`). A plain bind_within_solve / bind_within_period / bind_intraperiod_blocks node there is a warning (`_run_model._rp_methods._warn_plain_cyclic_in_rp_solve`: the plain cycle moves the level between the representative periods unweighted while their flows are weighted, which is reasonable with equal weights or storage whose inflow timing does not matter; the weights are the user's to use).
558
568
 
559
569
  The three blended-weights methods that activate the block —
560
570
  `bind_within_solve_blended_weights`, `bind_within_period_blended_weights`,
@@ -580,7 +590,7 @@ import path. Both decode to the same nested
580
590
  `rp_base_first`, `rp_base_last`, `rp_block_*` and `rp_base_period_set`
581
591
  companion sets, one set of rows per period of the solve (every frame has a
582
592
  `period` column), plus `rp_period_previous` (the rp periods in solve
583
- order). `solve/_run_model.py` emits them for every period whose timeset
593
+ order). `solve/_run_model/_native_run_model.py` emits them for every period whose timeset
584
594
  has `representative_period_weights`; periods without keep their
585
595
  `timeset_weights` rows in the same `timestep_weight` frame. The forecast
586
596
  branch periods of a stochastic solve are rp periods with the timeset of the
@@ -706,7 +716,7 @@ from `_period_params`; `_fixed_costs` reads
706
716
  in `_arc_unions`.
707
717
 
708
718
  The runner does not compute the order. It is encoded in the call
709
- order of `_apply_db_overrides` (in `flex_data.py`) and the load sequence
719
+ order of `_apply_db_overrides` (in `flex_data/_db_overrides.py`) and the load sequence
710
720
  in `load_flextool`. Adding a new derived field typically means appending
711
721
  one call to the right phase.
712
722
 
@@ -803,14 +813,14 @@ Known gaps (not exercised, or not Enum, in this mode):
803
813
  and the CLI region export (`decomposition/region_filter.py`), the staged input
804
814
  loader (`engine/input/_db_loader.py`), the CSV reload
805
815
  (`engine/_csv_reload/load.py`), and the sub-solve provider that
806
- `_run_model.py` builds when the run state carries none.
816
+ `_run_model.native_run_model` builds when the run state carries none.
807
817
  - Engine Benders inherits the vocabulary through `FlexData`
808
- (`_region_filter.py` widens it per region), but no lp_snapshot
818
+ (`_region_filter.split` widens it per region), but no lp_snapshot
809
819
  fixture runs it; only the Benders / master-hosted region tests that
810
820
  load with `axis_enums=True` cover it.
811
821
  - Intended narrowing casts null labels outside the scenario's
812
822
  vocabulary: `d` casts of periods outside the solve (`_retire_settlement.py`,
813
- `_derived.py`) and the `constraint` cast in `_spinedb_reader.py`. No
823
+ `params/_derived/`) and the `constraint` cast in `_spinedb_reader.py`. No
814
824
  LP effect in the fixtures; a site that needs such a label must not
815
825
  read it through the cast.
816
826
 
@@ -920,6 +930,20 @@ folder) is architecture.md
920
930
  The same `build_flextool` body backs three solver wrappers exported by
921
931
  `polar_high`. They differ only in what they do *between* solves.
922
932
 
933
+ The loop that drives them is the `solve/_orchestration/` package: `_entry`
934
+ (`run_chain_from_db`, `run_orchestration`), `_cascade` (`_drive_cascade` and its
935
+ per-sub-solve `_run_one`: load, build or warm reuse, solve, outputs, handoff),
936
+ `_highs_options` (the HiGHS option set of a sub-solve), `_autoscale_hooks` (the
937
+ autoscale steps around a solve), `_guards` (solve-chain guards and the realization
938
+ solves of stochastic solves), `_steps` (`OrchestrationStep`) and `_memory` (the
939
+ memory / phase diagnostics). `_drive_cascade` hands each sub-solve to it from the
940
+ `solve/_run_model/` package: `_native_run_model` (`native_run_model`: the solve-tree
941
+ expansion, stochastic branching and the per-solve setup), `_rolling_storage` /
942
+ `_nested_storage` (the storage carry of rolling and nested solves), `_rp_methods`
943
+ (storage-binding methods on representative periods, the fix_start_end forward chain),
944
+ `_storage_frames` (the shared method readers and `_RollingStorage`) and
945
+ `_run_timelines` (realization-roll plans, run time steps).
946
+
923
947
  ### Monolithic — `polar_high.Problem`
924
948
 
925
949
  The default. One LP, one HiGHS run. Used for every single-shot solve
@@ -1035,15 +1059,15 @@ columns are those of the module docstring:
1035
1059
  The other attributes are not carriers: `unit_detail` / `online_left_out`
1036
1060
  ([Solve-level detail reduction](#solve-level-detail-reduction)), and
1037
1061
  `cycle_start_state`, `storage_level`, `scope_start_state`,
1038
- `realised_storage_usage`, which the cascade (`solve/_run_model.py`) reads
1062
+ `realised_storage_usage`, which the cascade (the `solve/_run_model/` package) reads
1039
1063
  for cyclic scopes, nested starts and the per-roll usage cap.
1040
1064
 
1041
- **Producer and transport.** `build_handoff_from_solution` (`flex_data.py`)
1065
+ **Producer and transport.** `build_handoff_from_solution` (`flex_data/_handoff.py`)
1042
1066
  populates one `SolveHandoff` from the just-completed solve's `polar_high`
1043
1067
  Solution and the sub-solve's provider (which it requires). The cascade
1044
1068
  transports the carriers through the Provider's `HANDOFF_*` keys
1045
1069
  (`_provider_translators._FIELD_TO_KEY`) — zero disk round-trips — and the
1046
- override translator + `_apply_db_overrides` chain in `flex_data.py`
1070
+ override translator + `_apply_db_overrides` chain in `flex_data/_db_overrides.py`
1047
1071
  translates each carrier into the next `FlexData`'s `p_entity_*` parameters
1048
1072
  and the corresponding `n_*` / `ndt_*` / `p_*` sets
1049
1073
  (`p_fix_storage_quantity`, `p_fix_storage_usage`,
@@ -1262,7 +1286,7 @@ for `fix_price` (an objective term). The horizon-end reference value
1262
1286
  `handoff/fix_storage_price`).
1263
1287
 
1264
1288
  A `fix_start_end` node ignores its `storage_binding_method` (reference/nodes.md,
1265
- exception `bind_forward_only`): `_run_model._fix_start_end_chains_forward`
1289
+ exception `bind_forward_only`): `_run_model._rp_methods._fix_start_end_chains_forward`
1266
1290
  rewrites the per-solve `input/node__storage_binding_method` frame right
1267
1291
  after `_downgrade_rp_methods_for_non_rp_solve` (so a blended node of a
1268
1292
  solve without representative periods goes blended → plain →
@@ -1286,7 +1310,7 @@ on representative periods the mapping is `_FIX_START_END_FORWARD_RP`: a
1286
1310
  configuration error, `_reject_plain_forward_in_rp_solve`, checked on the
1287
1311
  database methods before this mapping).
1288
1312
 
1289
- Then `_run_model._timeblock_binds_within_period_in_roll` rewrites
1313
+ Then `_run_model._rolling_storage._timeblock_binds_within_period_in_roll` rewrites
1290
1314
  `bind_within_timeblock` to `bind_within_period` in a rolling solve
1291
1315
  (`_reject_rolling_with_gaps` has made sure each period is one timeblock),
1292
1316
  so the per-period rolling rule (`_scope_rows`, `scope_*` rows) applies to
@@ -1372,7 +1396,7 @@ Behaviours to know:
1372
1396
  operational is tied; unset for a dispatch solve, which ties its committed
1373
1397
  window). Under `operations_only` the investments stay on the period labels.
1374
1398
  A per-branch investment is never realized; the handoff realizes the tied
1375
- reveal-period copy under its label (`flex_data._label_tied_cohorts`), and the
1399
+ reveal-period copy under its label (`flex_data._handoff_inputs._label_tied_cohorts`), and the
1376
1400
  realization solve of an investment solve starts at the reveal
1377
1401
  (`SolveConfig.realization_window`).
1378
1402
 
@@ -1442,22 +1466,22 @@ API of the other packages is in architecture.md
1442
1466
 
1443
1467
  | You want to… | Start at | Then read |
1444
1468
  |---|---|---|
1445
- | Add a constraint that uses only existing parameters | `model/core.py` table of contents in `build_flextool` | Write an `_eq_<family>(b)` function: an early-return guard on its flag (`if not b.has_<x>: return`), then an `EQ. ─── <name>` header (formula, one to three lines on what it does) above the `m.add_cstr` call. Add it to the table of contents next to related families. A constraint of an optional feature goes into that feature's module (`add_constraints(b)`). Placement sets the LP row order: check the effect with `tools/lp_snapshot.py`. Register the constraint name in autoscale `CONSTRAINT_FAMILIES` (architecture.md [Layers](architecture.md#layers-bottom-up)), a period-level family also in `PERIOD_ROW_KINDS` / `REVIEWED_STEP_LEVEL` ([Realization rolls](#realization-rolls)), and list it in the `model/core.py` module docstring. |
1446
- | Add a new input parameter | `_param_shapes.py` `PARAM_ALLOWED_SHAPES` | Add the parameter's entry, then populate it in `_direct.py` (trivial DB read) or a new module in `preprocess/params/` (computed). Add the field to `FlexData` and to the relevant feature's required-field tuple in `model/core.py`. Register it in autoscale `PARAMETER_TYPES`; a time series also needs its `TIME_AGGREGATION` kind (architecture.md [Solve-step aggregation](architecture.md#solve-step-aggregation-new_stepduration-of-a-solve)). A parameter that takes several shapes needs a constant-vs-equivalent-map test (CONTRIBUTING.md "Shape-equivalence tests"). |
1447
- | Add a new pre-solve set / index | `_per_solve_sets.py` if it's per-active-solve; a new module in `preprocess/emit/` otherwise | Wire the new function into `_apply_db_overrides` in `flex_data.py`. A frame that links two steps goes in `STEP_RELATIONS`. |
1448
- | Add a new optional feature | A new module next to `_reserve.py` / `_group_slack.py` | Give it `add_variables(b)` (variables with `VAR.` headers, set on `b`), `add_constraints(b)` and `objective_terms(b) -> Expr \| None`, each with an early-return guard on the feature's flag. Add the flag (and any variable fields) to `_Build`; set the flag in `_prepare`, with a `MY_FEATURE = (...)` required-field tuple and a `_check(d, MY_FEATURE, "my_feature")` call if it needs one. Call `add_variables` from `_declare_variables` and put `add_constraints` / `objective_terms` in the `build_flextool` table of contents. Register every new variable and constraint in autoscale `VARIABLE_FAMILIES` / `CONSTRAINT_FAMILIES`, add them to the `model/core.py` module docstring, and check the LP with `tools/lp_snapshot.py`. |
1469
+ | Add a constraint that uses only existing parameters | `model/core/_build.py` table of contents in `build_flextool` | Write an `_eq_<family>(b)` function: an early-return guard on its flag (`if not b.has_<x>: return`), then an `EQ. ─── <name>` header (formula, one to three lines on what it does) above the `m.add_cstr` call. Add it to the table of contents next to related families. A constraint of an optional feature goes into that feature's module (`add_constraints(b)`). Placement sets the LP row order: check the effect with `tools/lp_snapshot.py`. Register the constraint name in autoscale `CONSTRAINT_FAMILIES` (architecture.md [Layers](architecture.md#layers-bottom-up)), a period-level family also in `PERIOD_ROW_KINDS` / `REVIEWED_STEP_LEVEL` ([Realization rolls](#realization-rolls)), and list it in the `model/core/_build.py` module docstring. |
1470
+ | Add a new input parameter | `_param_shapes.py` `PARAM_ALLOWED_SHAPES` | Add the parameter's entry, then populate it in `_direct.py` (trivial DB read) or a new module in `preprocess/params/` (computed). Add the field to `FlexData` and to the relevant feature's required-field tuple in `model/core/`. Register it in autoscale `PARAMETER_TYPES`; a time series also needs its `TIME_AGGREGATION` kind (architecture.md [Solve-step aggregation](architecture.md#solve-step-aggregation-new_stepduration-of-a-solve)). A parameter that takes several shapes needs a constant-vs-equivalent-map test (CONTRIBUTING.md "Shape-equivalence tests"). |
1471
+ | Add a new pre-solve set / index | `_per_solve_sets.py` if it's per-active-solve; a new module in `preprocess/emit/` otherwise | Wire the new function into `_apply_db_overrides` in `flex_data/_db_overrides.py`. A frame that links two steps goes in `STEP_RELATIONS`. |
1472
+ | Add a new optional feature | A new module next to `_reserve.py` / `_group_slack.py` | Give it `add_variables(b)` (variables with `VAR.` headers, set on `b`), `add_constraints(b)` and `objective_terms(b) -> Expr \| None`, each with an early-return guard on the feature's flag. Add the flag (and any variable fields) to `_Build`; set the flag in `_prepare`, with a `MY_FEATURE = (...)` required-field tuple and a `_check(d, MY_FEATURE, "my_feature")` call if it needs one. Call `add_variables` from `_declare_variables` and put `add_constraints` / `objective_terms` in the `build_flextool` table of contents. Register every new variable and constraint in autoscale `VARIABLE_FAMILIES` / `CONSTRAINT_FAMILIES`, add them to the `model/core/` module docstring, and check the LP with `tools/lp_snapshot.py`. |
1449
1473
  | Trace a numerical issue | `solve_data/autoscale_<solve>.yaml` | The Layer 1 ranges + Layer 2/3 plans show which families are wide and which scalers fired. [scaling.md](scaling.md), architecture.md [Numerical scaling](architecture.md#numerical-scaling). |
1450
1474
  | Trace a feasibility issue | `vq_*` outputs in `output_parquet/` | Slack activity localises the infeasibility to a row family. [slack_convention.md](slack_convention.md). |
1451
- | Add a new decomposition mode | `_benders.py` (+ `_region_filter.py`) for spatial, `_warm.py` + `_orchestration.py` `_drive_cascade` for temporal | Each carries the FlexTool-side glue around a `polar_high` driver. Read [decomposition.md](decomposition.md) first. |
1452
- | Trace a wrong-period bug in rolling horizon | `_apply_db_overrides` in `flex_data.py` | The handoff translation site. Cross-check against the `SolveHandoff` fields populated by `build_handoff_from_solution` and the routing in `solve/_carry_routing.py`. |
1453
- | Trace a warm-LP divergence | `_warm._reuse_blocker`, `_orchestration` `solver_key` | A reuse requires every `FlexData` field and the solver configuration to be identical; the INFO line "warm reuse fell back to COLD REBUILD" names the blocker. A warm/cold divergence on a reused sub-solve means something that shapes the LP lives outside `FlexData` and the solver key: add it to the comparison. |
1475
+ | Add a new decomposition mode | `_benders.py` (+ `_region_filter/`) for spatial, `_warm.py` + `_orchestration/_cascade.py` `_drive_cascade` for temporal | Each carries the FlexTool-side glue around a `polar_high` driver. Read [decomposition.md](decomposition.md) first. |
1476
+ | Trace a wrong-period bug in rolling horizon | `_apply_db_overrides` in `flex_data/_db_overrides.py` | The handoff translation site. Cross-check against the `SolveHandoff` fields populated by `build_handoff_from_solution` and the routing in `solve/_carry_routing.py`. |
1477
+ | Trace a warm-LP divergence | `_warm._reuse_blocker`, `_orchestration/_cascade.py` `solver_key` | A reuse requires every `FlexData` field and the solver configuration to be identical; the INFO line "warm reuse fell back to COLD REBUILD" names the blocker. A warm/cold divergence on a reused sub-solve means something that shapes the LP lives outside `FlexData` and the solver key: add it to the comparison. |
1454
1478
  | Add a new variable / dual to the parquet output | `flextool/process_outputs/read_highs_solution.VARIABLE_SPECS` | Append one `VariableSpec` (architecture.md [Solution extraction](architecture.md#solution-extraction)). |
1455
1479
 
1456
1480
  ## Conventions worth knowing
1457
1481
 
1458
1482
  - **Lazy at the rim, eager at the boundary.** Internal frames are
1459
1483
  `pl.LazyFrame`; helpers `.collect()` once at the function boundary.
1460
- This is the pattern documented at the top of `_derived.py`
1484
+ This is the pattern documented in `params/_derived/__init__.py`
1461
1485
  and `_per_solve_sets.py`.
1462
1486
  - **None-skip is canonical.** A field at `None` means "feature not
1463
1487
  active" and is the recommended way to opt out. Empty frames mean
@@ -75,7 +75,7 @@ The choice is per solve, so a single chain can mix schemes (e.g. a
75
75
  Benders investment solve followed by a monolithic dispatch solve — the
76
76
  Benders invest solve's realised trade + in-region capacity threads into
77
77
  the downstream dispatch). The per-solve routing is in
78
- `flextool/engine/solve/_orchestration.py` and the coordinator (master +
78
+ `flextool/engine/solve/_orchestration/_cascade.py` and the coordinator (master +
79
79
  cut loop) in `flextool/engine/solve/_benders.py`. `benders_max_iter`
80
80
  caps the cut loop and `benders_tolerance` is the relative
81
81
  optimality-gap threshold for declaring convergence. Use Benders when the
@@ -279,7 +279,7 @@ The minimum time constraints work with variable timestep durations. The constrai
279
279
 
280
280
  The look-back follows the timeline in the same way as ramp limits: it continues into a period whose time steps continue the previous period's on the same timeline and into the steps before a forecast branch starts, and stops at a gap in the timeline (the minimum time restarts after the gap), at the start of a representative period, at a period that reuses the same timeset as the previous one and at the first step of a solve. In rolling window solves, the start-ups and shut-downs that the previous roll realized count for the time steps of the next roll that continue its last realized step on the timeline, in the same way as the ramp continues: the same period, a period that continues it and every forecast branch that starts there (not a period that reuses the same timeset, a step after a gap or a representative-period start). So the solve horizon overlap does not need to cover the minimum times. A solve with longer time steps (for example a 6-hour storage roll after an hourly dispatch) continues the realized hourly step that ends where its own previous step ends, by position in time. A warning is printed only when a solve continues the timeline of an earlier solve but its first step neither follows nor ends at the earlier solve's last realized step (a hole or an overlap between the two), since no realized on-line history reaches it then.
281
281
 
282
- If the unit also has ramp limits (`ramp_method` with `ramp_speed_up`, `ramp_speed_down`), the model additionally tightens the maximum output in the startup and pre-shutdown timesteps based on how fast the unit can ramp within one timestep. A unit that starts in a timestep reaches on average at most `min_load + ½ × ramp_speed_up × 60 × timestep duration` of the started capacity in that step (it synchronises at minimum load and then ramps up: half a step's ramp on average), and in the step before it shuts down at most `min_load + ½ × ramp_speed_down × 60 × timestep duration` (both capped at full output and by `availability`). A unit online for a single step gets the smaller of the two. On an input with a ramp limit of a unit with several inputs or outputs, the limit is on the input it draws (at minimum load it needs the input of its minimum-load output). Without ramp limits, the unit can reach full output immediately after starting.
282
+ If the unit also has ramp limits (`ramp_method` with `ramp_speed_up`, `ramp_speed_down`), the model additionally tightens the maximum output in the startup and pre-shutdown timesteps based on how fast the unit can ramp within one timestep. A unit that starts in a timestep reaches on average at most `min_load + ½ × ramp_speed_up × 60 × timestep duration` of the started capacity in that step (it synchronises at minimum load and then ramps up: half a step's ramp on average), and in the step before it shuts down at most `min_load + ½ × ramp_speed_down × 60 × timestep duration` (both capped at full output; `availability` limits the unit's total output through its capacity). A unit online for a single step gets the smaller of the two. On an input with a ramp limit of a unit with several inputs or outputs, the limit is on the input it draws (at minimum load it needs the input of its minimum-load output). Without ramp limits, the unit can reach full output immediately after starting.
283
283
 
284
284
  Startups and shutdowns count exactly the units coming online and going offline. A unit with online variables ramps on its online capacity: the units online in both steps change by at most the ramp; a unit starting in a step reaches at most the startup-step output above, and a unit shutting down drops from at least its minimum load (and, in the step before, at most the pre-shutdown output). Starting and stopping units in the same step therefore gives no extra ramp room on a unit's output. On an input, or on one output of a unit with several outputs, a start/stop pair can still gain up to the minimum-load share of that flow, which the startup cost pays for.
285
285
 
@@ -8,7 +8,7 @@ Connections can transfer energy between two nodes. Parameters for the connection
8
8
  - it cannot model losses (a loss one way would be a gain the other way), so its `efficiency` is ignored (treated as 1, with a warning: W-0591) when the two nodes have the same `unit_of_measure` or either has none, and always on a line of a `dc_power_flow_with_angles` group. For losses, use *regular* or *exact*.
9
9
  - between nodes with different `unit_of_measure` values, the `efficiency` is a conversion between the units (e.g. MWh to t), the same in both directions: the flow f arriving at the second node takes f / `efficiency` from the first, and in the reverse direction the first node gets f / `efficiency` for the f taken from the second. FlexTool warns about it (W-0589).
10
10
  - its `other_operational_cost` is ignored (it would be a cost one way and a revenue the other), with a warning (W-0590). For a variable cost, use *variable_cost_only*, *regular* or *exact*.
11
- - `startup_method` gives the connection online capacity. *linear*: the online capacity is anything between 0 and the built capacity; *integer*: whole units of the connection (of `virtual_unitsize`, else the whole connection), computationally more demanding; *linear_fix_in_uc* and *integer_fix_in_uc*: the same, and in a separate realization solve the online capacity over the jump (the realized periods) is kept at what the stochastic solve chose. The connection's flow in each direction is limited by its online capacity × availability, its reserve by its online capacity, and `startup_cost` is paid per MW brought online. Connections have no minimum load or minimum up/down times. Not available for connections in a `dc_power_flow_with_angles` group, other than `is_DC` connections (an error: switching a DC power-flow line off would need line-switching constraints).
11
+ - `startup_method` gives the connection online capacity. *linear*: the online capacity is anything between 0 and the built capacity; *integer*: whole units of the connection (of `virtual_unitsize`, else the whole connection), computationally more demanding; *linear_fix_in_uc* and *integer_fix_in_uc*: the same, and in a separate realization solve the online capacity over the jump (the realized periods) is kept at what the stochastic solve chose. The connection's flow in each direction is limited by its online capacity and by its built capacity × availability, its reserve by its online capacity, and `startup_cost` is paid per MW brought online. Connections have no minimum load or minimum up/down times. Not available for connections in a `dc_power_flow_with_angles` group, other than `is_DC` connections (an error: switching a DC power-flow line off would need line-switching constraints).
12
12
  - `invest_method` to define investment and retirement limits: either *not_allowed* or then a combination of
13
13
  - *invest* and/or *retire*
14
14
  - investment limits for each *period* and/or for all periods (*total*) or *no_limit*
@@ -70,7 +70,7 @@ A unit can only offer reserve that reduces its flow as far as its flow allows: d
70
70
 
71
71
  Reserve that raises a unit's flow needs headroom: upward reserve at a node the unit feeds and downward reserve at a node it consumes from (consuming more) cannot exceed the free capacity of that flow (built capacity; online capacity for a unit with online variables), so a unit at full consumption offers no downward reserve at its input, and an offline unit none. A downward reserve at the input node of a unit with one input and one output is converted to output flow by the unit's efficiency; such a unit with several outputs needs the headroom on each output. A unit with several inputs is only kept within that input's capacity, and its upward reserve at an output and downward reserve at an input (both "burn more") are each checked against the unit's capacity separately, not together. The effective limit is the smaller of these and `max_share` × capacity. A connection's reserve at a node is limited by its net position there: upward reserve by its free capacity towards the node plus the flow it sends away from the node (which it can stop), downward reserve by the flow it brings to the node plus its free capacity away from it (power at the node, after losses). A one-way connection can therefore offer upward reserve at its sending node only up to what it draws there. For a connection with online variables the online capacity counts; for an *exact* connection, the capacity of the direction it is set to.
72
72
 
73
- A unit with online variables (a `startup_method` other than `no_startup`, or a `minimum_time_method` other than *none*) holds upward reserve only from its online capacity: at a node the unit feeds, its output plus the upward reserve it holds there cannot exceed online capacity × availability (× `capacity_max_coeff`), and for a unit with several outputs the sum of its outputs plus the upward reserve held at them cannot exceed online capacity × availability. An offline unit therefore offers no upward reserve, and an upward reserve requirement can make it worth committing a unit. This is a simplification: offline units are assumed unable to start within the reserve's activation time (reserve activation time versus unit start-up time is not modelled yet). Units without online variables are limited by their built capacity.
73
+ A unit with online variables (a `startup_method` other than `no_startup`, or a `minimum_time_method` other than *none*) holds upward reserve only from its online capacity: at a node the unit feeds, its output plus the upward reserve it holds there cannot exceed its online capacity (× `capacity_max_coeff`), and for a unit with several outputs the sum of its outputs plus the upward reserve held at them cannot exceed its online capacity; both also stay within the built capacity × availability, as for every unit. An offline unit therefore offers no upward reserve, and an upward reserve requirement can make it worth committing a unit. This is a simplification: offline units are assumed unable to start within the reserve's activation time (reserve activation time versus unit start-up time is not modelled yet). Units without online variables are limited by their built capacity.
74
74
 
75
75
  A unit with ramp limits (`ramp_method` `ramp_limit` or `both`) can hold upward reserve only within its upward ramp room of the time step after the change of its flow from the previous step, and downward reserve within its downward ramp room: the flow plus the upward reserve may rise from the previous step's flow by at most `ramp_speed_up × 60 × (average duration of the two steps) × capacity`, and the flow minus the downward reserve may fall by at most the same with `ramp_speed_down` (so a unit ramping down in a step can hold more upward reserve in it). "Consume more" downward reserve at a node the unit consumes from uses the ramp room of that input (an upward input ramp), converted by the efficiency on a unit with one input and one output; upward reserve there (consume less) uses the downward room. In the first step of a solve, and after a gap in the timeline, the reserve alone is limited to one step's room, using the online capacity for a unit with online variables. For units with online variables the reserve uses the ramp room of the unit's online capacity: a unit starting or stopping in a step is limited by its startup / shutdown output there instead (see the how-to on start-ups), not by any extra room from declaring the start or stop itself. The ramp room is per model step; the reserve's activation time is not considered.
76
76
 
@@ -23,12 +23,12 @@ Units convert energy (or matter) from one form to another (e.g. open cycle gas t
23
23
 
24
24
  - the sum of the unit's output flows >= min_load * online capacity
25
25
 
26
- The output flows are the ones that define the unit's capacity: all outputs with a non-zero `conversion_flow_coeff` (for a unit with one input and one output, its single flow; for a unit without outputs, its input). Inputs never have their own minimum: a unit with several inputs can run on any mix of them (use `input_share_min` to require a share of an input). The floor is not scaled by `availability`, so a unit whose availability falls below `min_load` cannot be online. `capacity_min_coeff` on an output does not lower this floor; to lower or switch off the minimum load, lower `min_load` (0 switches it off; no value means 0, so a unit with an online variable does not need a `min_load`). Downward reserve (and upward reserve at an input node, i.e. reduced consumption) offered by the unit cannot take its outputs below this floor (see [Reserves](reserves.md)).
26
+ The output flows are the ones that define the unit's capacity: all outputs with a non-zero `conversion_flow_coeff` (for a unit with one input and one output, its single flow; for a unit without outputs, its input). Inputs never have their own minimum: a unit with several inputs can run on any mix of them (use `input_share_min` to require a share of an input). The floor is not scaled by `availability`: availability derates the unit's capacity (the flow ≤ capacity × `availability`), so with an availability below `min_load` the unit can still be online with fewer units online (at most capacity × `availability` / `min_load`). `capacity_min_coeff` on an output does not lower this floor; to lower or switch off the minimum load, lower `min_load` (0 switches it off; no value means 0, so a unit with an online variable does not need a `min_load`). Downward reserve (and upward reserve at an input node, i.e. reduced consumption) offered by the unit cannot take its outputs below this floor (see [Reserves](reserves.md)).
27
27
 
28
28
  - `efficiency_at_min_load` - [-] Output / input at minimum load, like `efficiency` (e.g. 0.4; may be above 1). Efficiency of a `min_load_efficiency` unit at its minimum load; the fuel use is linear between minimum load at this efficiency and full load at `efficiency`. Matters only for a unit with a `min_load` above 0 (with `min_load` 0 the unit uses `efficiency`). Without a value (or for the periods or timesteps a map leaves out) the unit uses `efficiency` at minimum load too, i.e. a flat curve as with *constant_efficiency*, while its minimum load still applies; a warning names such units. Constant, period, time or period+time.
29
29
 
30
30
 
31
- - `availability` - [e.g. 0.9 means 90%] Fraction of capacity available for flows from/to the unit. For online units, the online variable is multiplied by the availability. Constant, period, time, period+time or stochastic time.
31
+ - `availability` - [e.g. 0.9 means 90%] Fraction of capacity available for flows from/to the unit: the flows (and the upward reserve) are limited to capacity × `availability`. For a unit with online variables, availability derates the capacity, not the units online nor the output of a unit online: each unit online keeps its full capacity and its `min_load`, so a unit whose availability is below its `min_load` can still be online, with fewer units online (at most capacity × `availability` / `min_load`; a single *integer* unit stays online at that output if `min_load` ≤ `availability`). A fall in availability therefore does not start or stop units unless `min_load` forces fewer units online. Inertia counts the units online, which availability does not limit. In the capacity margin of a group the unit counts at capacity × `availability`. Constant, period, time, period+time or stochastic time.
32
32
  - Economic: `startup_cost` ([CUR/MW] cost of starting up one MW of capacity; constant or period), `fixed_cost` (fuel cost comes through the use of fuel commodities and other variable costs are defined for flows between unit and node, see below)
33
33
 
34
34
  ## Part-load efficiency curve (piecewise_linear)
@@ -470,7 +470,8 @@ The bands (the down bands are stored as negative numbers):
470
470
  potential of a VRE unit that also touches a storage node is not subtracted: that unit is in the storage band.
471
471
  - *ramp_demand* — the same for the demand alone (demand = −`inflow`).
472
472
  - *units_up* / *units_down* — how much the units with a flow at the node can raise / lower the supply at t⁺: up to
473
- their capacity × availability at t⁺ and down to their minimum load, within their ramp limits, minus the reserve
473
+ their capacity × availability at t⁺ (units with online variables: also within the capacity of the units online in
474
+ both steps, at full output) and down to their minimum load, within their ramp limits, minus the reserve
474
475
  they hold at t⁺ in that direction. A unit that takes from the node (an input) raises the supply by consuming less;
475
476
  its input is converted with the efficiency of each step. Units with online variables count only the units online
476
477
  in both steps: the output of a unit that starts at t⁺, and the drop of a unit that stops at t⁺, is forced
@@ -484,7 +485,8 @@ The bands (the down bands are stored as negative numbers):
484
485
  rise is in the net-load line). *vre_down* is how much less than the potential allows the VRE units can give at
485
486
  t⁺; it can be larger than the VRE's own output, because it includes curtailing the coming rise of the potential.
486
487
  - *connections_up* / *connections_down* — how much the connections can raise / lower the flow into the node at
487
- t⁺, within their capacity × availability at t⁺ in each direction (losses on the sending side: an export at full
488
+ t⁺, within their capacity × availability at t⁺ in each direction (with online variables: also within the
489
+ capacity of the units online; losses on the sending side: an export at full
488
490
  capacity draws capacity ÷ efficiency), minus the reserve the connection holds at the node at t⁺. The far end of
489
491
  the connection is not considered.
490
492
 
@@ -930,10 +930,12 @@ def snapshot_solver_option_files(
930
930
  work_folder: str | os.PathLike,
931
931
  logger: logging.Logger | None = None,
932
932
  names: tuple[str, ...] = SOLVER_NAMES,
933
+ announce: bool = True,
933
934
  ) -> SolverOptionFiles:
934
935
  """Read the run's option files once and write them to ``<work_folder>/solve_data/solver_config/``.
935
936
 
936
- Every run writes the snapshot afresh (an older one is replaced). Logs the ladder (``Solver config:``), one
937
+ Every run writes the snapshot afresh (an older one is replaced). Logs the ladder (``Solver config:``; not
938
+ with ``announce=False``, for a caller whose header shows it already), one
937
939
  warning when no folder was found (or one per folder skipped as an unedited template copy, which also names the
938
940
  folder used), one warning per folder of the ladder that does not exist, for a one-folder ladder one line for
939
941
  the solvers that use the packaged default, and one warning when a ``<work_folder>/solver_config/`` from an
@@ -942,7 +944,8 @@ def snapshot_solver_option_files(
942
944
  """
943
945
  log = logger or _logger
944
946
  files = read_solver_option_files(source, names)
945
- log.info("Solver config: %s", source.describe())
947
+ if announce:
948
+ log.info("Solver config: %s", source.describe())
946
949
  for folder in source.skipped:
947
950
  log.warning(
948
951
  "Not using %s: it holds only FlexTool's default option files (probably copied there by FlexTool 4.3 "
@@ -80,6 +80,7 @@ def source_files(markdown_root: Path, package_dir: Path = PACKAGE_DIR) -> list[t
80
80
  out.append((f"md/{rel}", path))
81
81
  patterns = (
82
82
  "engine/model/*.py",
83
+ "engine/model/*/*.py", # a package of the model (core) and its modules
83
84
  "engine/solve/_benders.py",
84
85
  "process_outputs/_output_meta.py",
85
86
  "process_outputs/write_spinedb.py",
@@ -566,7 +566,7 @@ def hints(inputs: dict[str, Any], blocks: dict[str, dict], groups: list[str]) ->
566
566
  limit=_shown_number(limit)))
567
567
  # A minimum binds under the methods that use the limit of its kind, as the engine builds them
568
568
  # (engine/model/_cumulative_invest.py: minInvest_entity_total over e_invest_total, minInvest_entity_period
569
- # over ed_invest_period_set; the method sets in engine/preprocess/params/_derived.py): never under *_no_limit.
569
+ # over ed_invest_period_set; the method sets in engine/preprocess/params/_derived/_invest_sets.py): never under *_no_limit.
570
570
  total_hint("hint_min_total", invested, "invest_min_total", method in m.invest_total, "invested")
571
571
  period_hints("hint_min_period", "invested", "invest_min_period", method in m.invest_period, "invested",
572
572
  zero=False)
@@ -44,10 +44,10 @@ class Header:
44
44
  names: tuple[str, ...] # the expanded names
45
45
  formula: str # the formula lines (the leading run of the body)
46
46
  notes: str # the prose lines after the formula
47
- file: str # "flextool/engine/model/core.py"
47
+ file: str # "flextool/engine/model/core/_ramp.py"
48
48
  line: int # 1-based line of the header in the installed code
49
49
  function: str | None # the enclosing function
50
- module: str # "core", "_online", …, "_benders"
50
+ module: str # "core" (a package: one module), "_online", …, "_benders"
51
51
 
52
52
 
53
53
  # ---------------------------------------------------------------------------
@@ -211,29 +211,108 @@ def _rel(path: Path) -> str:
211
211
  return path.resolve().relative_to(PACKAGE_DIR.parent).as_posix()
212
212
 
213
213
 
214
- def module_order() -> list[str]:
215
- """Model modules in the ``build_flextool`` table-of-contents order (core first), then the modules with
216
- headers that the table does not name, alphabetically."""
217
- tree = ast.parse((MODEL_DIR / "core.py").read_text(encoding="utf-8"))
218
- order = ["core"]
214
+ #: The model module whose ``build_flextool`` step table orders the page: a file ``model/<name>.py`` or a package
215
+ #: ``model/<name>/`` (then the one of its files that defines ``build_flextool``).
216
+ TOC_MODULE = "core"
217
+ _MODEL_PACKAGE = "flextool.engine.model"
218
+
219
+
220
+ def _module_of(path: Path) -> str:
221
+ """The model module of a source file: its stem, or for a file of a package under ``model/`` the package's name."""
222
+ first = path.relative_to(MODEL_DIR).parts[0]
223
+ return first[:-3] if first.endswith(".py") else first
224
+
225
+
226
+ def _model_modules() -> list[str]:
227
+ """Every model module, alphabetically: the files ``model/*.py`` and the packages ``model/<name>/``."""
228
+ files = [p.stem for p in MODEL_DIR.glob("*.py") if p.stem != "__init__"]
229
+ packages = [p.parent.name for p in MODEL_DIR.glob("*/__init__.py")]
230
+ return sorted(files + packages)
231
+
232
+
233
+ def _dotted_path(dotted: str) -> Path | None:
234
+ """The source file of a dotted module under ``flextool.engine.model`` (a package: its ``__init__.py``); None for
235
+ another module or a name that is no module."""
236
+ if not dotted.startswith(_MODEL_PACKAGE + "."):
237
+ return None
238
+ base = MODEL_DIR.joinpath(*dotted[len(_MODEL_PACKAGE) + 1:].split("."))
239
+ path = base / "__init__.py" if base.is_dir() else base.with_suffix(".py")
240
+ return path if path.is_file() else None
241
+
242
+
243
+ def _toc_tree() -> tuple[Path, ast.Module]:
244
+ single = MODEL_DIR / f"{TOC_MODULE}.py"
245
+ candidates = [single] if single.is_file() else sorted((MODEL_DIR / TOC_MODULE).rglob("*.py"))
246
+ for path in candidates:
247
+ tree = ast.parse(path.read_text(encoding="utf-8"))
248
+ if any(isinstance(n, ast.FunctionDef) and n.name == "build_flextool" for n in tree.body):
249
+ return path, tree
250
+ raise ValueError(f"no build_flextool in model module {TOC_MODULE!r}")
251
+
252
+
253
+ def _step_files() -> list[Path]:
254
+ """The source file of each step of the ``build_flextool`` table, in table order: a bare name is the file it is
255
+ imported from (or the table's own file), ``module.function`` the file of that module."""
256
+ toc, tree = _toc_tree()
257
+ bound: dict[str, Path] = {}
258
+ for node in tree.body:
259
+ if isinstance(node, ast.ImportFrom) and node.module and not node.level:
260
+ for alias in node.names:
261
+ target = _dotted_path(f"{node.module}.{alias.name}") or _dotted_path(node.module)
262
+ if target is not None:
263
+ bound[alias.asname or alias.name] = target
264
+ files: list[Path] = []
219
265
  for node in ast.walk(tree):
220
266
  if isinstance(node, ast.FunctionDef) and node.name == "build_flextool":
221
267
  for sub in ast.walk(node):
222
268
  if isinstance(sub, ast.For) and isinstance(sub.iter, ast.Tuple):
223
269
  for elt in sub.iter.elts:
224
- if (isinstance(elt, ast.Attribute) and isinstance(elt.value, ast.Name)
225
- and elt.value.id not in order):
226
- order.append(elt.value.id)
227
- rest = sorted(p.stem for p in MODEL_DIR.glob("*.py") if p.stem not in order and p.stem != "__init__")
228
- return order + rest
270
+ if isinstance(elt, ast.Name):
271
+ files.append(bound.get(elt.id, toc))
272
+ elif isinstance(elt, ast.Attribute) and isinstance(elt.value, ast.Name):
273
+ if elt.value.id not in bound:
274
+ raise ValueError(
275
+ f"{_rel(toc)}: the step {ast.unparse(elt)} names a module that is not imported "
276
+ f"with 'from {_MODEL_PACKAGE} import {elt.value.id}'; the formulation page "
277
+ f"cannot place it")
278
+ files.append(bound[elt.value.id])
279
+ return files
280
+
281
+
282
+ def module_order() -> list[str]:
283
+ """Model modules in the ``build_flextool`` table-of-contents order (the table's own module first), then the
284
+ modules with headers that the table does not name, alphabetically."""
285
+ order = [_module_of(_toc_tree()[0])]
286
+ for path in _step_files():
287
+ if (module := _module_of(path)) not in order:
288
+ order.append(module)
289
+ return order + [m for m in _model_modules() if m not in order]
290
+
291
+
292
+ def module_files(module: str) -> list[Path]:
293
+ """The source files of a model module in page order. A package is one module: its ``__init__.py``, then its
294
+ files in the order in which the ``build_flextool`` table first names a step of each, then the rest by name."""
295
+ package = MODEL_DIR / module
296
+ if not (package / "__init__.py").is_file():
297
+ return [MODEL_DIR / f"{module}.py"]
298
+ files = [package / "__init__.py"]
299
+ for path in _step_files() + sorted(package.rglob("*.py")):
300
+ if package in path.parents and path not in files:
301
+ files.append(path)
302
+ return files
303
+
304
+
305
+ def model_sources() -> list[tuple[str, Path]]:
306
+ """``(module, file)`` of every model source file, in page order within each module."""
307
+ return [(module, path) for module in _model_modules() for path in module_files(module)]
229
308
 
230
309
 
231
310
  def collect_headers() -> dict[str, list[Header]]:
232
311
  """Headers by module, in page order; modules without a header are left out."""
233
312
  out: dict[str, list[Header]] = {}
234
313
  for module in module_order():
235
- path = MODEL_DIR / f"{module}.py"
236
- hs = parse_headers(path.read_text(encoding="utf-8"), _rel(path), module)
314
+ hs = [h for path in module_files(module)
315
+ for h in parse_headers(path.read_text(encoding="utf-8"), _rel(path), module)]
237
316
  if hs:
238
317
  out[module] = hs
239
318
  out["_benders"] = parse_headers(BENDERS_FILE.read_text(encoding="utf-8"), _rel(BENDERS_FILE), "_benders")
@@ -257,7 +336,7 @@ def _module_title(module: str) -> tuple[str, str]:
257
336
  if module == "_benders":
258
337
  path = BENDERS_FILE
259
338
  else:
260
- path = MODEL_DIR / f"{module}.py"
339
+ path = module_files(module)[0]
261
340
  doc = ast.get_docstring(ast.parse(path.read_text(encoding="utf-8"))) or ""
262
341
  first = doc.strip().splitlines()[0] if doc.strip() else ""
263
342
  if module == "core":
@@ -1,8 +1,8 @@
1
1
  """flextool integration with the polar_high LP eDSL.
2
2
 
3
3
  This subpackage is **flextool-specific** — it knows the on-disk layout
4
- of flextool's ``input/`` + ``solve_data/`` CSVs (``flex_data.py``) and the
5
- shape of flextool's optimization model (``model/core.py``). The
4
+ of flextool's ``input/`` + ``solve_data/`` CSVs (``preprocess/flex_data/``) and the
5
+ shape of flextool's optimization model (``model/core/``). The
6
6
  ``polar_high`` package itself knows nothing of flextool.
7
7
  """
8
8