SwatPhonLab / UltraTrace

A Free/Open-Source tool for manual annotation of Ultrasound Tongue Imaging data.
GNU General Public License v3.0
10 stars 5 forks source link

Tests for xhair.py #111

Closed calebho closed 4 years ago

calebho commented 4 years ago

Lightly refactor XHair to take a color factory instead of a Trace. This enables easier testing since we don't need to construct a full Trace object to construct an XHair. It also fixes the confusing behavior where you can pass a Trace into a XHair, but not add the XHair to the Trace's set of XHairs.

Implemented some tests for XHair for the more involved methods.

calebho commented 4 years ago

Master issue: #104

keggsmurph21 commented 4 years ago

Nice, this is a good fix. Thanks m8

keggsmurph21 commented 4 years ago

lgtm