Skip to content

changed model path to shared dir path#1799

Open
sbAsma wants to merge 9 commits intoecmwf:developfrom
sbAsma:sbAsma/develop/1790-remove-wrong-path
Open

changed model path to shared dir path#1799
sbAsma wants to merge 9 commits intoecmwf:developfrom
sbAsma:sbAsma/develop/1790-remove-wrong-path

Conversation

@sbAsma
Copy link
Contributor

@sbAsma sbAsma commented Feb 4, 2026

Description

Issue Number

Closes #1790

Is this PR a draft? Mark it as draft.

Checklist before asking for review

  • I have performed a self-review of my code
  • My changes comply with basic sanity checks:
    • I have fixed formatting issues with ./scripts/actions.sh lint
    • I have run unit tests with ./scripts/actions.sh unit-test
    • I have documented my code and I have updated the docstrings.
    • I have added unit tests, if relevant
  • I have tried my changes with data and code:
    • I have run the integration tests with ./scripts/actions.sh integration-test
    • (bigger changes) I have run a full training and I have written in the comment the run_id(s): launch-slurm.py --time 60
    • (bigger changes and experiments) I have shared a hegdedoc in the github issue with all the configurations and runs for this experiments
  • I have informed and aligned with people impacted by my change:
    • for config changes: the MatterMost channels and/or a design doc
    • for changes of dependencies: the MatterMost software development channel

@sbAsma sbAsma marked this pull request as ready for review February 10, 2026 11:46
path = get_path_model(run_id=run_id)
else:
path = Path(model_path) / run_id
path = _get_shared_wg_path() / "models" / run_id
Copy link
Contributor

Choose a reason for hiding this comment

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

There is already a method for this.
I think we shouldn't change this. It is used when an explicit model_path was given. Otherwise the if-else block is redundant and we can just use the part in the if-block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed the else is redundant, I will revert and add a logging instead

"""

path_run = Path(cf.model_path) / run_id
path_run = _get_shared_wg_path() / "models" / run_id
Copy link
Contributor

Choose a reason for hiding this comment

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

Same applies here. We could use this method directly. Maybe we can add the same if-else block as in the previous case. This enables the user to not add a model_path to the config and just use the regular path. But I'm not entirely sure if this is possible here. Maybe someone with more experience on the model and training process knows better. @sophie-xhonneux ?

@github-project-automation github-project-automation bot moved this to In Progress in WeatherGen-dev Feb 11, 2026
@sbAsma sbAsma requested a review from TillHae February 12, 2026 02:48
@sbAsma
Copy link
Contributor Author

sbAsma commented Feb 12, 2026

Thank you @TillHae for taking the time to review this PR, I added the requested changes ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Integration test fails to run evaluation

2 participants