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 channel inversion example #366

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Update channel inversion example #366

merged 2 commits into from
Jun 10, 2024

Conversation

cpjordan
Copy link
Contributor

@cpjordan cpjordan commented Jun 7, 2024

  • Correct file paths in example for plotting
  • Correct VTKFile paths for import
  • Load times for the optimisation fields (one timestep less than existing files)
  • Import from collections.abc (deprecation update)
  • Update makefile so it works again and cycles through all the stations for plotting

- Correct file paths in example for plotting
- Correct VTKFile paths for import
- Load times for the optimisation fields (one timestep less than existing files)
- Import from collections.abc (deprecation update)
Copy link
Contributor

@stephankramer stephankramer left a comment

Choose a reason for hiding this comment

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

VTKFile should now be available again from the top level firedrake module, and so again directly from either from firedrake import * or from thetis import * (see firedrakeproject/firedrake#3535). I prefer doing that - i.e. from thetis import * in example scripts and import firedrake as fd ... f = fd.VTKFile() in modules instead of from firedrake.output.vtk_output import VTKFile - as internal module hierarchies are likely to change...

Other than that, all looks good!

@cpjordan
Copy link
Contributor Author

cpjordan commented Jun 7, 2024

Ah - was working on an older version of Firedrake as it's a pain to update on my system because of the Ubuntu version. Updated now & tests running, thanks Stephan!

@cpjordan cpjordan merged commit ea38c7f into master Jun 10, 2024
1 check passed
@cpjordan cpjordan deleted the inverse_channel_updates branch June 11, 2024 08:34
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