physicsnemo icon indicating copy to clipboard operation
physicsnemo copied to clipboard

CorrDiff: Better handling of the dataset attributes

Open mnabian opened this issue 1 year ago • 0 comments

cfg.dataset.data_path = to_absolute_path(cfg.dataset.data_path)
    if hasattr(cfg, "global_means_path"):
        cfg.global_means_path = to_absolute_path(cfg.global_means_path)
    if hasattr(cfg, "global_stds_path"):
        cfg.global_stds_path = to_absolute_path(cfg.global_stds_path)

The first line should be moved to the CWB dataloader because this triggers an error when using a dataloader that doesn't have a data_path attribute. For example the other dataloader we are working on. And the global_means_path and global_stds_path should also be the responsibility of the dataloader.

mnabian avatar Apr 04 '24 18:04 mnabian