-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specific error obtained with Qhull #44
Comments
Somewhat smaller reprexes: Trimmed down inst/new_benchmark.Rpkgload::load_all() # Need last version of fundiversity
source(here::here("inst", "benchmark_fcts", "make_data.R"))
n_sites = c(5e1)
n_traits = c(5)
n_species = c(2e2)
set.seed(20210906)
given_data = make_data(n_species, n_traits, n_sites)
fd_fric_intersect(given_data[["traits"]], given_data[["site_sp"]]) Actual reprexgiven_data <- dget("https://gist.githubusercontent.com/Bisaloo/f3a8042be8a55a887e1f9a2bbcce9a8d/raw/dea950268d971229cd1b91bda47c45f31d418acb/fundiversity_qhull_error.txt")
library(fundiversity)
fd_fric_intersect(given_data[["traits"]], given_data[["site_sp"]])
#> Error in convhulln(ps, "n FA"): Received error code 5 from qhull. Qhull error:
#> QH6271 qhull precision error (qh_check_dupridge): wide merge (798797635164 times wider) due to duplicate ridge with nearly coincident points (0.0055) between f159315 and f159297, merge dist 0.028, while processing p3702
#> - Ignore error with option 'Q12'
#> - To be fixed in a later version of Qhull
#> - Vertex distance 0.0055 is greater than 100 times maximum distance 3.5e-14
#> Please report to [email protected] with steps to reproduce and all output
#> ERRONEOUS FACET:
#> - f159315
#> - flags: top new seen mergehorizon dupridge mergeridge2
#> - normal: 0.04571 -0.002063 -0.0352 -0.08176 0.995
#> - offset: -0.8682543
#> - vertices: p3702(v2235) p6412(v1056) p2282(v632) p3731(v13) p4214(v3)
#> - neighboring facets: f35106 f159297 f159316 f159325
#> - ridges:
#> - r36029 tested
#> vertices: p6412(v1056) p2282(v632) p3731(v13) p4214(v3)
#> between f159315 and f35106
#> - r113711
#> vertices: p3702(v2235) p2282(v632) p Created on 2021-10-26 by the reprex package (v2.0.1.9000) I feel like this can be trimmed down even more but it's a good start. |
Not actually a reprex but:
|
Another case with
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is an issue that aims to be a list of specific errors due to Qhull to better manage #38 in the future.
I obtained the following error in Qhull:
When running the
inst/new_benchmark.R
script with the following parameter: 50 sites, 5 traits, 200 species, code at c9d85d8 commit.The text was updated successfully, but these errors were encountered: