From 4840c321c555b3c75bc2ad17df634fdae00bb4b0 Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 15 Apr 2018 19:27:59 -0700 Subject: [PATCH] rename param for do_subset --- masque/pattern.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/masque/pattern.py b/masque/pattern.py index 5f9605b..f9d41f6 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -90,12 +90,12 @@ class Pattern: :return: A Pattern containing all the shapes and subpatterns for which the parameter functions return True """ - def do_subset(self): - pat = Pattern(name=self.name) + def do_subset(src): + pat = Pattern(name=src.name) if shapes_func is not None: - pat.shapes = [s for s in self.shapes if shapes_func(s)] + pat.shapes = [s for s in src.shapes if shapes_func(s)] if subpatterns_func is not None: - pat.subpatterns = [s for s in self.subpatterns if subpatterns_func(s)] + pat.subpatterns = [s for s in src.subpatterns if subpatterns_func(s)] return pat if recursive: