{// Wait for client I/O events (handle interrupts).while(ACE_OS::poll (poll_array, n_handles) ==-1&& errno == EINTR)continue;handle_data(n_handles); handle_connections (peer_acceptor, n_handles); }/* NOTREACHED */return0; } 开发者ID:DOCGroup,项目名称:ACE_TAO,代码行数:33,代码...
data = sm_data.handle_data(self.y, self.X,'drop', sigma=sigma) idx = ~np.isnan(np.c_[self.y, self.X]).any(axis=1) sigma = sigma[idx][:,idx] np.testing.assert_array_equal(data.sigma, sigma) 开发者ID:dengemann,项目名称:statsmodels,代码行数:7,代码来源:test_data.py 示例3: ...
handle_data(context, data)函数,该函数每个单位时间会调用一次, 如果按天回测,则每天调用一次,如果按分钟,则每分钟调用一次。 参数 context: Context对象, 存放有当前的账户/标的持仓信息 data: 一个字典(dict...
如果想借用原来handle_data中的逻辑,放到自己定义的函数中,就会碰到对data对象引用的问题。 def period(context,data):在编译运行时会碰到下面的报错: TypeError: period() missing 1 required positional argument: 'data' 考虑到data对象的属性在get_price()返回的对象中都有,几个基本的属性和get_current_data()得...
此参数可以HDATA_APPOWNED,它指定调用DdeCreateDataHandle函数的服务器应用程序拥有此函数创建的数据句柄。 此标志使应用程序能够与其他 DDEML 应用程序共享数据句柄,而不是创建单独的句柄以传递给每个应用程序。 如果指定了此标志,则应用程序必须最终使用DdeFreeDataHandle函数释放与句柄关联的共享内存对象。 如果未指定此...
DdeClientTransaction 函数 DdeCmpStringHandles 函数 DdeConnect 函数 DdeConnectList 函数 DdeCreateDataHandle 函数 DdeCreateStringHandleA 函数 DdeCreateStringHandleW 函数 DdeDisconnect 函数 DdeDisconnectList 函数 DdeEnableCallback 函数 DdeFreeDataHandle 函数 ...
此参数可以HDATA_APPOWNED,它指定调用DdeCreateDataHandle函数的服务器应用程序拥有此函数创建的数据句柄。 此标志使应用程序能够与其他 DDEML 应用程序共享数据句柄,而不是创建单独的句柄以传递给每个应用程序。 如果指定了此标志,则应用程序必须最终使用DdeFreeDataHandle函数释放与句柄关联的共享内存对象。 如果未指定此...
Method/Function:handle 导入包:stackerlookupshandlershook_data 每个示例代码都附有代码来源和完整的源代码,希望对您的程序开发有帮助。 示例1 deftest_invalid_hook_data(self):withself.assertRaises(KeyError):HookDataLookup.handle("fake_hook::bad_key",context=self.ctx) ...
函数uint16_t SCI_putDataNonBlocking(SCI_Handle sciHandle, uint16_t data)实现的功能是()。A.等待TXRDY=0,把数据写入发送缓冲寄存器 B.等待TXRDY=1,把数据写入发送缓冲寄存器 C.判断TXRDY状态,如果允许发送,就把数据写入发送缓冲寄存器。否则退出,并返回错误值 D.判断TXRDY状态,如果不允许发送,就把数据写入...
aAfter SetClipboardData is called, the system owns the object identified by the hMem parameter. The application can read the data, but must not free the handle or leave it locked. If the hMem parameter identifies a memory object, the object must have been allocated using the LocalAlloc funct...