AlexRodis / bayesian-models

A small library build on top of `pymc` that implements many common models
Apache License 2.0
0 stars 0 forks source link

[ENH]: Swap if/elif/else with Structural Pattern Matching #41

Open AlexRodis opened 1 year ago

AlexRodis commented 1 year ago

Especially in the data module, there is extensive use of long if/elif/else statements. We could improve the readability by changing these with the Structural Pattern Matching feature (3.10+). Need to consider #39 . If compatibility prior to 3.10 is needed this should be implemented