Repository navigation
Polish: fix worst-fitness bug, typos, cross-platform paths, test warnings - #15
Merged
jcrvz merged 1 commit intoApr 13, 2026
Conversation
Agent-Logs-Url: https://github.com/jcrvz/customhys/sessions/1db98862-de1f-4ca6-9d11-4dbe8475e663 Co-authored-by: jcrvz <9259576+jcrvz@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several accumulated quality issues across the framework have been addressed: a correctness bug in population tracking, docstring/README typos, platform-specific path construction, and a pytest warning.
Bug Fix
population.py:__update_best_and_worst()assignedcurrent_worst_fitness = np.min(fitness)— the best value. Changed tonp.max(fitness). This directly corrupted mass computation ingravitational_search, which subtractscurrent_worst_fitnessto derive agent masses.Typos
metaheuristic.py: "mataheuristic" → "metaheuristic"hyperheuristic.py: "meatheuristic" (×2), "vealues", "Diccionary", "retreived"operators.py: "paramenter"README.md: "auxiliar" → "auxiliary"; "may do not work. They are currently under developing." → "may not work. They are currently under development."Cross-Platform Paths
Replaced hardcoded
/-joined paths withos.path.join:hyperheuristic.py:"collections/" + heuristic_space→os.path.join("collections", heuristic_space); added missingimport os; removed the stale# TODO: fix for any OScommenttools.py:temporal_full_path + "/" + file_name→os.path.join(temporal_full_path, file_name)Misc
tools.py: renamedsubfolder_splitted_name→subfolder_name_parts("splitted" is non-standard English)tests/test_makefile.py: removedreturn True/Falsefrom two test functions, eliminatingPytestReturnNotNoneWarning