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

feat(python): Added support for pickling lace.Engine #184

Merged

Conversation

schmidmt
Copy link
Contributor

No description provided.

@schmidmt schmidmt added enhancement New feature or request Python Pertains to the Python API labels Feb 13, 2024
@schmidmt schmidmt self-assigned this Feb 13, 2024
@schmidmt schmidmt linked an issue Feb 13, 2024 that may be closed by this pull request
@schmidmt schmidmt force-pushed the 159-add-support-for-multiprocessing-for-pylaces-engine branch 2 times, most recently from fde6635 to 6ccbed7 Compare February 13, 2024 03:51
@schmidmt schmidmt force-pushed the 159-add-support-for-multiprocessing-for-pylaces-engine branch from 6ccbed7 to b29232b Compare February 13, 2024 04:03
@schmidmt schmidmt marked this pull request as ready for review February 13, 2024 05:20
@schmidmt schmidmt requested a review from a team as a code owner February 13, 2024 05:20
Copy link
Contributor

@Swandog Swandog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, but not enough to hold stuff up. LGTM!

polars::df! {
"ID" => [0],
}
.expect("Should be a df"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do an Ok(thing.expect("") instead of just returning the Result?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm honestly surprised clippy didn't notice it

sim_a = engine.simulate(["swims", "flys"], n=10)
sim_b = engine_b.simulate(["swims", "flys"], n=10)

assert sim_a.equals(sim_b)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good practice to add a test, I've been lagging in that lately

@schmidmt schmidmt merged commit f820017 into master Feb 13, 2024
10 checks passed
@schmidmt schmidmt deleted the 159-add-support-for-multiprocessing-for-pylaces-engine branch May 6, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Python Pertains to the Python API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Multiprocessing for PyLace's Engine.
2 participants