ui/ImageView.py
def make_new_observation(self, concept):
        """
        Create a new observation of the specified concept
        :param concept: Concept to observe
        :return: Observation JSON response
        """
        kwargs = dict()
        fields = self.moment.metadata.keys()
        if 'timecode' in fields:
            kwargs['timecode'] = self.moment.metadata['timecode']
        if 'elapsed_time_millis' in fields:
            kwargs['elapsed_time_millis'] = self.moment.metadata['elapsed_time_millis']
        if 'recorded_date' in fields:
            kwargs['recorded_timestamp'] = self.moment.metadata['recorded_date']

        observation = create_observation(  # Call observation creation request
            self.moment.metadata['video_reference_uuid'],
            concept,
            self.observer,
            **kwargs
        )

        self.moment.treeWidget().editable_uuids.add(observation['observation_uuid'])

        self.reload_moment()

        return observation

        Create a new observation of the specified concept
        :param concept: Concept to observe
        :return: Observation JSON response
        
Create a new observation of the specified concept
Create a new observation of the specified concept
def make_new_observation(self, concept):
        kwargs = dict()
        fields = self.moment.metadata.keys()
        if 'timecode' in fields:
            kwargs['timecode'] = self.moment.metadata['timecode']
        if 'elapsed_time_millis' in fields:
            kwargs['elapsed_time_millis'] = self.moment.metadata['elapsed_time_millis']
        if 'recorded_date' in fields:
            kwargs['recorded_timestamp'] = self.moment.metadata['recorded_date']
        observation = create_observation(  
            self.moment.metadata['video_reference_uuid'],
            concept,
            self.observer,
            **kwargs
        )
        self.moment.treeWidget().editable_uuids.add(observation['observation_uuid'])
        self.reload_moment()
        return observation
def make_new_observation ( self , concept ) : kwargs = dict ( ) fields = self . moment . metadata . keys ( ) if 'timecode' in fields : kwargs [ 'timecode' ] = self . moment . metadata [ 'timecode' ] if 'elapsed_time_millis' in fields : kwargs [ 'elapsed_time_millis' ] = self . moment . metadata [ 'elapsed_time_millis' ] if 'recorded_date' in fields : kwargs [ 'recorded_timestamp' ] = self . moment . metadata [ 'recorded_date' ] observation = create_observation ( self . moment . metadata [ 'video_reference_uuid' ] , concept , self . observer , ** kwargs ) self . moment . treeWidget ( ) . editable_uuids . add ( observation [ 'observation_uuid' ] ) self . reload_moment ( ) return observation
Create a new observation of the specified concept
Create a new observation of the specified concept
"""
        Create a new observation of the specified concept
        :param concept: Concept to observe
        :return: Observation JSON response
        """ # Call observation creation request
Observation JSON response
Observation JSON response
self
concept
Concept to observe
Concept to observe