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

update example notebook; bugfixes #156

Merged
merged 1 commit into from
Mar 19, 2024
Merged

update example notebook; bugfixes #156

merged 1 commit into from
Mar 19, 2024

Conversation

nreinicke
Copy link
Collaborator

@nreinicke nreinicke commented Mar 19, 2024

Supersedes #131 by merging that notebook with the notebook on the main branch.

Also includes a few fixes found along the way:

  • injects distance from the time model until we have a distance model in the scope for the energy traversal model
  • fixes the units for the speed coming out of the time model and into the energy model.

@robfitzgerald
Copy link
Collaborator

cool, thanks for superseding. did you look into whether grade issues were a problem here too, or is that just elsewhere?

@nreinicke
Copy link
Collaborator Author

I did double check grade in this case and everything looked okay, (we download the grade as decimal in this case)

Copy link
Collaborator

@robfitzgerald robfitzgerald left a comment

Choose a reason for hiding this comment

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

dig it. fun added explorations! i want to defend logging but don't want to get in the way of progress. 🥂

@@ -73,26 +73,26 @@ def generate_compass_dataset(
agg = agg if agg is not None else np.mean

# pre-process the graph
log.info("processing graph topology and speeds")
print("processing graph topology and speeds")
Copy link
Collaborator

Choose a reason for hiding this comment

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

but what about logging? maybe we just need to be sure to set up logging.basicConfig correctly in the python library?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah there's probably the right way to do it that I didn't have the time to investigate; the motivation was that it was not logging to the jupyter notebook and so it was hard to tell what was happening.

@nreinicke nreinicke merged commit 205a4d7 into main Mar 19, 2024
5 checks passed
@nreinicke nreinicke deleted the ndr/update-example2 branch March 19, 2024 22:19
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.

2 participants