summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-04-14 09:25:26 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-04-15 15:43:45 +0000
commit8e7dc706a11709a3179b3cf4392d60c2604d861c (patch)
treee0ec9ac2a778d97d6e8e6960a0f0ad391041d231
parent867339854ff168d62901fe62b1a20df47fd2fe4c (diff)
downloadmorph-8e7dc706a11709a3179b3cf4392d60c2604d861c.tar.gz
Don't force the morphology name to be the basename of the .morph file
-rw-r--r--morphlib/morphologyfactory.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/morphlib/morphologyfactory.py b/morphlib/morphologyfactory.py
index 6537c7c8..6c2497b9 100644
--- a/morphlib/morphologyfactory.py
+++ b/morphlib/morphologyfactory.py
@@ -99,11 +99,6 @@ class MorphologyFactory(object):
raise morphlib.Error("Error parsing %s: %s" %
(filename, str(e)))
- if filename != morphology['name'] + '.morph':
- raise morphlib.Error(
- "Name %s does not match basename of morphology file %s" %
- (morphology['name'], filename))
-
method_name = '_check_and_tweak_%s' % morphology['kind']
if hasattr(self, method_name):
method = getattr(self, method_name)