Skip to content

Commit 45beb6e

Browse files
committed
Remove line profile feature
1 parent 09080d4 commit 45beb6e

20 files changed

Lines changed: 2 additions & 902 deletions

notebooks/grainstats.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def _(mo):
182182
grainstats:
183183
run: true # Options : true, false
184184
edge_detection_method: binary_erosion # Options: canny, binary erosion. Do not change this unless you are sure of what this will do.
185-
extract_height_profile: true # Extract height profiles along maximum feret of molecules
186185
class_names: ["DNA", "Protein"] # The names corresponding to each class of a object identified, please specify merged classes after.
187186
plotting:
188187
run: true # Options : true, false

tests/__snapshots__/test_classes.ambr

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@
107107
'total_branch_length': 12.3456789,
108108
}),
109109
'filename': 'dummy',
110-
'height_profiles': dict({
111-
1: dict({
112-
0: array([1, 2, 3, 4, 5]),
113-
}),
114-
}),
115110
'image': array([[0.5213857 , 0.60384184, 0.4709418 , 0.20324795, 0.528759 ,
116111
0.19103628, 0.2815456 , 0.75368154, 0.5516718 , 0.8637221 ],
117112
[0.80537224, 0.24837266, 0.18985741, 0.98399556, 0.66999716,
@@ -929,7 +924,6 @@
929924
'Protein',
930925
]),
931926
'edge_detection_method': 'binary_erosion',
932-
'extract_height_profile': True,
933927
'run': True,
934928
}),
935929
'loading': dict({
@@ -1586,11 +1580,6 @@
15861580
'total_branch_length': 12.3456789,
15871581
}),
15881582
'filename': 'example_catenanes',
1589-
'height_profiles': dict({
1590-
1: dict({
1591-
0: array([1, 2, 3, 4, 5]),
1592-
}),
1593-
}),
15941583
'image': array([[-0.08690765, -0.08389194, -0.06598138, ..., 0.0110641 ,
15951584
-0.00549059, -0.01650386],
15961585
[-0.12658192, -0.08494661, -0.04653462, ..., 0.04816124,
@@ -1991,11 +1980,6 @@
19911980
'total_branch_length': 12.3456789,
19921981
}),
19931982
'filename': 'example_catenanes',
1994-
'height_profiles': dict({
1995-
1: dict({
1996-
0: array([1, 2, 3, 4, 5]),
1997-
}),
1998-
}),
19991983
'image': array([[-0.0217186 , 0.02818649, 0.04690913, ..., 0. ,
20001984
0. , 0. ],
20011985
[-0.00605352, 0.01296311, 0.00851397, ..., 0. ,
@@ -2526,7 +2510,6 @@
25262510
'Protein',
25272511
]),
25282512
'edge_detection_method': 'binary_erosion',
2529-
'extract_height_profile': True,
25302513
'run': True,
25312514
}),
25322515
'loading': dict({
@@ -3183,11 +3166,6 @@
31833166
'total_branch_length': 12.3456789,
31843167
}),
31853168
'filename': 'example_rep',
3186-
'height_profiles': dict({
3187-
1: dict({
3188-
0: array([1, 2, 3, 4, 5]),
3189-
}),
3190-
}),
31913169
'image': array([[-0.02291669, -0.01486279, 0.0156244 , ..., 0.10213933,
31923170
0.19618212, 0.32910987],
31933171
[ 0.01603361, 0.01538401, 0.03241716, ..., 0.022104 ,

tests/__snapshots__/test_processing.ambr

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -893,16 +893,6 @@
893893
'total_branch_length': np.float64(8.572882640558748e-08),
894894
}),
895895
'filename': 'minicircle_small',
896-
'height_profiles': dict({
897-
'1': dict({
898-
'0': array([1.13298136, 1.80644355, 2.05277056, 1.84378801, 1.4742514 ,
899-
1.24258281, 1.33742077, 1.62488016, 1.91666981, 1.93168252,
900-
1.67172504, 1.46181822, 1.44409109, 1.52838539, 1.61861484,
901-
1.70554438, 1.59198594, 1.35754259, 1.01935129, 0.77867273,
902-
0.7977643 , 1.10508701, 1.53874369, 1.83778951, 1.63307159,
903-
0.95431994]),
904-
}),
905-
}),
906896
'image': array([[-1.61518513e-03, 1.71570210e-02, 6.46054637e-02,
907897
9.91101526e-02, 1.00360096e-01, 9.43137553e-02,
908898
9.34290351e-02, 9.15878578e-02, 6.17686398e-02,
@@ -2666,15 +2656,6 @@
26662656
'total_branch_length': np.float64(7.305426523977305e-08),
26672657
}),
26682658
'filename': 'minicircle_small',
2669-
'height_profiles': dict({
2670-
'1': dict({
2671-
'0': array([0.92839707, 1.85075817, 2.03634558, 1.4346181 , 0.58507458,
2672-
0.14468474, 0.06565325, 0.19708489, 0.15940512, 0.12652616,
2673-
0.19245536, 0.46508443, 0.9546899 , 1.52486005, 1.95634547,
2674-
2.23783747, 2.34011511, 2.37861338, 2.33900584, 2.29793771,
2675-
2.15637048, 1.97662945, 1.51696556, 0.92431229]),
2676-
}),
2677-
}),
26782659
'image': array([[-1.22458486e-02, 1.19310119e-01, 2.22751713e-01,
26792660
2.91382109e-01, 3.41948057e-01, 3.71192639e-01,
26802661
3.21788191e-01, 1.89744979e-01, 5.98432960e-02,
@@ -3991,15 +3972,6 @@
39913972
'total_branch_length': np.float64(1.0331433269128837e-07),
39923973
}),
39933974
'filename': 'minicircle_small',
3994-
'height_profiles': dict({
3995-
'1': dict({
3996-
'0': array([0.9894515 , 1.7465862 , 1.80917238, 1.15014259, 0.45595278,
3997-
0.12635905, 0.21275054, 0.48902222, 0.70775335, 0.77421593,
3998-
0.65440809, 0.52278137, 0.42119907, 0.30709432, 0.4137407 ,
3999-
0.60326418, 0.89554341, 1.41572822, 1.85311755, 2.02674506,
4000-
1.81754884, 1.2429432 ]),
4001-
}),
4002-
}),
40033975
'image': array([[-1.17980880e-01, -1.29790119e-01, -7.50836842e-02,
40043976
-5.93735717e-02, -1.12717801e-01, -1.72709299e-01,
40053977
-1.28303809e-01, 2.00624994e-02, 1.77433914e-01,

tests/conftest.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,6 @@ def dummy_graincrop(
622622
thresholds=(1, 2),
623623
filename="dummy",
624624
stats={1: {0: {"centre_x": 5, "centre_y": 5}}},
625-
height_profiles={1: {0: np.asarray([1, 2, 3, 4, 5])}},
626625
skeleton=dummy_skeleton,
627626
disordered_trace=dummy_disordered_trace,
628627
nodes={0: dummy_node, 1: dummy_node},
@@ -662,7 +661,6 @@ def graincrop_catenanes_0(
662661
thresholds=(1, 2),
663662
filename="example_catenanes",
664663
stats={1: {0: {"centre_x": 5, "centre_y": 5}}},
665-
height_profiles={1: {0: np.asarray([1, 2, 3, 4, 5])}},
666664
skeleton=dummy_skeleton,
667665
disordered_trace=dummy_disordered_trace,
668666
nodes={0: dummy_node, 1: dummy_node},
@@ -690,7 +688,6 @@ def graincrop_catenanes_1(
690688
thresholds=(1, 2),
691689
filename="example_catenanes",
692690
stats={1: {0: {"centre_x": 5, "centre_y": 5}}},
693-
height_profiles={1: {0: np.asarray([1, 2, 3, 4, 5])}},
694691
skeleton=dummy_skeleton,
695692
disordered_trace=dummy_disordered_trace,
696693
nodes={0: dummy_node, 1: dummy_node},
@@ -757,7 +754,6 @@ def graincrop_rep_int_0(
757754
thresholds=(1, 2),
758755
filename="example_rep",
759756
stats={1: {0: {"centre_x": 5, "centre_y": 5}}},
760-
height_profiles={1: {0: np.asarray([1, 2, 3, 4, 5])}},
761757
skeleton=dummy_skeleton,
762758
disordered_trace=dummy_disordered_trace,
763759
nodes={0: dummy_node, 1: dummy_node},

0 commit comments

Comments
 (0)