Skip to content

Commit

Permalink
(Aegis) fix doc paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 2, 2023
1 parent c455752 commit 6500556
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion agrf/parameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, choices, parameter_list):
def copy(self):
return SearchSpace(copy.deepcopy(self.choices), self.parameter_list)

def fix_docs_params(self, cat, options):
def update_params(self, cat, options):
[(idx, all_options)] = [
(i, the_options) for i, (the_cat, the_options) in enumerate(self.choices) if the_cat == cat
]
Expand Down
2 changes: 1 addition & 1 deletion industry/docgen/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def gen_economy_doc(all_economies, string_manager):

choices_text = []
for preset, preset_params in PRESETS.items():
preset_desc = parameter_choices.desc(preset_params)
preset_desc = docs_parameter_choices.desc(preset_params)
if preset_desc == variation_desc:
choices_text.append(f"{preset}")
else:
Expand Down
6 changes: 3 additions & 3 deletions industry/lib/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@


docs_parameter_choices = parameter_choices.copy()
docs_parameter_choices.fix_docs_params("WORKFORCE", ["ABSTRACT", "PROFESSIONAL", "YETI"])
docs_parameter_choices.fix_docs_params("LAND_PORTS", ["ORGANIC"])
docs_parameter_choices.fix_docs_params("TOWN_GOODS", ["ORGANIC"])
docs_parameter_choices.update_params("WORKFORCE", ["ABSTRACT", "PROFESSIONAL", "YETI"])
docs_parameter_choices.update_params("LAND_PORTS", ["ORGANIC"])
docs_parameter_choices.update_params("TOWN_GOODS", ["ORGANIC"])


PRESETS = {
Expand Down

0 comments on commit 6500556

Please sign in to comment.