-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factor out useful features of rank_object_enumerator.py and delete the rest #386
Comments
…module and deprecate rank_object_enumerator
In fact the routine is used by the |
Thanks @tlamonthezie the main issue is that the brute force algorithm is currently calling a stand-alone script that I wrote a while back to check the LBAF optima (but at the time it was not part of LBAF). So it has a much more lightweight data model, but it had to be made to fit into the broader LBAF data model in order to be implemented as a concrete subclass of the abstract base class of LBAF balancing algorithms. That's why I created that static Instead, what should be done is the following: properly reimplement the logic of this standalone script inside the I am happy to do that, but can you please push your current work on this issue in a new, draft PR? I would then take on from there, and pass you the baton once done. Please ping me on said PR so I get notified when it's ready to be picked up. |
Hello @ppebay I have just created a PR for that |
…module and deprecate rank_object_enumerator
… use loaded `Object` instances instead of dictionaries
Hello @ppebay
I put the PR #398 in review so you can check that work |
…ete the rest (#398) * #386: upgrade rank_object_enumerator script to work * #386: move used function of rank_object_enumerator to lbsStatistsics module and deprecate rank_object_enumerator * #386: update LBAFApp to work with functions moved to lbsStatistics * #386: update some test brute force config file * #386: fix error in brute BruteForceAlgorithm class * #386: add some bruteforce run configuration for VS code * #386: update VSCode launch configuration * #386: fix problem with refactoring and acceptance tests * #386: remove n_ranks no more valid attribute * #386: fix issue in LBAF_App with n_ranks * #386: fix potential BruteForce invalid phases key * #386: eliminate duplicated code in BruteForceAlgorithm and LBAF_App + use loaded `Object` instances instead of dictionaries * #386: simplify method call * #386: fix bad variable name * #386: set pylint to fail only on error or with score lower that 8.5 * #386: refactor the BruteForce algorithm to exclude duplicated code * #386: refactor and remove duplicated code * #386: improve code quality * #386: improvement in compute_arrangement_works * #386: improve some code * #386: review docstrings with PEP257 in lbaf module and move useful function to lbsStatistics * #386: fix trailing whitespace
…ete the rest (#398) * #386: upgrade rank_object_enumerator script to work * #386: move used function of rank_object_enumerator to lbsStatistsics module and deprecate rank_object_enumerator * #386: update LBAFApp to work with functions moved to lbsStatistics * #386: update some test brute force config file * #386: fix error in brute BruteForceAlgorithm class * #386: add some bruteforce run configuration for VS code * #386: update VSCode launch configuration * #386: fix problem with refactoring and acceptance tests * #386: remove n_ranks no more valid attribute * #386: fix issue in LBAF_App with n_ranks * #386: fix potential BruteForce invalid phases key * #386: eliminate duplicated code in BruteForceAlgorithm and LBAF_App + use loaded `Object` instances instead of dictionaries * #386: simplify method call * #386: fix bad variable name * #386: set pylint to fail only on error or with score lower that 8.5 * #386: refactor the BruteForce algorithm to exclude duplicated code * #386: refactor and remove duplicated code * #386: improve code quality * #386: improvement in compute_arrangement_works * #386: improve some code * #386: review docstrings with PEP257 in lbaf module and move useful function to lbsStatistics * #386: fix trailing whitespace
* #368: move stepper tests and acceptance tests to the unittest tests to include in tox * #368: update gitignore * #368: update CI workflow * #368: update CI workflow * #368: update gitignore * #368: rename acceptance to synthetic-acceptance * #386: refactor * #368: rename workflow * #368: fix call error * #368: fix bug in a test * #368: fix bad config path for a test * #368: rename workflow * #368: upgrade tox and colorama dependency versions * #368: create a single requirements.txt file * #368: upgrade colorama version also for lbaf package setup * #368: refactor and simlify tox.ini * #368: rename workflow * #368: remove method duplicate * #368: pylint fixes * #368: pylint fixes * #368: disable some unexpected pylint warnings * #368: remove unnecessary line * #368: tentative to display unit tests results better * #368: keep only one requirements file and try fix Test report action * #368: try another Test report plugin * #368: fix issue with test output * #368: rename tests report * #368: try again another plugin * #368: upgrade version of test report plugin * #368: setoption to report output on CI * #368: fix remaining quotes and warnings * #368: fix pylint notice messages
* #368: move stepper tests and acceptance tests to the unittest tests to include in tox * #368: update gitignore * #368: update CI workflow * #368: update CI workflow * #368: update gitignore * #368: rename acceptance to synthetic-acceptance * #386: refactor * #368: rename workflow * #368: fix call error * #368: fix bug in a test * #368: fix bad config path for a test * #368: rename workflow * #368: upgrade tox and colorama dependency versions * #368: create a single requirements.txt file * #368: upgrade colorama version also for lbaf package setup * #368: refactor and simlify tox.ini * #368: rename workflow * #368: remove method duplicate * #368: pylint fixes * #368: pylint fixes * #368: disable some unexpected pylint warnings * #368: remove unnecessary line * #368: tentative to display unit tests results better * #368: keep only one requirements file and try fix Test report action * #368: try another Test report plugin * #368: fix issue with test output * #368: rename tests report * #368: try again another plugin * #368: upgrade version of test report plugin * #368: setoption to report output on CI * #368: fix remaining quotes and warnings * #368: fix pylint notice messages
rank_object_enumerator.py
no longer works (nor is tested) in its current form, as reported by @pierrepebay as part of the review of PR #374However one of its routines is needed by
LBAF_app.py
; and this routine itself calls functions ofrank_object_enumerator.py
, and further.The goal of this issue is therefore to extract what is useful in
rank_object_enumerator.py
into a helper class (e.g.lbsStatistics
) and then deprecate/remove the rest from the code base.The text was updated successfully, but these errors were encountered: