Args: ds (DataFlow): input DataFlow. num (int): number of dataflow points to print. name (str, optional): name to identify this DataFlow. max_depth (int, optional): stop output when too deep recursion in sub elements max_list (int,
(self, ds, num=1, name=None, max_depth=3, max_list=3)
| 743 | """ |
| 744 | |
| 745 | def __init__(self, ds, num=1, name=None, max_depth=3, max_list=3): |
| 746 | """ |
| 747 | Args: |
| 748 | ds (DataFlow): input DataFlow. |
| 749 | num (int): number of dataflow points to print. |
| 750 | name (str, optional): name to identify this DataFlow. |
| 751 | max_depth (int, optional): stop output when too deep recursion in sub elements |
| 752 | max_list (int, optional): stop output when too many sub elements |
| 753 | """ |
| 754 | super(PrintData, self).__init__(ds) |
| 755 | self.num = num |
| 756 | self.name = name |
| 757 | self.cnt = 0 |
| 758 | self.max_depth = max_depth |
| 759 | self.max_list = max_list |
| 760 | |
| 761 | def _analyze_input_data(self, entry, k, depth=1, max_depth=3, max_list=3): |
| 762 | """ |