amnh / PCG

𝙋𝙝𝙮𝙡𝙤𝙜𝙚𝙣𝙚𝙩𝙞𝙘 𝘾𝙤𝙢𝙥𝙤𝙣𝙚𝙣𝙩 𝙂𝙧𝙖𝙥𝙝 ⸺ Haskell program and libraries for general phylogenetic graph search
28 stars 1 forks source link

Assert that input chracters are in the alphabet when reading in a TCM file #155

Open recursion-ninja opened 4 years ago

recursion-ninja commented 4 years ago

When we read in data files and associate them with a TCM, they inherit the alphabet defined in the TCM file.

We need to assert that every symbol found in the input files are symbols defined in the alphabet of the TCM file.

If we don't do this at "unification time," we can get very, very cryptic errors with empty dynamic character elements when decorating the tree.