Skip to content

Add CI/CD workflows and modern packaging from PR #33#42

Merged
JanStreffing merged 19 commits intomasterfrom
pgierz_workflow
Dec 18, 2025
Merged

Add CI/CD workflows and modern packaging from PR #33#42
JanStreffing merged 19 commits intomasterfrom
pgierz_workflow

Conversation

@JanStreffing
Copy link
Copy Markdown
Owner

Superseeds #33

@JanStreffing JanStreffing mentioned this pull request Dec 16, 2025
@github-advanced-security
Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@JanStreffing JanStreffing self-assigned this Dec 16, 2025
@JanStreffing
Copy link
Copy Markdown
Owner Author

JanStreffing commented Dec 16, 2025

I was not yet able to get the import test to work, since the package has dependencies that don't work in pip. This would require pixi to work. Which it did not for me.

@JanStreffing
Copy link
Copy Markdown
Owner Author

Ok it works now.

JanStreffing and others added 7 commits December 16, 2025 10:27
- Switch from CDO-based to polygon method for land-sea mask (from master)
- Add pyfesom2 mesh.nc generation when file missing or force_overwrite=true
- Fix masked array handling for cav_nod_mask in CORE3
- Update run_ocp_tool.py to use read_fesom_grid_polygon
The cavity support and bug fix are now in main, no need
for the old feat/ascii_to_netcdf_with_cavity branch.
@FinnHeu
Copy link
Copy Markdown
Collaborator

FinnHeu commented Dec 17, 2025

This version is not yet working for me since the output folder structure is not created on the fly.

The code fails with the error:
FileNotFoundError: [Errno 2] No such file or directory: '/home/a/a270186/software/ocp-tool/output/TCO95_CORE2ice/openifs_input_modified/ICMGGab45INIT_CORE2ice'

The code expects an output folder which is named after the mesh setup, in my case ./output/TCO95_CORE2ice/ to write all the output files into.

I fixed this with an additional function which initially creates the respective output folders in https://github.com/JanStreffing/ocp-tool/compare/bugfix/output_directories, it now works like a charm.

If you are fine with this @JanStreffing, I would close this PR and open a new one which includes my fix.

@JanStreffing
Copy link
Copy Markdown
Owner Author

JanStreffing commented Dec 18, 2025

I merged your branch into this, and then into master.

@JanStreffing JanStreffing merged commit 50ab9d5 into master Dec 18, 2025
6 checks passed
@JanStreffing JanStreffing deleted the pgierz_workflow branch December 18, 2025 05:49
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