Skip to content

Commit 72d1074

Browse files
authored
Merge pull request #55 from CSDLLab/2021_0607_add_config_help
change z scale in to scale including z,y scale. Show schema error
2 parents 5a71c9c + 19b7f6c commit 72d1074

22 files changed

+67
-58
lines changed

config/branch_metric.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"threshold_dis": 2,
33
"threshold_mode": 1,
4-
"z_scale": 1,
4+
"scale": [1, 1, 1],
55
"true_positive": 3,
66
"missed": 4,
77
"excess": 5

config/diadem_metric.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"list_distant_matches": true,
88
"list_continuations": true,
99
"find_proper_root": true,
10-
"z_scale": 1,
11-
"TRAJECTORY_NONE": -1.0,
10+
"scale": [1, 1, 1],
1211
"xy_threshold": 1.2,
1312
"z_threshold": 0.0,
1413
"default_xy_path_error_threshold": 0.05,

config/length_metric.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"rad_mode": 1,
33
"rad_threshold": 1,
44
"len_threshold": 0.2,
5-
"z_scale": 1,
5+
"scale": [1,1,1],
66
"debug": false
77
}

config/link_metric.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"z_scale": 1
2+
"scale": [1, 1, 1]
33
}

config/schemas/branch_metric_schema.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44
"required": [
55
"threshold_dis",
66
"threshold_mode",
7-
"z_scale",
7+
"scale",
88
"true_positive",
99
"missed",
1010
"excess"
1111
],
1212
"properties": {
13-
"threshold_dis": {"type": "number", "exclusiveMinimum": 0},
13+
"threshold_dis": {"type": "number", "minimum": 0},
1414
"threshold_mode": {"type": "number", "enum": [1, 2]},
15-
"z_scale": {"type": "number","minimum": 0},
15+
"scale": {"type":"array",
16+
"additionalItems": {"type": "number", "minimum": 0},
17+
"minItems": 3,
18+
"maxItems": 3
19+
},
1620
"true_positive": {"type": "integer", "exclusiveMinimum": 0},
1721
"missed": {"type": "integer", "exclusiveMinimum": 0},
1822
"excess": {"type": "integer", "exclusiveMinimum": 0}

config/schemas/diadem_metric_schema.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@
1313
"list_distant_matches": {"type": "boolean", "default": "false"},
1414
"list_continuations": {"type": "boolean", "default": "false"},
1515
"find_proper_root": {"type": "boolean", "default": "true"},
16-
"z_scale": {"type": "number", "minimum": 0},
17-
"TRAJECTORY_NONE": {"type": "number"},
16+
"scale": {"type":"array",
17+
"additionalItems": {"type": "number", "minimum": 0},
18+
"minItems": 3,
19+
"maxItems": 3
20+
},
1821
"xy_threshold": {"type": "number", "minimum": 0},
1922
"z_threshold": {"type": "number", "minimum": 0},
2023
"default_xy_path_error_threshold": {"type": "number", "minimum": 0},

config/schemas/length_metric_schema.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
"rad_mode",
66
"rad_threshold",
77
"len_threshold",
8-
"z_scale",
8+
"scale",
99
"debug"
1010
],
1111
"properties": {
1212
"rad_mode": {"type": "number", "enum": [1,2]},
13-
"rad_threshold": {"type": "number", "exclusiveMinimum": 0},
14-
"len_threshold": {"type": "number", "exclusiveMinimum": 0},
15-
"z_scale": {"type": "number", "minimum": 0},
13+
"rad_threshold": {"type": "number", "minimum": 0},
14+
"len_threshold": {"type": "number", "minimum": 0},
15+
"scale": {"type":"array",
16+
"additionalItems": {"type": "number", "minimum": 0},
17+
"minItems": 3,
18+
"maxItems": 3
19+
},
1620
"debug": {"type": "boolean"}
1721
}
1822
}

config/schemas/link_metric_schema.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
"title": "link metric schema",
33
"type": "object",
44
"required": [
5-
"z_scale"
5+
"scale"
66
],
77
"properties": {
8-
"z_scale": {"type": "number", "minimum": 0}
8+
"scale": {"type":"array",
9+
"additionalItems": {"type": "number", "minimum": 0},
10+
"minItems": 3,
11+
"maxItems": 3
12+
}
913
}
1014
}

config/schemas/overlap_clean_schema.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

config/schemas/ssd_metric_schema.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
"threshold_mode",
66
"ssd_threshold",
77
"up_sample_threshold",
8-
"z_scale",
8+
"scale",
99
"debug"
1010
],
1111
"properties": {
1212
"threshold_mode": {"type": "integer", "enum": [1,2]},
13-
"ssd_threshold": {"type": "number", "exclusiveMinimum": 0},
14-
"up_sample_threshold": {"type": "number", "exclusiveMinimum": 0},
15-
"z_scale": {"type":"number", "minimum": 0},
13+
"ssd_threshold": {"type": "number", "minimum": 0},
14+
"up_sample_threshold": {"type": "number", "minimum": 0},
15+
"scale": {"type":"array",
16+
"additionalItems": {"type": "number", "minimum": 0},
17+
"minItems": 3,
18+
"maxItems": 3
19+
},
1620
"debug": {"type": "boolean"}
1721
}
1822
}

0 commit comments

Comments
 (0)