def _connect_to_db(self):
        if self.orientdb_client:
            return self.orientdb_client.db_open(self.app.config.get('ORIENTDB_DB').db_name,
                                           self.app.config.get('ORIENTDB_DB').db_username,
                                           self.app.config.get('ORIENTDB_DB').db_password)
        else:
            raise Exception("tried to connect to db without client.")
Compute an aggregate grouped by pixel sized bins.
dataset/ETHPy150Open calthoff/flask-orientdb/flask_orientdb.py/OrientDB._connect_to_db--crossover with--dataset/ETHPy150Open bokeh/datashader/datashader/core.py/bypixel