Skip to content
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

Error in triangulationBlobs due to uncoordinated points #131

Open
drserajames opened this issue Jun 15, 2022 · 0 comments
Open

Error in triangulationBlobs due to uncoordinated points #131

drserajames opened this issue Jun 15, 2022 · 0 comments

Comments

@drserajames
Copy link
Member

If there's a line of <10s in the HI table, then triangulationBlobs gives the error below:

> set.seed(54743)
> hi <- matrix(10*2^sample(1:10, 25, replace=T), ncol=5)
> hi[1,] <- "<10"
> hi
     [,1]   [,2]   [,3]    [,4]    [,5]   
[1,] "<10"  "<10"  "<10"   "<10"   "<10"  
[2,] "20"   "80"   "40"    "5120"  "10240"
[3,] "40"   "160"  "10240" "640"   "640"  
[4,] "1280" "160"  "20"    "10240" "80"   
[5,] "5120" "2560" "320"   "80"    "160"  
> map <- make.acmap(hi, options = list(ignore_disconnected = TRUE))
a
Took 0.02 secs

> tri <- triangulationBlobs(map)
a
Error in attr(blob, "volume") <- sum(grid_values <= value_lim) * gridsize^ndims : 
  attempt to set an attribute on NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant