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

Fix jupyter notebook demos #357

Merged
merged 3 commits into from
Jan 18, 2024
Merged

Fix jupyter notebook demos #357

merged 3 commits into from
Jan 18, 2024

Conversation

cpjordan
Copy link
Contributor

  • Update plot imports from Firedrake
  • Update from DumbCheckpoint to CheckpointFile
  • Update corresponding text
  • Update bathymetry file loading hint on tsunami example

- Update plot imports from Firedrake
- Update from DumbCheckpoint to CheckpointFile
- Update corresponding text
- Update bathymetry file loading hint on tsunami example
@cpjordan
Copy link
Contributor Author

I think the failure is because I have used a differently named Jupyter kernel locally which alters the notebook metadata. I will re-run the notebooks with the default kernel name and hopefully that fixes this issue.

Copy link
Contributor

@jwallwork23 jwallwork23 left a comment

Choose a reason for hiding this comment

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

Thanks very much for this!

I notice you added a new cell at the end of the tsunami demo that describes using CheckpointFile instead of DumbCheckpoint. Would you mind updating the bathymetry file so that it is in the new format? i.e. read with DumbCheckpoint and then overwrite with CheckpointFile? It would be good if we could move away from referring to DumbCheckpoint at all as it was replaced a while ago now.

Would you mind making a couple of other minor changes?

  • Drop the "this mesh was actually created using qmesh mentioned in yesterday's lecture" bracket in the tsunami notebook.
  • Capitalise Firedrake and Python in both notebooks.
    Much appreciated.

demos/01-2d-channel.ipynb Outdated Show resolved Hide resolved
- Saved bathy.h5 using CheckpointFile
- Made grammar/spelling updates to both .ipynb demos
Copy link
Contributor

@jwallwork23 jwallwork23 left a comment

Choose a reason for hiding this comment

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

Nice - I see you fixed a few things I'd missed, too :)

@cpjordan cpjordan merged commit 70aa071 into master Jan 18, 2024
1 check passed
@cpjordan cpjordan deleted the fix-jupyter-demos branch January 19, 2024 09:43
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.

3 participants