def get_h_y(*args): """ Returns the array of y_components of the magnetic field. """ if(_get_nfeh(*args) == 1): return _PyNEC.nec_near_field_pattern_get_field_y(*args) else: error_msg = "This result is a Near Electric Field Pattern. Try and get 'e_y' instead." raise exceptions.Warning(error_msg)
def get_h_y(*args): """ Returns the array of y_components in amps / meters of the magnetic field. """ nfeh = _get_nfeh(*args) if nfeh == 1 : return _PyNEC.nec_near_field_pattern_get_field_y(*args) elif nfeh == 0: error_msg = "This result is a Near Electric Field Pattern. Try and get 'e_y' instead." raise exceptions.Warning(error_msg) else : error_msg = "Unknown near_field_type : " + nfeh.__str__() + "." raise exceptions.Warning(error_msg)