:mod:`pyranges.multithreaded` ============================= .. py:module:: pyranges.multithreaded Module Contents --------------- .. function:: get_n_args(f) .. function:: call_f(f, nparams, df, odf, kwargs) .. function:: call_f_single(f, nparams, df, **kwargs) .. py:class:: suppress_stdout_stderr Bases: :class:`object` A context manager for doing a "deep suppression" of stdout and stderr in Python, i.e. will suppress all print, even if the print originates in a compiled C/Fortran sub-function. This will not suppress raised exceptions, since exceptions are printed to stderr just before a script exits, and after the context manager has exited (at least, I think that is why it lets exceptions through). .. method:: __enter__(self) .. method:: __exit__(self, *_) .. function:: merge_dfs(df1, df2) .. function:: process_results(results, keys) .. function:: make_sparse(df) .. function:: make_binary_sparse(kwargs, df, odf) .. function:: make_unary_sparse(kwargs, df) .. function:: ray_initialized() .. function:: get_multithreaded_funcs(function, nb_cpu) .. function:: pyrange_apply(function, self, other, **kwargs) .. function:: pyrange_apply_single(function, self, **kwargs) .. function:: _lengths(df) .. function:: _tss(df, **kwargs) .. function:: _tes(df, **kwargs) .. function:: _slack(df, **kwargs) .. function:: pyrange_apply_chunks(function, self, as_pyranges, **kwargs)