Quantipy / quantipy

Python for people data
MIT License
66 stars 14 forks source link

Rim(): name parameter allows ill variable names that crash #1200

Open alextanski opened 5 years ago

alextanski commented 5 years ago

If the name parameter in the class __init__() contains white spaces, the weight algorithm methods will crash later on, as the internal weight variable name will be constructed from it and therefore evaluate into a syntax error.

We can either forbid white spaces in the name and raise or automatically replace them with underscores.

🤦‍♂️