alcides / GeneticEngine

A Hybrid between Grammar-Guided and Strongly-Typed Genetic Programming in Python
33 stars 6 forks source link

Metahandler Union added #184

Closed eduardo-imadeira closed 4 months ago

eduardo-imadeira commented 4 months ago

added the metahandler Union to support for example:

var: Union[Annotated[int, IntRange(0,10)], Annotated[int, IntRange(20, 30)]]

so the variable can hold integers within the range of 0 to 10 or within the range of 20 to 30.

alcides commented 4 months ago

The tests are not passing on GA, nor in my machine (they get stuck on the fifth test in ind_gen_test).

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 85.96%. Comparing base (76ac84f) to head (ab843e5).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #184 +/- ## ========================================== + Coverage 85.88% 85.96% +0.08% ========================================== Files 83 83 Lines 4201 4226 +25 ========================================== + Hits 3608 3633 +25 Misses 593 593 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.