Add offline workflow and coverage tests
This commit is contained in:
@@ -166,13 +166,14 @@ class ReferenceSimulator(ExecutionSimulator):
|
||||
st = wide(data_df, "isST") if "isST" in data_df.columns else opn * 0.0
|
||||
|
||||
symbols = sorted(set(tgt.columns) | set(opn.columns))
|
||||
data_index = close.index
|
||||
tgt = tgt.reindex(columns=symbols)
|
||||
opn = opn.reindex(columns=symbols)
|
||||
opn = opn.reindex(index=data_index, columns=symbols)
|
||||
close = close.reindex(columns=symbols)
|
||||
preclose = preclose.reindex(columns=symbols)
|
||||
amount = amount.reindex(columns=symbols)
|
||||
tstat = tstat.reindex(columns=symbols)
|
||||
st = st.reindex(columns=symbols)
|
||||
preclose = preclose.reindex(index=data_index, columns=symbols)
|
||||
amount = amount.reindex(index=data_index, columns=symbols)
|
||||
tstat = tstat.reindex(index=data_index, columns=symbols)
|
||||
st = st.reindex(index=data_index, columns=symbols)
|
||||
|
||||
sym_arr = np.asarray(symbols, dtype=object)
|
||||
n = len(symbols)
|
||||
|
||||
Reference in New Issue
Block a user