Source code for sardine.data_output.export_data

[docs] class LineCompletionData: def __init__(self): ''' Initializes the LineCompletionData class ''' self._source_lines = {} self._receiver_lines = {}
[docs] def stamp_shooting_start(self, line, timestamp): ''' Sets the given timestamp as the default time to start shooting the given source line ''' self._source_lines.setdefault(line, {})['start shooting'] = timestamp
[docs] def stamp_shooting_end(self, line, timestamp): ''' Sets the given timestamp as the default time to end shooting the given source line ''' self._source_lines.setdefault(line, {})['end shooting'] = timestamp
[docs] def stamp_deployment_start(self, line, timestamp): ''' Sets the given timestamp as the default time to start deploying the given receiver line ''' self._receiver_lines.setdefault(line, {})['start deployment'] = timestamp
[docs] def stamp_deployment_end(self, line, timestamp): ''' Sets the given timestamp as the default time to end deploying the given receiver line ''' self._receiver_lines.setdefault(line, {})['end deployment'] = timestamp
[docs] def stamp_recovery_start(self, line, timestamp): ''' Sets the given timestamp as the default time to start recoverying the given receiver line ''' self._receiver_lines.setdefault(line, {})['start recovery'] = timestamp
[docs] def stamp_recovery_end(self, line, timestamp): ''' Sets the given timestamp as the default time to end recoverying the given receiver line ''' self._receiver_lines.setdefault(line, {})['end recovery'] = timestamp
@property def receiver_lines(self): ''' Returns the receiver lines ''' return self._receiver_lines @property def source_lines(self): ''' Returns the source lines ''' return self._source_lines