Coder Social home page Coder Social logo

pct-scripts's People

Contributors

annagoodman1 avatar audev avatar ilanfri avatar mem48 avatar nikolai-b avatar rachelaldred avatar robinlovelace avatar usr110 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pct-scripts's Issues

avslope missing in aggregate

@Robinlovelace any idea where avslope comes from?

> source(file.path("components", "models", "aggregate.R")) # this model creates the variable 'slc'
Error in eval(expr, envir, enclos) : object 'avslope' not found

rnet is huge, slowing down pct-shiny

Just generated rnet for http://geo8.webarch.net/gm and it's seeming pretty slow to load.

Even after simplifying to only 5% of its vertices with stplanr::mapshpe() it still seems slow to load - at 50% of the network this is what it looks like:

selection_043

Given that the overline() commands are by far the slowest in load.Rmd I'm thinking we should simplify directly after generating rf and rq, perhaps using snap and precision from the mapshaper JavaScript library: https://github.com/mbloch/mapshaper/wiki/Command-Reference

I'd appreciate your thoughts @nikolai-b and @usr110 before proceeding with this - what are your thoughts?

Use local route data as input

This will greatly increase region build times and remove the dependency on the CycleStreets.net API via stplanr::line2route()

Change regional boundaries

There should be a Combined Authority for the North East. This covers Northumberland, County Durham and Tyne and Wear.

need if statements in region stats

@Robinlovelace / @usr110 / @nikolai-b , can anyone fix this if statement in rmd for me? almost but not quite working....

in https://github.com/npct/pct-scripts/blob/master/commute/msoa/region_stats.Rmd, line 67. First if works fine, second doesn't as I can;t work out how to embed an R number. code not working is:

r if(region_build_param$mingodutch_rnet!=0){paste0("In the online version of the clickable route network we only present route segments that contain at least", r region_build_param$mingodutch_rnet cyclists, " in the Go Dutch scenario. The downloads include all route segments."}

the Mersey

when one runs route network then crossing the Mersey comes out comes out as important straight away (e.g. 2% of route network) but when doing flows from OD pairs then even on 100 it does not register- of course it is a concentration point for flows so maybe this is right but it seems too extreme.

rq data is wrong

To reproduce, click on fastest and quietest routes in a region (tested on Shropshire).

rq is totally different from rf and l:

capture

Can you take a look @nikolai-b , @usr110 or @audev?

Merge pull request

Can someone merge this pull request and close this issue?
#12

Testing new PR-based work flow

Error type 'closure' is not subsettable

@Robinlovelace I'm getting this error from Line 2226

Error in rf$length : object of type 'closure' is not subsettable
Calls: <Anonymous> ... handle -> withCallingHandlers -> withVisible -> eval -> eval
In addition: Warning message:
In RGEOSBinPredFunc(spgeom1, spgeom2, byid, func) :
  spgeom1 and spgeom2 have different proj4 strings
Execution halted

Produce a true list of dependancies

While trying to rebuild the routes, I'm getting lots of fails because packages are not installed.

In theory set-up.R should list all the packages, but clearly it does not so I'm going to list them here as they fail, so that we can produce a better list.

govtarget in Kent

The gov target scenario is coming out wrong, it seems never to be more than baseline and sometimes less - while should always be at least equal to baseline no. cyclists.

Rebuild Liverpool

In the model output for Liverpool there are many Warning in value[[3L]](cond): Fail for line number 1

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.