Coverage for /home/shudson/libensemble/rsync-to-clusters/nkag-fresh-checkout/libensemble_master/libensemble/sim_funcs/comms_testing.py : 0%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
from __future__ import division from __future__ import print_function
import numpy as np from libensemble.controller import JobController
def float_x1000(H, persis_info, sim_specs, _): """ Multiplies worker ID by 1000 and sends back values Input (X) is ignored in this case """
#All values output = np.zeros(1,dtype=sim_specs['out'])
#First test fill - even though - it will do arr_vals and scal_val jobctl = JobController.controller x = jobctl.workerID * 1000.0
output.fill(x) #All set output['scal_val'] = x + x/1e7 #Make scalar value distinct
return output, persis_info
#def input_double(H, persis_info, sim_specs, _): #""" #Not yet implemented #Multiplies input X values by 2 and sends back values
#""" #pass |