Skip to content

Include full path in filename for linked filesystem files#2022

Merged
James Frost (jfrost-mo) merged 2 commits into
mainfrom
1939_handle_duplicate_file_names
Apr 7, 2026
Merged

Include full path in filename for linked filesystem files#2022
James Frost (jfrost-mo) merged 2 commits into
mainfrom
1939_handle_duplicate_file_names

Conversation

@jfrost-mo
Copy link
Copy Markdown
Member

@jfrost-mo James Frost (jfrost-mo) commented Apr 2, 2026

The path separator is replaced with a ), which should be fairly clear in most cases, and isn't generally a restricted character on filesystems.

By doing this we are able to handle files from different directories with the same name.

Fixes #1939

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Ensure rose-suite.conf.example has been updated if new diagnostic added.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

The path separator is replaced with a ")", which should be fairly clear
in most cases, and isn't generally a restricted character on
filesystems.

By doing this we are able to handle files from different directories
with the same name.

Fixes #1939
@jfrost-mo James Frost (jfrost-mo) added bug Something isn't working small Small issue that should be quick to resolve labels Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

Coverage

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. I'd like the comment to explain why the ) character is being used but other than that just a small suggestion.

Comment thread src/CSET/cset_workflow/app/fetch_fcst/bin/fetch_data.py Outdated
@jfrost-mo James Frost (jfrost-mo) merged commit a4b653d into main Apr 7, 2026
7 checks passed
@jfrost-mo James Frost (jfrost-mo) deleted the 1939_handle_duplicate_file_names branch April 7, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working small Small issue that should be quick to resolve

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discussion: Load files for ensemble trial members from multiple directories

2 participants