Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shaikh58 committed Dec 12, 2024
1 parent 662d129 commit c7a0ccc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 2 additions & 3 deletions dreem/io/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,9 @@ def get_dataset(

@property
def data_paths(self):
"""Get data paths.
"""
"""Get data paths."""
return self._vid_files

@data_paths.setter
def data_paths(self, paths: tuple[str, list[str]]):
"""Set data paths.
Expand Down
8 changes: 6 additions & 2 deletions dreem/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ def run(cfg: DictConfig):

if run_logger is not None and isinstance(run_logger, pl.loggers.wandb.WandbLogger):
data_paths = train_cfg.data_paths
flattened_paths = [[item] for sublist in data_paths.values() for item in sublist]
run_logger.log_text("training_files", columns=["data_paths"], data=flattened_paths)
flattened_paths = [
[item] for sublist in data_paths.values() for item in sublist
]
run_logger.log_text(
"training_files", columns=["data_paths"], data=flattened_paths
)

callbacks = []
_ = callbacks.extend(train_cfg.get_checkpointing())
Expand Down

0 comments on commit c7a0ccc

Please sign in to comment.