Lines Matching refs:powerlog_dict
97 powerlog_dict = {
105 return powerlog_dict
120 def _save_json(self, powerlog_dict, resultsdir, filename='power_log.json'): argument
132 json_str = json.dumps(powerlog_dict, indent=4, separators=(',', ': '),
138 def _save_html(self, powerlog_dict, resultsdir, filename='power_log.html'): argument
152 for r, t in powerlog_dict['power']['type'].iteritems():
168 for i in range(powerlog_dict['power']['sample_count']):
169 row = [str(i * powerlog_dict['power']['sample_duration'])]
171 row.append(str(powerlog_dict['power']['data'][r][i]))
176 unit = powerlog_dict['power']['unit'][rail_type[t][0]]
185 def _upload(self, powerlog_dict, uploadurl): argument
192 json_str = json.dumps(powerlog_dict, ensure_ascii=False)
278 powerlog_dict = self._create_powerlog_dict(raw_measurement)
280 self._save_json(powerlog_dict, self._resultsdir)
281 self._save_html(powerlog_dict, self._resultsdir)
283 self._upload(powerlog_dict, self._uploadurl)
385 powerlog_dict = \
390 powerlog_dict['timestamp'] = self._logger.times[0]
392 return powerlog_dict