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

Swap to FCIS architecture #154

Merged
merged 5 commits into from
Nov 19, 2024
Merged

Swap to FCIS architecture #154

merged 5 commits into from
Nov 19, 2024

Conversation

blimlim
Copy link
Collaborator

@blimlim blimlim commented Nov 7, 2024

This PR closes the main section of #145. Remaining tasks will be split off into smaller issues.

This finishes off the implementation of the FCIS architecture, where IO steps are all separated into an "imperative shell", and all cube modifications are handled in the "functional core" process_cubes() function, making the main parts of the code testable.

These changes were put together over a couple of smaller steps into the feature branch 145/fcis-architecture, and the purpose of this PR is to bring the changes into main - hence the changes may look familiar!

The changes to um2netcdf.py include:

  • Moving any cube modification steps from cubewrite() into process_cubes()
  • Move any IO from cubewrite() into process()
  • cubewrite() is then deleted.

The changes to test_um2netcdf.py are there to make the tests work with the updated structure, and were previously discussed in #148.

@atteggiani atteggiani self-requested a review November 7, 2024 05:22
atteggiani
atteggiani previously approved these changes Nov 8, 2024
Copy link
Collaborator

@atteggiani atteggiani left a comment

Choose a reason for hiding this comment

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

For now this looks good.

In a further release we will have to restructure and simplify the code/testing.

@atteggiani atteggiani requested review from marc-white and removed request for marc-white November 18, 2024 04:32
Copy link
Contributor

@marc-white marc-white left a comment

Choose a reason for hiding this comment

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

Looks good to me, modulo very small removal of some commented-out development code.

@atteggiani atteggiani requested review from atteggiani and marc-white and removed request for marc-white November 19, 2024 00:55
@atteggiani atteggiani merged commit 0c0f8ef into main Nov 19, 2024
5 checks passed
@atteggiani atteggiani deleted the 145/fcis-architecture branch November 19, 2024 02:48
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.

4 participants