mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 22:54:18 +00:00 
			
		
		
		
	Merge pull request #511 from bjackman/energy-measurement-standard-metrics
energy_measurement: Ensure 'standard' energy metrics are produced
This commit is contained in:
		| @@ -290,7 +290,7 @@ class EnergyMeasurement(Instrument): | ||||
|             # Append the device key to the filename and artifact name, unless | ||||
|             # it's None (as it will be for backends with only 1 | ||||
|             # devce/instrument) | ||||
|             if device is not None: | ||||
|             len(self.instruments) > 1: | ||||
|                 name = 'energy_instrument_output_{}'.format(device) | ||||
|             else: | ||||
|                 name = 'energy_instrument_output' | ||||
| @@ -315,7 +315,7 @@ class EnergyMeasurement(Instrument): | ||||
|             for meas in derived_measurements: | ||||
|                 # Append the device key to the metric name, unless it's None (as | ||||
|                 # it will be for backends with only 1 devce/instrument) | ||||
|                 if device is not None: | ||||
|                 if len(self.instruments) > 1: | ||||
|                     metric_name = '{}_{}'.format(meas.name, device) | ||||
|                 else: | ||||
|                     metric_name = meas.name | ||||
|   | ||||
		Reference in New Issue
	
	Block a user