Skip to content

Commit

Permalink
Merge branch 'test/initial-integration-tests' of github.com:ecmwf/ane…
Browse files Browse the repository at this point in the history
…moi-core into test/initial-integration-tests
  • Loading branch information
VeraChristina committed Feb 25, 2025
2 parents 36e788d + b4893e8 commit ff22e1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/test_training_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ def test_training_cycle_grid_configs(stretched_config) -> None:
AnemoiTrainer(stretched_config).train()
shutil.rmtree(stretched_config.hardware.paths.output)


if __name__ == "__main__":
from omegaconf import OmegaConf
from hydra import compose
from hydra import initialize
from omegaconf import OmegaConf

with initialize(version_base=None, config_path="", job_name="test_training"):
cfg = compose(config_name="stretched_config", overrides=[])
OmegaConf.resolve(cfg)
Expand Down

0 comments on commit ff22e1f

Please sign in to comment.