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

Docs/359 create jupyter notebook that runs ra2ce based on a extend defined by the user #414

Conversation

Cham8920
Copy link
Contributor

@Cham8920 Cham8920 commented Apr 9, 2024

Issue addressed

Solves #359

What has been done?

Created an example jupyter notebook where the user can define the extent via a shapely polygon or a geojson file in a local drive and download the road network from OSM.

Checklist

  • Example jupyter notebook created
  • Example data is added to the examples/data
  • Needs to update documentation

Additional Notes (optional)

Add any additional notes or information that may be helpful.

Cham8920 added 2 commits April 8, 2024 14:43
-jupyter notebook as the example
-the folder structure with the geojson file that is required in static/network folder
@Cham8920 Cham8920 linked an issue Apr 9, 2024 that may be closed by this pull request
2 tasks
@Cham8920 Cham8920 marked this pull request as ready for review April 9, 2024 11:06
Copy link
Collaborator

@Carsopre Carsopre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the headers being defined so they have a proper hierarchy. In visual studio code you can verify this with the "Outline" view https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view

# Chapter
## Section
### Subsection
#### ...

Once you have fixed this we can have a look together on how to add the document to the ra2ce documentation and merge into master.

"cell_type": "markdown",
"metadata": {},
"source": [
" ### Download a Network using a polygon"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first header should just be a # .
Keep in mind that you need to adhere to the title hierarchy so that we can later on add this example into the documentation files (via sphinx)

Suggested change
" ### Download a Network using a polygon"
" # Download a Network using a polygon"

"cell_type": "markdown",
"metadata": {},
"source": [
"# Set parameters and initalize a RA2CE run"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"# Set parameters and initalize a RA2CE run"
"## Set parameters and initialize a RA2CE run"

"cell_type": "markdown",
"metadata": {},
"source": [
"# Explore the results"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"# Explore the results"
"## Explore the results"

"cell_type": "markdown",
"metadata": {},
"source": [
"# Finally we can save our downloaded network to the RA2CE folder setup"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"# Finally we can save our downloaded network to the RA2CE folder setup"
"## Finally we can save our downloaded network to the RA2CE folder setup"

@Carsopre Carsopre merged commit 293e3b7 into master Apr 11, 2024
3 checks passed
@Carsopre Carsopre deleted the docs/359-create-jupyter-notebook-that-runs-ra2ce-based-on-a-extend-defined-by-the-user branch April 11, 2024 13:35
Carsopre added a commit that referenced this pull request Apr 12, 2024
…ed by the user (#414)

* Jupyter Notebook for downloading a network from a polygon

- jupyter notebook as the example
- the folder structure with the geojson file that is required in static/network folder

* doc: updated example for downloading network using a boundary box

* docs: updated the headers in the example notebook markdown cells

* docs: added jupyter notebook reference to basic_examples

* docs: Update headers in markdown  cells in the jupyter notebook

---------

Co-authored-by: Carles S. Soriano Pérez <carles.sorianoperez@deltares.nl>
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

Successfully merging this pull request may close these issues.

Create jupyter notebook that runs ra2ce based on a extend defined by the user.
2 participants