NeuralAnalysis / TrialData

Code base for the Matlab TrialData analysis library.
3 stars 4 forks source link

reorderTDfields doesn't work well for 'vel_shift' #6

Closed juangallego closed 6 years ago

juangallego commented 6 years ago

After doing 'dupeAndShift' of 'vel' the new 'vel_shift' appears in different places in the structure… and its placing doesn't seem consistent

mattperich commented 6 years ago

Fixed! All _spikes fields will now be sorted to appear after their parent field after a call to reorderTDfields. Note: It's not the most elegant code (any intrepid coders who want to write a more clever solution, feel free!) but it seems to work.