The multi asset example notebook crashes with the traceback:
Process BTgymDataFeedServer-2:1:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/home/shikhar/dev/btgym/btgym/dataserver.py", line 175, in run
sample = self.get_data(sample_config=service_input['kwargs'])
File "/home/shikhar/dev/btgym/btgym/dataserver.py", line 87, in get_data
sample = self.dataset.sample(**sample_config)
File "/home/shikhar/dev/btgym/btgym/datafeed/multi.py", line 209, in sample
master_sample = self.master_data.sample(**kwargs)
File "/home/shikhar/dev/btgym/btgym/datafeed/casual.py", line 516, in sample
**kwargs
File "/home/shikhar/dev/btgym/btgym/datafeed/base.py", line 812, in _sample_interval
if interval[-1] - interval[0] + self.max_gap_num_records > self.sample_num_records:
AttributeError: 'BTgymCasualDataDomain' object has no attribute 'max_gap_num_records'
Running environment:
Ubuntu Server 18.04
Python 3.6.7
btgym==0.0.8 (master)
Files or part of package has been run:
btgym/examples/multi_discrete_setup_intro.ipynb
Expected behaviour:
The DataFeed server should not crash.
Actual behaviour:
The DataFeed server crashes when the example is run.
Steps to reproduce:
Run the example in btgym/examples/multi_discrete_setup_intro.ipynb
The multi asset example notebook crashes with the traceback:
Running environment:
btgym==0.0.8
(master)Files or part of package has been run:
btgym/examples/multi_discrete_setup_intro.ipynb
Expected behaviour:
The DataFeed server should not crash.
Actual behaviour:
The DataFeed server crashes when the example is run.
Steps to reproduce:
Run the example in
btgym/examples/multi_discrete_setup_intro.ipynb
Fix:
I just wanted to check if I am making some obvious mistake in understanding the usage of the example which causes this error.