Skip to content

Commit

Permalink
de-lint flowdb #16
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuczenski committed Dec 19, 2016
1 parent 475d917 commit 9c4cc05
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lcatools/flowdb/flowdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 9c4cc05

Please sign in to comment.