(self)
| 103 | self.dataset = dataset |
| 104 | |
| 105 | def get_config(self): |
| 106 | config = { |
| 107 | 'id_attr': self.id_attr, |
| 108 | 'keep_attrs': self.keep_attrs[:5], |
| 109 | 'label_attr': self.label_attr, |
| 110 | 'use_position': self.use_position, |
| 111 | 'window_size': self.window_size, |
| 112 | 'rect': dict(list(self.rect.items())[:3]), |
| 113 | 'keep_elem': self.keep[:5], |
| 114 | 'obs_elem': self.obs[:5], |
| 115 | 'parent_chain': self.parent_chain, |
| 116 | 'prompt_name': self.prompt.name, |
| 117 | 'identifier_name': self.identifier.name |
| 118 | } |
| 119 | |
| 120 | return config, config_meta.format(**config) |
| 121 | |
| 122 | def update_rect_dict(self, rect_dict: dict[str]={}) -> None: |
| 123 | self.rect = rect_dict |
nothing calls this directly
no outgoing calls
no test coverage detected