Commit Graph

13 Commits

Author SHA1 Message Date
fawce 3f4d772e4c first draft of lines returning new SimulatedTrading object. 2012-08-07 11:15:14 -04:00
fawce b67cbb2aab updated tests to compare with/without processes 2012-08-04 15:26:48 -04:00
fawce 4a582e8952 modified zmq_gen method to yield None when there is no waiting message. This prevents blocking in the next() method of a component. But it requires generators wrapping the component to handle None.
Also modified component's receiver creation to be triggered on the first call to next, rather than iter.
This change means that the zmq context and socket for the component's receiver should always be created in
the same process as the consumer of the generator. Chaining together component wrapped generators will
result in the send process of the last component actually instantiating the receive socket of the prior component.
In this way, the components are actually communicating directly via zmq.

Component's send method now calls the wait_ready(), which waits for the monitor's GO message, inside
the generator loop. This guarantees that the generator's next method is called before the send loop blocks
on the monitor. As a result, components will call __init__ and next() without blocking, mimicking the
behavior of plain generators.
2012-08-04 12:58:07 -04:00
fawce f3c81d6731 dropped an extraneous sleep in the test 2012-08-03 23:00:45 -04:00
fawce 479ad502f6 addressing race condition between loop_send exit and DONE message delivery. 2012-08-03 01:05:53 -04:00
fawce f166626ea8 multiple sources, each as component, feeding sort. 2012-08-02 22:51:17 -04:00
fawce 111681aacf Merge branch 'new_world_order' of github.com:quantopian/zipline into new_world_order
Conflicts:
	zipline/gens/composites.py
2012-08-02 18:11:35 -04:00
fawce c2b4689668 intersticial to merge with scott 2012-08-02 18:02:43 -04:00
fawce cfc49d3ccc using classes instead of pure generators in component 2012-08-02 16:20:15 -04:00
fawce 12c7cd3b41 removed extraneous imports to remove circularity 2012-08-02 15:40:26 -04:00
fawce d141422ada component is self-contained! 2012-08-02 14:45:13 -04:00
fawce dd1056bf30 generator backed component, and a starter test for a source. 2012-08-01 23:41:44 -04:00
fawce 318065125f refactored component to use a generator 2012-08-01 21:43:15 -04:00