Closed NickleDave closed 2 years ago
- the "right" way to do this would be to pass in the functions themselves as arguments, and have a classmethod
Transcriber.from_format('simple-seq')
(I don't love the method namefrom_format
)
ended up doing basically this.
Transcriber.from_format('simple-seq')
, for example, returns an instance of a SimpleSeq
, already instantiated, using its from_file
method. Methods like to_annot
can then be called on this returned instance, instead of Transcriber
having to handle them or even know they exist
Transcriber class is due for a re-factor; should be done in next version
clean up Transcriber
__init__
Meta
instance as the argument forconfig
--there's a check in the pre-conditions--but then nothing happens with this, it would just break__init__
in generalMeta
anywaymore broadly what does
Transcriber
do?from_file
andto_annot
for all annotation formats, without needing to work with the functions (and soon, classes) directlyTranscriber.from_format('simple-seq')
(I don't love the method namefrom_format
)