Implement new parser with singledispatch
and move type handling from trajpy.__init__
#119
Labels
Milestone
singledispatch
and move type handling from trajpy.__init__
#119
Currently the class
trajpy
accepts either a csv file or a numpy array for initialising the object. However, we can improve this by implementing a parser withfunctools.singledispatch
.Since trajpy's aims to be a general framework for trajectory analysis, it is critical to put more work on the parser for providing broad support for different file formats.
singledispatch
offers an elegant way for this implementation.trajpy/trajpy/trajpy.py
Lines 27 to 35 in 8381bed
The text was updated successfully, but these errors were encountered: