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

Consider creating a procedural macro to register python operators/algorithms #57

Closed
andresliszt opened this issue Feb 16, 2025 · 1 comment

Comments

@andresliszt
Copy link
Owner

andresliszt commented Feb 16, 2025

Would be very nice having something like this, creating automatically the pyo3 definition.

use pymoors_macros::PyMutation;

#[derive(Clone, Debug, PyMutation)]
#[py_name = "BitFlipMutation"]
pub struct BitFlipMutation {
    pub gene_mutation_rate: f64,
}
@andresliszt
Copy link
Owner Author

Done in #55

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

No branches or pull requests

1 participant