mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-17 22:08:00 +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"],
|
||||
},
|
||||
"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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user