Closed eihwood closed 1 year ago
hey @heyelle thanks for letting me know! I just pushed some changes that should fix those issues. can you pull the new version and test it out on your system when you get the chance?
hey @wingtorres - just responding here as I see that I never quite got back to you re: Bezier curve functionality. Below describes the scenarios and issues, which I think just hasn't been fixed from above...
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/eheywood/morphs/morphometrix/morphometrix/main.py", line 746, in measure_widths
t_i = np.array([root_scalar(gauss_legendre, x0 = s_i, bracket = [-1,1], method = "bisect",
File "/Users/eheywood/morphs/morphometrix/morphometrix/main.py", line 746, in
Select "Measure Length" with Piecewise selected, measure whale selecting only 2 points (rostrum and fluke notch) , select "Measure Widths" and MorphoMetriX python crashes with the following error / traceback:
js: Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.
Traceback (most recent call last):
File "/Users/eheywood/morphs/morphometrix/morphometrix/main.py", line 746, in measure_widths
t_i = np.array([root_scalar(gauss_legendre, x0 = s_i, bracket = [-1,1], method = "bisect",
File "/Users/eheywood/morphs/morphometrix/morphometrix/main.py", line 747, in
Lastly, when I have "piecewise" selected and I select >2 points for the whale length measurement, "Measure Widths" option is greyed out and not selectable. I am assuming that piecewise is for perfectly straight whales where you only need a straight-line 2 point length measurement...
Thanks for any insight on this!
I'm using development code updated for PyQt6 (running on 2021 Macbook Pro with M1 Pro in native arm64 - OS 12.0.1 Monterey) and noticed an issue with measuring widths related to the Bezier Fit function - the three scenarios / behaviors are described below - all were done with 20 percentile width segments.
Uncheck Bezier checkbox and measure TL with two points, double clicking second point to finish the measurement:
Check Bezier (default when opening program) and measure TL with two points
Check Bezier and measure TL with > 2 points