Open cczhu opened 4 years ago
Also, in the tests, move Registrar
class tests into the same class as launcher tests.
Also, the neighbour
module needs a metaclass registrar and a functional wrapper for initializing nearest neighbour calculator instances.
Once you've built this registrar, change the relevant test fixtures and preprocessing functions in test_matcher.py
as well.
We currently use
Registrar
metaclasses to register different analysis classes in CountMatch. There are multiple metaclasses, but all share nearly identical codebases, so it would be ideal to be able to write something likein place of the current
DVRegistrar
definition.Ditto for
DerivedVals
:Tests should remain the same, since the functionality is identical. Thus, very little effort wasted when writing tests currently.