Skip to content

Conversation

MatKbauer
Copy link
Contributor

Description

Added a default value to the run_evaluate.py to deliver eval_config.yml if no --config argument is passed.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • [-] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Issue Number

resolves #693

Code Compatibility

  • I have performed a self-review of my code

Code Performance and Testing

  • I ran uv run evaluate and it works
  • If the new feature introduces modifications at the config level, I have made sure to have notified the other software developers through Mattermost and updated the paths in the $WEATHER_GENERATOR_PRIVATE directory

Copy link
Contributor

@mlangguth89 mlangguth89 left a comment

Choose a reason for hiding this comment

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

Thanks a lot for picking this up.
Only one thing to address -> We need to avoid hard-coded relative paths.

type=str,
help="Path to the configuration yaml file for plotting. e.g. config/plottig_config.yaml",
help="Path to the configuration yaml file for plotting. e.g. config/eval_config.yml",
default="config/eval_config.yml"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a hard-coded, relative paths, i.e. its validity depends on the directory from where run_evaluation.py is called.
Please make use of _REPO_ROOT from config.py here.

{ name = "torch", marker = "sys_platform == 'macosx'", specifier = "==2.6.0", index = "https://download.pytorch.org/whl/cpu" },
{ name = "tqdm" },
{ name = "weathergen-common", editable = "packages/common" },
{ name = "weathergen-evaluate", editable = "packages/evaluate" },
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@MatKbauer
Copy link
Contributor Author

Has been implemented in #1028

@MatKbauer MatKbauer closed this Oct 13, 2025
@MatKbauer MatKbauer deleted the mk/develop/default_config_eval_name_693 branch October 13, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Default path for evaluation config file

2 participants