Use of globals
alexkyllo opened this issue · 2 comments
alexkyllo commented
Tea makes extensive use of global variables to store its state, so it can only be used to run a single hypothesis test on a single dataset at a time. What's the reasoning behind this design choice? Could it be refactored to store the state in an object instance instead?
MaLiN2223 commented
This would be a good change for the whole project. Using global variables is discouraged as it creates many problems.
The change would be very big though, without proper tests some things might fail along the way but we should definitely do it.
AaronWatters commented
+1
I would like to see the API restructured in an object oriented way so multiple hypothesis structures can be managed separately at the same time, among other advantages.