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 testing R5 v7.1 - does not have member field 'int maxDestinations' #378

Closed
rafapereirabr opened this issue Mar 11, 2024 · 1 comment

Comments

@rafapereirabr
Copy link
Member

context

Conveyal released a new R5 v7.1 with a few bug fixes. I was testing whether we could use the current dev version of r5r with R5 v7.1. It does not work :( See reproducible example and error message below:

reprex and error

library(r5r)

data_path <- system.file("extdata/poa", package = "r5r")
r5r_core <- setup_r5(data_path)

points <- read.csv(file.path(data_path, "poa_hexgrid.csv"))[1:5, ]
departure_datetime <- as.POSIXct(
 "13-05-2019 14:00:00",
 format = "%d-%m-%Y %H:%M:%S"
 )
access <- accessibility(
  r5r_core,
  origins = points,
  destinations = points,
  opportunities_colnames = "schools",
  mode = "WALK",
  departure_datetime = departure_datetime,
  decay_function = "step",
  cutoffs = 30,
  max_trip_duration = 30
)

Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.NoSuchFieldError: Class com.conveyal.r5.analyst.cluster.PathResult does not have member field 'int maxDestinations'

This is due to our code now conflicts with this recent change in R5.

@rafapereirabr
Copy link
Member Author

fixed by @mvpsaraiva . Thanks Marcus!

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