core library (#711)

* move app creation to function

* create engine without load

* flake 8 fixes

* cleanup original scanpy test

* add default config

* handle missing data

* test data changes

* unify update

* load data isn't static anymore

* make app a class
This commit is contained in:
Charlotte Weaver
2019-04-22 12:24:07 -07:00
committed by GitHub
parent 1f735abe2b
commit 9c6273eb94
10 changed files with 171 additions and 60 deletions
+3 -1
View File
@@ -7,6 +7,7 @@ import webbrowser
import click
from server.app.app import Server
from server.app.util.errors import ScanpyFileError
from server.app.util.utils import custom_format_warning
@@ -116,8 +117,9 @@ def launch(
cellxgene_url = f"http://{host}:{port}"
# Import Flask app
from server.app.app import app
server = Server()
app = server.create_app()
app.config.update(DATASET_TITLE=title)
if not verbose: