| 120 | |
| 121 | |
| 122 | class Points: |
| 123 | def __init__(self, point_inds=[], xs=[], ys=[], trace_name=None, trace_index=None): |
| 124 | self._point_inds = point_inds |
| 125 | self._xs = xs |
| 126 | self._ys = ys |
| 127 | self._trace_name = trace_name |
| 128 | self._trace_index = trace_index |
| 129 | |
| 130 | def __repr__(self): |
| 131 | return """\ |
| 132 | Points(point_inds={point_inds}, |
| 133 | xs={xs}, |
| 134 | ys={ys}, |
| 135 | trace_name={trace_name}, |
| 136 | trace_index={trace_index})""".format( |
| 137 | point_inds=_list_repr_elided( |
| 138 | self.point_inds, indent=len("Points(point_inds=") |
| 139 | ), |
| 140 | xs=_list_repr_elided(self.xs, indent=len(" xs=")), |
| 141 | ys=_list_repr_elided(self.ys, indent=len(" ys=")), |
| 142 | trace_name=repr(self.trace_name), |
| 143 | trace_index=repr(self.trace_index), |
| 144 | ) |
| 145 | |
| 146 | @property |
| 147 | def point_inds(self): |
| 148 | """ |
| 149 | List of selected indexes into the trace's points |
| 150 | |
| 151 | Returns |
| 152 | ------- |
| 153 | list[int] |
| 154 | """ |
| 155 | return self._point_inds |
| 156 | |
| 157 | @property |
| 158 | def xs(self): |
| 159 | """ |
| 160 | List of x-coordinates of selected points |
| 161 | |
| 162 | Returns |
| 163 | ------- |
| 164 | list[float] |
| 165 | """ |
| 166 | return self._xs |
| 167 | |
| 168 | @property |
| 169 | def ys(self): |
| 170 | """ |
| 171 | List of y-coordinates of selected points |
| 172 | |
| 173 | Returns |
| 174 | ------- |
| 175 | list[float] |
| 176 | """ |
| 177 | return self._ys |
| 178 | |
| 179 | @property |
no outgoing calls
no test coverage detected