parameters: (self, ws)
return_statement: return [start, centre, end]
docstring: Return a three-element list of foreground start, center and end workspace indices.
docstring_summary: Return a three-element list of foreground start, center and end workspace indices.
docstring_tokens: Return a three - element list of foreground start center and end workspace indices .
function: def _foregroundIndices(self, ws):
          """Return a three-element list of foreground start, center and end workspace indices."""
          foregroundProp = self.getProperty(Prop.FOREGROUND_INDICES)
          if not foregroundProp.isDefault:
              return foregroundProp.value
          logs = ws.run()
          if not logs.hasProperty(common.SampleLogs.FOREGROUND_START):
              raise RuntimeError("The sample logs are missing the '" + common.SampleLogs.FOREGROUND_START + "' entry.")
          start = logs.getProperty(common.SampleLogs.FOREGROUND_START).value
          if not logs.hasProperty(common.SampleLogs.FOREGROUND_CENTRE):
              raise RuntimeError("The sample logs are missing the '" + common.SampleLogs.FOREGROUND_CENTRE + "' entry.")
          centre = logs.getProperty(common.SampleLogs.FOREGROUND_CENTRE).value
          if not logs.hasProperty(common.SampleLogs.FOREGROUND_END):
              raise RuntimeError("The sample logs are missing the '" + common.SampleLogs.FOREGROUND_END + "' entry.")
          end = logs.getProperty(common.SampleLogs.FOREGROUND_END).value
          return [start, centre, end]
function_tokens: def _foregroundIndices ( self , ws ) : foregroundProp = self . getProperty ( Prop . FOREGROUND_INDICES ) if not foregroundProp . isDefault : return foregroundProp . value logs = ws . run ( ) if not logs . hasProperty ( common . SampleLogs . FOREGROUND_START ) : raise RuntimeError ( "The sample logs are missing the '" + common . SampleLogs . FOREGROUND_START + "' entry." ) start = logs . getProperty ( common . SampleLogs . FOREGROUND_START ) . value if not logs . hasProperty ( common . SampleLogs . FOREGROUND_CENTRE ) : raise RuntimeError ( "The sample logs are missing the '" + common . SampleLogs . FOREGROUND_CENTRE + "' entry." ) centre = logs . getProperty ( common . SampleLogs . FOREGROUND_CENTRE ) . value if not logs . hasProperty ( common . SampleLogs . FOREGROUND_END ) : raise RuntimeError ( "The sample logs are missing the '" + common . SampleLogs . FOREGROUND_END + "' entry." ) end = logs . getProperty ( common . SampleLogs . FOREGROUND_END ) . value return [ start , centre , end ]