Coder Social home page Coder Social logo

Comments (5)

Robinlovelace avatar Robinlovelace commented on June 5, 2024

Good find. I suspected there would be more adjustments. Idea: provide the complete vector (e.g. 44,45,45,46,46,45,45) of elevations and distances as an optional text column so we can go back. Another option: set output_list and raw_output as true to get the complete output from CS (disadvantage: looses OD attribute data).

from cyclestreets-r.

joeytalbot avatar joeytalbot commented on June 5, 2024

I think we need to prevent smooth_with_cutoffs() from attempting to smooth any route with less than 3 segments

from cyclestreets-r.

joeytalbot avatar joeytalbot commented on June 5, 2024

output_list and raw_output don't help. For ten routes including the problem one:

> system.time({routes_lsoa_1 = route(l = od_lsoas_short_list_10[[82]], route_fun = cyclestreets::journey, cl = cl, smooth_gradient = TRUE)})
  |++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=02s  
Most common output is sf
These routes failed: 8
The first of which was:
<simpleError in stats::filter(x, rep(1/n, n), sides = 2): 'filter' is longer than time series>
   user  system elapsed 
  0.053   0.004   1.993 
> system.time({routes_lsoa_1 = route(l = od_lsoas_short_list_10[[82]], route_fun = cyclestreets::journey, cl = cl, smooth_gradient = TRUE, output_list = TRUE, raw_output = TRUE)})
  |++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=00s  
Most common output is simpleError
These routes failed: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
The first of which was:
<simpleError in FUN(ldf[i, 1:2], ldf[i, 3:4], ...): unused arguments (output_list = TRUE, raw_output = TRUE)>
Returning list
   user  system elapsed 
  0.019   0.004   0.112 

from cyclestreets-r.

Robinlovelace avatar Robinlovelace commented on June 5, 2024

I think we need to prevent smooth_with_cutoffs() from attempting to smooth any route with less than 3 segments

Sounds like a viable solution.

from cyclestreets-r.

Robinlovelace avatar Robinlovelace commented on June 5, 2024

Duplicated by #22

from cyclestreets-r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.