def get_e_x(*args):
    	"""
	Returns the array of x_components of the electric field.
	"""
    	if(_get_nfeh(*args) != 1):
		return _PyNEC.nec_near_field_pattern_get_field_x(*args)
	else:
		error_msg = "This result is a Near Magnetic Field Pattern. Try and get 'h_x' instead."
		raise exceptions.Warning(error_msg)
    def get_h_x(*args):
    	"""
	Returns the array of x_components in amps / meters of the magnetic field.
	"""
    	nfeh = _get_nfeh(*args)
    	if nfeh == 1 :
		return _PyNEC.nec_near_field_pattern_get_field_x(*args)
	elif nfeh == 0:
		error_msg = "This result is a Near Electric Field Pattern. Try and get 'e_x' instead."
		raise exceptions.Warning(error_msg)
	else :
		error_msg = "Unknown near_field_type : " + nfeh.__str__() + "."
		raise exceptions.Warning(error_msg)