You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					10 lines
				
				276 B
			
		
		
			
		
	
	
					10 lines
				
				276 B
			| 
								 
											4 years ago
										 
									 | 
							
								#!/usr/bin/env python3
							 | 
						||
| 
								 | 
							
								import numpy as np
							 | 
						||
| 
								 
											3 years ago
										 
									 | 
							
								from system.hardware.tici.power_monitor import sample_power
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								if __name__ == '__main__':
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								  print("measuring for 5 seconds")
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								  for _ in range(3):
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								    pwrs = sample_power()
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								    print("mean %.2f std %.2f" % (np.mean(pwrs), np.std(pwrs)))
							 |