De-densify some funcs

misc_backend_fixes
Tyler Goodlet 2021-10-22 13:03:12 -04:00
parent 49bdbf29be
commit c52d63c762
2 changed files with 3 additions and 0 deletions

View File

@ -394,6 +394,7 @@ def open_shm_array(
# "unlink" created shm on process teardown by
# pushing teardown calls onto actor context stack
tractor._actor._lifetime_stack.callback(shmarr.close)
tractor._actor._lifetime_stack.callback(shmarr.destroy)

View File

@ -133,9 +133,11 @@ def mk_symbol(
def from_df(
df: pd.DataFrame,
source=None,
default_tf=None
) -> np.recarray:
"""Convert OHLC formatted ``pandas.DataFrame`` to ``numpy.recarray``.