From 9c4cc0553b93d97b1102b63a8a6548cb51cee2dd Mon Sep 17 00:00:00 2001 From: Brandon Kuczenski Date: Mon, 19 Dec 2016 11:48:49 -0800 Subject: [PATCH] de-lint flowdb #16 --- lcatools/flowdb/flowdb.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lcatools/flowdb/flowdb.py b/lcatools/flowdb/flowdb.py index d8689f4..0218c45 100644 --- a/lcatools/flowdb/flowdb.py +++ b/lcatools/flowdb/flowdb.py @@ -207,19 +207,18 @@ def find_matching_compartment(self, compartment, interact=True): def friendly_flowable(self, i, width=4): print('(%*d) %11s %d %.95s' % (width, i, self.flowables.cas(i), - len([cf for cf in self.all_cfs(i)]), - sorted( + len([cf for cf in self.all_cfs(i)]), + sorted( filter(lambda x: not bool(cas_regex.match(x)), filter(lambda x: not bool(uuid_regex.match(x)), self.flowables[i]))) - ) + ) ) - def friendly_search(self, regex, max_hits=100): + def friendly_search(self, regex): """ :param regex: - :param max_hits: maximum number of results to return (default 100) :return: """ results = sorted(list(self.flowables.search(regex)))