(self, name: Key, index: int)
| 738 | return has_keyword(self.func, "partition_info") |
| 739 | |
| 740 | def _task(self, name: Key, index: int) -> Task: |
| 741 | args = [self._blockwise_arg(op, index) for op in self.args] |
| 742 | kwargs = dict(self.kwargs if self.kwargs is not None else {}) |
| 743 | if self._has_partition_info: |
| 744 | kwargs["partition_info"] = { |
| 745 | "number": index, |
| 746 | "division": self.divisions[index], |
| 747 | } |
| 748 | |
| 749 | if self.enforce_metadata: |
| 750 | kwargs.update( |
| 751 | { |
| 752 | "_func": self.func, |
| 753 | "_meta": self._meta, |
| 754 | } |
| 755 | ) |
| 756 | return Task(name, apply_and_enforce, *args, **kwargs) |
| 757 | else: |
| 758 | return Task( |
| 759 | name, |
| 760 | self.func, |
| 761 | *args, |
| 762 | **kwargs, |
| 763 | ) |
| 764 | |
| 765 | @staticmethod |
| 766 | def projected_operation(mapped_func, post_projection, *args, **kwargs): |
nothing calls this directly
no test coverage detected