Comments (5)
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.
I think we need to prevent smooth_with_cutoffs()
from attempting to smooth any route with less than 3 segments
from cyclestreets-r.
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.
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.
Duplicated by #22
from cyclestreets-r.
Related Issues (20)
- Cannot upload GeoJSON files with more than ~30k lines HOT 26
- Create batch_multi function to send many batches before getting data
- Cannot delete jobs that are 'finalising' HOT 2
- Missing sf:: HOT 1
- Batch function misaligns outputs'
- Left join fails with no id column
- Replace jsonlite with Rcppsimdjson HOT 2
- Reduce waiting time in batch() HOT 2
- Add progress bars to batch functions
- Speed-up json2sf_cs HOT 9
- Test single segment route HOT 1
- Extra column name associated with short routes HOT 3
- Reduce size of GeoJSON files uploaded for batch routing HOT 1
- Repeated message on batch routing HOT 1
- Refactor
- Export `batch_deletejob()`
- Reduce size of GeoJSON objects sent for routing HOT 1
- Quietness and other variables have character type with journey()
- Batch routes: Implement new successThreshold parameter
- Parameter emailOnCompletion should not e-mail a junk address by default
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclestreets-r.