Python msgpack_numpy.patch() Examples

The following are 1 code examples of msgpack_numpy.patch(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module msgpack_numpy , or try the search function .
Example #1
Source File: config.py    From rep0st with MIT License 5 votes vote down vote up
def load():
    global is_loaded
    if not is_loaded:
        # Patch numpy types into msgpack
        msgpack_numpy.patch()

        logbook.StreamHandler(sys.stdout, level=logbook.DEBUG).push_application()
        logbook.compat.redirect_logging()
        is_loaded = True