From 0ad170ce2d5ea81c4aceab16aca27d7f2f3c6e8d Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Wed, 12 Mar 2014 11:31:04 +0000 Subject: Fix creating a Source() from a cluster morphology The Source.__init__() function assumes that the artifact.split_rules attribute is not None. Rather than complicating that code with error checks, let's make it always be correct. Avoids traceback from Source.__init__() when passing a cluster morph to `morph build`. --- morphlib/artifactsplitrule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morphlib/artifactsplitrule.py b/morphlib/artifactsplitrule.py index 246691d8..bc92e5fb 100644 --- a/morphlib/artifactsplitrule.py +++ b/morphlib/artifactsplitrule.py @@ -300,4 +300,4 @@ def unify_system_matches(morphology): def unify_cluster_matches(_): - return None + return SplitRules() -- cgit v1.2.1