From b058f78268851146bf91c331a64a6009b6c8f50b Mon Sep 17 00:00:00 2001 From: Forrest Collman Date: Wed, 31 Jan 2024 10:45:13 -0800 Subject: [PATCH] formatting fixes --- python/neuroglancer/write_annotations.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python/neuroglancer/write_annotations.py b/python/neuroglancer/write_annotations.py index 6b4e4cdd5..92b78d0a8 100644 --- a/python/neuroglancer/write_annotations.py +++ b/python/neuroglancer/write_annotations.py @@ -67,14 +67,14 @@ class Annotation(NamedTuple): def choose_output_spec(total_count, total_bytes, - hash: ShardHashType = "murmurhash3_x86_128", + hashtype: ShardHashType = "murmurhash3_x86_128", gzip_compress=True): if total_count ==1: return None options = { '@type': 'neuroglancer_uint64_sharded_v1', - 'hash': hash, + 'hash': hashtype, } total_minishard_bits = 0 @@ -99,11 +99,9 @@ def choose_output_spec(total_count, total_bytes, options['data_encoding'] = 'raw' options['minishard_index_encoding'] = 'raw' - # options.setdefault('minishard_index_compression', {}).setdefault('gzip_compression', {})['level'] = minishard_index_compression - # options.setdefault('data_compression', {}).setdefault('gzip_compression', {})['level'] = data_compression - return options + def _get_dtype_for_geometry(annotation_type: AnnotationType, rank: int): geometry_size = rank if annotation_type == "point" else 2 * rank return [("geometry", "