summaryrefslogtreecommitdiff
path: root/tests.branching
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-08-29 11:25:36 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-08-30 10:34:53 +0000
commitb0096f15bb3624207b1df71b22070b4780b03658 (patch)
treeffcf474dd043d404b0a9e791c7a8cd69f6fb5e1e /tests.branching
parent4ee24ddb0c89723a3e6c1c15ccdea9c8d454d084 (diff)
downloadmorph-b0096f15bb3624207b1df71b22070b4780b03658.tar.gz
morphloader: Add method to unset default values
The original contents of the morphology is not generally trackable, comments are lost for example, and it's simpler to output a canonical format than attempt to preserve everything of the original. However, we don't want to clutter the output with fields that have been filled out to be the defaults, so provide a method to remove fields that are the same as their default. This also removes a check in set_defaults that it is a valid kind, since it explicitly declares it assumes the morphology is valid.
Diffstat (limited to 'tests.branching')
0 files changed, 0 insertions, 0 deletions