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

Replaced lambda statement to allow saving of GreedySelector using pic… #135

Merged
merged 13 commits into from
Jun 9, 2022

Conversation

victorprincipe
Copy link
Collaborator

@victorprincipe victorprincipe commented Jun 8, 2022

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.

…kle. Progress bar (tqdm) is now always retrieved, but disabled if progress_bar is set to False.
@victorprincipe victorprincipe requested a review from rosecers June 8, 2022 12:27
@rosecers rosecers force-pushed the bug_fix/pickle_GreedySelector branch from b78ea3d to 2576c42 Compare June 8, 2022 13:10
victorprincipe and others added 2 commits June 8, 2022 15:20
…kle. Progress bar (tqdm) is now always retrieved, but disabled if progress_bar is set to False.

Reformatted using black
@rosecers rosecers force-pushed the bug_fix/pickle_GreedySelector branch from 2576c42 to aa317f6 Compare June 8, 2022 13:20
@victorprincipe victorprincipe requested a review from Luthaf June 8, 2022 15:11
deps =
coverage[toml]
parameterized
deps = -rtests/requirements.txt
Copy link
Collaborator

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

Copy link
Collaborator

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.

@Luthaf Luthaf merged commit 8121cb7 into main Jun 9, 2022
@Luthaf Luthaf deleted the bug_fix/pickle_GreedySelector branch June 9, 2022 11:14
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.

3 participants