You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following the code on page 25 in the ClimateLearn paper (https://arxiv.org/pdf/2307.01909.pdf) and when I try to do the import for DataModule I get the following error:
In [1]: from climate_learn.data import DataModule
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from climate_learn.data import DataModule
ImportError: cannot import name 'DataModule' from 'climate_learn.data' (/home/user/miniconda3/envs/precip/lib/python3.11/site-packages/climate_learn/data/init.py)
Could someone explain why this import is not working? Perhaps it is related to missing information in the file climate_learn/data/init.py.
As a side question, are there any examples of downscaling with a CNN that could be included in another QuickStart notebook example? For example, similar to the one used in the paper. If so, that would be incredibly helpful.
Thank you for your help!
Jeremy
Environment
OS: linux
Python version: 3.11
Environment: conda, used pip install for climate-learn
The text was updated successfully, but these errors were encountered:
It worked with the command climate_learn.data.module import DataModule
I saw in previous versions of this repo that the init.py file had the line from .module import * which I believe would've made the paper's command ( climate_learn.data import DataModule ) work.
@blue-ocean-climate - on a side note, I am trying to run downscaling and I keep getting errors when using the DataModule like below:
This how you can use the data module,
dm = cl.data.IterDataModule(
task,
inp_root_dir,
out_root_dir,
in_vars,
out_vars,
src="era5",
history=3,
window=6,
pred_range=args.pred_range,
subsample=6,
batch_size=128,
num_workers=8,
)
as mentioned in the "data loading section" of documentation.
I am not very sure about changing the resolution for down-scaling, I will have to dig deeper into that.
Describe the bug
I am following the code on page 25 in the ClimateLearn paper (https://arxiv.org/pdf/2307.01909.pdf) and when I try to do the import for DataModule I get the following error:
In [1]: from climate_learn.data import DataModule
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from climate_learn.data import DataModule
ImportError: cannot import name 'DataModule' from 'climate_learn.data' (/home/user/miniconda3/envs/precip/lib/python3.11/site-packages/climate_learn/data/init.py)
Could someone explain why this import is not working? Perhaps it is related to missing information in the file climate_learn/data/init.py.
As a side question, are there any examples of downscaling with a CNN that could be included in another QuickStart notebook example? For example, similar to the one used in the paper. If so, that would be incredibly helpful.
Thank you for your help!
Jeremy
Environment
The text was updated successfully, but these errors were encountered: