[EASY] fix max-category-items (#813)

* fix max-category-items

* match default for max category items

fe had 1000, be had 100
This commit is contained in:
Charlotte Weaver
2019-06-13 15:45:43 -07:00
committed by GitHub
parent 334b8bb8da
commit d5deb1579f
3 changed files with 3 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ class ConfigAPI(Resource):
"dataset": current_app.config["DATASET_TITLE"],
},
"parameters": {
"max_category_items": current_app.data.config["max_category_items"]
"max-category-items": current_app.data.config["max_category_items"]
},
"library_versions": {
"scanpy": pkg_resources.get_distribution("scanpy").version,

View File

@@ -62,10 +62,10 @@ BIG_FILE_SIZE_THRESHOLD = 100 * 2**20 # 100MB
@click.option("--host", default="127.0.0.1", help="Host IP address")
@click.option(
"--max-category-items",
default=100,
default=1000,
metavar="",
show_default=True,
help="Limits the number of categorical annotation items displayed.",
help="Categories with more distinct values than this will not be displayed.",
)
@click.option(
"--diffexp-lfc-cutoff",

View File

@@ -78,8 +78,6 @@ class EngineTest(unittest.TestCase):
def test_schema(self):
with open(path.join(path.dirname(__file__), "schema.json")) as fh:
schema = json.load(fh)
print(schema)
print(self.data.schema)
self.assertEqual(self.data.schema, schema)
def test_schema_produces_error(self):