We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a68e9bd commit b772b77Copy full SHA for b772b77
l2winddir/__init__.py
@@ -5,6 +5,4 @@
5
6
from .data_module import *
7
from .loss import *
8
-# from .main import *
9
-from .predict import *
10
-from .simple_conv import *
+from .predict import *
l2winddir/predict.py
@@ -7,7 +7,12 @@
import torch
import xarray as xr
from omegaconf import OmegaConf
-import l2winddir.simple_conv
+import sys
11
+# Add the current directory to the Python path
12
+import os
13
+current_dir = os.path.dirname(os.path.abspath(__file__))
14
+sys.path.append(current_dir)
15
+
16
import torch.multiprocessing as mp
17
18
mp.set_start_method("spawn", force=True)
0 commit comments