mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-02 12:10:23 +08:00
MAINT: Pass explicit dtype to np.full.
This commit is contained in:
1 parent
dafe49fcca
commit
c4e114c28f
1 file changed
+5
-5
@@ -3485,11 +3485,11 @@ class TestOrderCancelation(WithDataPortal,
|
||||
def make_equity_daily_bar_data(cls):
|
||||
yield 1, pd.DataFrame(
|
||||
{
|
||||
'open': np.full(3, 1),
|
||||
'high': np.full(3, 1),
|
||||
'low': np.full(3, 1),
|
||||
'close': np.full(3, 1),
|
||||
'volume': np.full(3, 1),
|
||||
'open': np.full(3, 1, dtype=np.float64),
|
||||
'high': np.full(3, 1, dtype=np.float64),
|
||||
'low': np.full(3, 1, dtype=np.float64),
|
||||
'close': np.full(3, 1, dtype=np.float64),
|
||||
'volume': np.full(3, 1, dtype=np.float64),
|
||||
},
|
||||
index=cls.sim_params.sessions,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user