parameters: (self, ws)
return_statement: return 1 if firstAngle < lastAngle else -1
docstring: Return 1 if workspace indices increase with Bragg angle, otherwise return -1.
docstring_summary: Return 1 if workspace indices increase with Bragg angle, otherwise return -1.
docstring_tokens: Return 1 if workspace indices increase with Bragg angle otherwise return - 1 .
function: def _workspaceIndexDirection(self, ws):
          """Return 1 if workspace indices increase with Bragg angle, otherwise return -1."""
          firstDet = ws.getDetector(0)
          firstAngle = ws.detectorTwoTheta(firstDet)
          lastDet = ws.getDetector(ws.getNumberHistograms() - 1)
          lastAngle = ws.detectorTwoTheta(lastDet)
          return 1 if firstAngle < lastAngle else -1
function_tokens: def _workspaceIndexDirection ( self , ws ) : firstDet = ws . getDetector ( 0 ) firstAngle = ws . detectorTwoTheta ( firstDet ) lastDet = ws . getDetector ( ws . getNumberHistograms ( ) - 1 ) lastAngle = ws . detectorTwoTheta ( lastDet ) return 1 if firstAngle < lastAngle else - 1