Skip to content

Commit

Permalink
Update setup method signature in VitalSystem to match current `Li…
Browse files Browse the repository at this point in the history
…ghtingModule` API (#167)
  • Loading branch information
nathanpainchaud authored Aug 24, 2023
1 parent b5e2403 commit 65095ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vital/system.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from abc import ABC
from pathlib import Path
from typing import Any, Dict, Iterable, Literal, Optional, Union
from typing import Any, Dict, Iterable, Literal, Union

import hydra
import pytorch_lightning as pl
Expand Down Expand Up @@ -114,7 +114,7 @@ def configure_optimizers(

return configured_optimizer

def setup(self, stage: Optional[str] = None) -> None: # noqa: D102
def setup(self, stage: str) -> None: # noqa: D102
self.log_dir.mkdir(parents=True, exist_ok=True) # Ensure output directory exists

# Save Keras-style summary to a ``summary.txt`` file, inside the output directory
Expand Down

0 comments on commit 65095ce

Please sign in to comment.