Skip to content

Commit 5c02a92

Browse files
committed
account for modshogun -> shogun name change
1 parent e14b3da commit 5c02a92

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

two_sample/fixed_run.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
import os
77
import sys
88

9-
import modshogun as sg
9+
try:
10+
import modshogun as sg
11+
except ImportError: # new versions just call it shogun
12+
import shogun as sg
13+
1014
import numpy as np
1115
import pandas as pd
1216
import progressbar as pb

two_sample/mmd_test.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
import numpy as np
1111
from scipy import linalg, stats
12-
import modshogun as sg
12+
try:
13+
import modshogun as sg
14+
except ImportError: # new versions just call it shogun
15+
import shogun as sg
1316

1417
if 'OMP_NUM_THREADS' in os.environ:
1518
num_threads = int(os.environ['OMP_NUM_THREADS'])

0 commit comments

Comments
 (0)