| 130 | } |
| 131 | |
| 132 | size_t convertColumnIndex( const ObjectMatrix &m, tuple index ) |
| 133 | { |
| 134 | int64_t column = extract<int64_t>( index[1] ); |
| 135 | if( column < 0 ) |
| 136 | { |
| 137 | column += m.numColumns(); |
| 138 | } |
| 139 | if( column >= (int64_t)m.numColumns() || column < 0 ) |
| 140 | { |
| 141 | PyErr_SetString( PyExc_IndexError, "Index out of range" ); |
| 142 | throw_error_already_set(); |
| 143 | } |
| 144 | |
| 145 | return column; |
| 146 | } |
| 147 | |
| 148 | IECore::ObjectPtr getItem( const ObjectMatrix &m, tuple index ) |
| 149 | { |
no test coverage detected