-
Notifications
You must be signed in to change notification settings - Fork 20
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
Replaced lambda statement to allow saving of GreedySelector using pic… #135
Conversation
…kle. Progress bar (tqdm) is now always retrieved, but disabled if progress_bar is set to False.
b78ea3d
to
2576c42
Compare
…kle. Progress bar (tqdm) is now always retrieved, but disabled if progress_bar is set to False. Reformatted using black
2576c42
to
aa317f6
Compare
…rom _selection.py, replacing the lambda statement that is causing issue #99.
deps = | ||
coverage[toml] | ||
parameterized | ||
deps = -rtests/requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would we need a separate file here? You could add tqdm directly in pyproject.toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this to be consistent with examples
and to make it easier to find the testing dependencies.
Fixed issue #99 - replaced lambda statement to allow saving of GreedySelector using pickle.
Progress bar is retrieved with progress_bar() if self.progress_bar is True. If False, the identity function no_progress_bar() is passed, allowing the line 223
for n in self.report_progress(range(n_iterations))
to remain unchanged.