mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 11:28:12 +08:00
[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:
@@ -63,7 +63,7 @@ class ConfigAPI(Resource):
|
|||||||
"dataset": current_app.config["DATASET_TITLE"],
|
"dataset": current_app.config["DATASET_TITLE"],
|
||||||
},
|
},
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"max_category_items": current_app.data.config["max_category_items"]
|
"max-category-items": current_app.data.config["max_category_items"]
|
||||||
},
|
},
|
||||||
"library_versions": {
|
"library_versions": {
|
||||||
"scanpy": pkg_resources.get_distribution("scanpy").version,
|
"scanpy": pkg_resources.get_distribution("scanpy").version,
|
||||||
|
|||||||
@@ -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("--host", default="127.0.0.1", help="Host IP address")
|
||||||
@click.option(
|
@click.option(
|
||||||
"--max-category-items",
|
"--max-category-items",
|
||||||
default=100,
|
default=1000,
|
||||||
metavar="",
|
metavar="",
|
||||||
show_default=True,
|
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(
|
@click.option(
|
||||||
"--diffexp-lfc-cutoff",
|
"--diffexp-lfc-cutoff",
|
||||||
|
|||||||
@@ -78,8 +78,6 @@ class EngineTest(unittest.TestCase):
|
|||||||
def test_schema(self):
|
def test_schema(self):
|
||||||
with open(path.join(path.dirname(__file__), "schema.json")) as fh:
|
with open(path.join(path.dirname(__file__), "schema.json")) as fh:
|
||||||
schema = json.load(fh)
|
schema = json.load(fh)
|
||||||
print(schema)
|
|
||||||
print(self.data.schema)
|
|
||||||
self.assertEqual(self.data.schema, schema)
|
self.assertEqual(self.data.schema, schema)
|
||||||
|
|
||||||
def test_schema_produces_error(self):
|
def test_schema_produces_error(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user