Git Product home page Git Product logo

Comments (8)

 avatar commented on June 28, 2024

I'm facing related issues; but a few steps before trying to get jupyter notebooks to run

When you come into the office early to get some non-work work done, you spend 50 minutes getting python and jupyter to (re)install, you forget what task you wanted to do in the first place... #python

— Symbolix (@SymbolixAU) February 11, 2019
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

from geospatialstroke.

gboeing avatar gboeing commented on June 28, 2024

@richardbeare your pyproj installation is misconfigured. I haven't used pip to install the stack in a few years so it's a bit hard to guess what's happening with that install. In general I'd strongly suggest conda + conda-forge for easy management of the python spatial data science stack. On linux, something like:

wget http://bit.ly/miniconda -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda update conda
conda config --add channels conda-forge --force
conda create --name my_env python=3 --file requirements.txt
source activate my_env
jupyter lab

from geospatialstroke.

richardbeare avatar richardbeare commented on June 28, 2024

OK,
I haven't played with conda - will look into it. We'll need some introduction about the appropriate environments for both R and python in our supplementary material.

from geospatialstroke.

 avatar commented on June 28, 2024

@gboeing Is it possible to render the ipynb to .html (or .md) ?

from geospatialstroke.

gboeing avatar gboeing commented on June 28, 2024

Yep! Gonna put my son down for bed then return to this in ~30 minutes.

from geospatialstroke.

richardbeare avatar richardbeare commented on June 28, 2024

The conda instructions worked perfectly.

Is it possible to display leaflet map in the notebook?

In the last map, colour should be by stroke count:

folium.Choropleth(gdf_nearby, data=gdf_nearby, columns=['POA_CODE', 'strokes'],
                  key_on='feature.properties.POA_CODE',
                  legend_name='Number of strokes', fill_color='YlOrRd').add_to(m)

from geospatialstroke.

richardbeare avatar richardbeare commented on June 28, 2024

I'm working through example 2 - it runs perfectly.

Query on the voronoi tesselation - was the basin expansion step required due to keeping the largest polygon in the previous cell?

Also, the final stroke calculation seems to be different to what we're doing on the R side, if I'm reading it correctly. My thought was to use the proportions of simulated cases from a postcode to drive the calculation. It seems to me that any postcode intersecting a catchment is included, rather than a fraction of a postcode? i.e. we should assign the 1000 sample locations to the containing postcodes, then compute a proportion from each postcode attending each destination, then multiply that by the predicted cases, then add those up.

There are certainly some large areas of nothing in that part of Melbourne (airports and former rural areas that are currently being developed), which could bias calculations in strange ways.

from geospatialstroke.

gboeing avatar gboeing commented on June 28, 2024

@richardbeare @SymbolixAU

We'll need some introduction about the appropriate environments for both R and python in our supplementary material.

I'll add this to the subdirectory's readme.

Is it possible to render the ipynb to .html (or .md) ?

I'll include .html versions in the notebooks folder.

Is it possible to display leaflet map in the notebook?

Yes, and they were in an earlier commit, but I removed them because it adds a lot of size to the commits and in turn the repo. Your call on if it's in the notebook directly or not.

In the last map, colour should be by stroke count

I'll adjust accordingly.

was the basin expansion step required due to keeping the largest polygon in the previous cell?

It was because the tessellation left parts of the periphery patchy. As the sample size -> infinity, the patches will disappear, but with a moderate n I wanted to make sure to fill in all the gaps for nice complete basins.

It seems to me that any postcode intersecting a catchment is included, rather than a fraction of a postcode?

I'll adjust accordingly.

from geospatialstroke.

Related Issues (17)

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.