Move figures from .data to .utils

This commit is contained in:
Yin Li 2020-09-12 13:43:07 -04:00
parent 154376d95a
commit d8c6be797d
3 changed files with 4 additions and 2 deletions

View File

@ -14,10 +14,9 @@ from torch.utils.data import DataLoader
from torch.utils.tensorboard import SummaryWriter from torch.utils.tensorboard import SummaryWriter
from .data import FieldDataset, DistFieldSampler from .data import FieldDataset, DistFieldSampler
from .data.figures import plt_slices, plt_power
from . import models from . import models
from .models import narrow_cast, resample, lag2eul from .models import narrow_cast, resample, lag2eul
from .utils import import_attr, load_model_state_dict from .utils import import_attr, load_model_state_dict, plt_slices, plt_power
ckpt_link = 'checkpoint.pt' ckpt_link = 'checkpoint.pt'

View File

@ -1,2 +1,5 @@
from .imp import import_attr from .imp import import_attr
from .state import load_model_state_dict from .state import load_model_state_dict
from .figures import plt_slices, plt_power