apriha / snps

tools for reading, writing, merging, and remapping SNPs
BSD 3-Clause "New" or "Revised" License
100 stars 19 forks source link

remove unnecessary __call__ functions for clarity #115

Closed afaulconbridge closed 3 years ago

afaulconbridge commented 3 years ago

The Reader and Writer classes currently uses the python special __call__ method names so instances can be executed as functions. However, these are only called as functions internally from class methods, and therefore the same functionality can be done by a more straightforward public method. This makes it easier to understand the code and maintain.