Skip to content
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

CLI #18

Merged
merged 9 commits into from
Mar 2, 2022
Merged

CLI #18

merged 9 commits into from
Mar 2, 2022

Conversation

zStupan
Copy link
Collaborator

@zStupan zStupan commented Mar 1, 2022

I've implemented a command line interface (closes #11).

I did this cool thing where you can set algorithm parameters interactively. It runs a text editor as a subprocess (vi or nano on unix, notepad on windows) and you can edit the parameters which are in the format:

param1 = val1
param2 = val2
.....

And then you save the tempfile and exit, and it parses the text back into a python dict, which you use to call algorithm.set_parameters.

EDIT: I've also added a logging flag to the NiaARM class and made the logging of fitness improvements optional

EDIT 2: Updated README to include a basic example of the usage of the library, as well as the help message of the CLI.

@firefly-cpp
Copy link
Owner

This is amazing @zStupan! Please let me know when I can merge this PR to main.

@zStupan zStupan changed the title WIP: CLI CLI Mar 2, 2022
@zStupan zStupan merged commit c6a7cf7 into firefly-cpp:main Mar 2, 2022
@zStupan zStupan deleted the feature-cli branch March 2, 2022 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI
2 participants