Exemple #1
0
    def add_observations(self, new_data):
        """Update `dataset` with `new_data`."""
        update_id = uuid.uuid4().hex
        self.add_pending_update(update_id)

        new_data = to_list(new_data)

        # fetch data before other updates
        new_dframe_raw = dframe_from_update(self, new_data)

        call_async(calculate_updates, self, new_data,
                   new_dframe_raw=new_dframe_raw, update_id=update_id)
    def add_observations(self, new_data):
        """Update `dataset` with `new_data`."""
        update_id = uuid.uuid4().hex
        self.add_pending_update(update_id)

        new_data = to_list(new_data)

        # fetch data before other updates
        new_dframe_raw = dframe_from_update(self, new_data)

        call_async(calculate_updates,
                   self,
                   new_data,
                   new_dframe_raw=new_dframe_raw,
                   update_id=update_id)
Exemple #3
0
 def update_observation(self, index, data):
     # check that update is valid
     dframe_from_update(self, [data])
     Observation.update(self, index, data)
     call_async(propagate, self, update={'edit': [index, data]})
 def update_observation(self, index, data):
     # check that update is valid
     dframe_from_update(self, [data])
     Observation.update(self, index, data)
     call_async(propagate, self, update={'edit': [index, data]})