Skip to content

Conversation

@r-sharp
Copy link
Contributor

@r-sharp r-sharp commented Dec 18, 2025

Sci/Tech Reviewer: @jennyhickson
Code Reviewer: @yaswant

Description

Summary

Replacing the old Perl umdp3 compliance checking script with a half baked Python one.

Changes

Remove all old Perl files.
Add Python translations after some heavy refactoring.
This provides a framework, and some very simple tests to run on Fortran code.
It will need some tweaking as we stumble over the defficiencies we see when used in anger.

Impact

Replaces a set of Perl scripts which was hardwired to FCM to a Python version capable of using git_bdiff

Issues addressed

Resolves

One of the last remaining Perl script uses in the toolset
Hardwiring of our style checker to FCM

Checklist

  • I have performed a self-review of my own changes

Roddy Sharp and others added 30 commits July 3, 2025 13:40
investigations as to whether it's worked and how it can be improved.
and is to std out whereas the origianl wrote to std err. It's not clear
if the Python version terminated after the first file with errors, or
genuinely didn't spot the errors in the other files.
Branch used to look for errors is  :
https://code.metoffice.gov.uk/svn/um/main/branches/dev/roddysharp/vn13.9_deliberate_umdp3_failures
…p3_checkas I think Perl did it for both cases..
methodology. Plus making the branch processing of files changes return a list.
hints as at every step it suggests something else...
@r-sharp r-sharp requested a review from yaswant January 20, 2026 13:02
Copy link
Collaborator

@yaswant yaswant left a comment

Choose a reason for hiding this comment

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

Few minor cosmetic change suggestions for clarity and around docstring rules (https://peps.python.org/pep-0257/) for your consideration.

We'll aim to use consistent Copyright statements according to the guidelines in https://github.com/MetOffice/Momentum/blob/main/docs/COPYRIGHT_TEMPLATE.

Copy link
Collaborator

@yaswant yaswant left a comment

Choose a reason for hiding this comment

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

...and few missed in last review.

@yaswant
Copy link
Collaborator

yaswant commented Jan 20, 2026

over to you @r-sharp

r-sharp and others added 20 commits January 20, 2026 15:06
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
r-sharp and others added 5 commits January 20, 2026 16:24
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Co-authored-by: Yaswant Pradhan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants