skillful_nowcasting icon indicating copy to clipboard operation
skillful_nowcasting copied to clipboard

Update run.py

Open rutkovskii opened this issue 1 year ago • 0 comments

Pull Request

Description

Fixes # 1

Removed

    if isinstance(trainer.logger, LoggerCollection):
        for logger in trainer.logger:
            if isinstance(logger, WandbLogger):
                return logger

because pytorch_lightning does not have LoggerCollection anymore.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [ ] Yes

If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?

  • [ ] Yes

Checklist:

  • [x] My code follows OCF's coding style guidelines
  • [x] I have performed a self-review of my own code
  • [x] I have made corresponding changes to the documentation
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [x] I have checked my code and corrected any misspellings

rutkovskii avatar Dec 31 '23 04:12 rutkovskii