<gh_stars>0
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

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
Multiplies worker ID by 1000 and sends back values     Input (X) is ignored in this case #All values #First test fill - even though - it will do arr_vals and scal_val #All set #Make scalar value distinct #def input_double(H, persis_info, sim_specs, _): #""" #Not yet implemented #Multiplies input X values by 2 and sends back values #""" #pass