Skip to content

Commit

Permalink
UPDATE: start to support Python 3.7 and fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jungtaekkim committed Jun 3, 2019
1 parent e3aa20b commit e27bc50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
install:
- pip install .
script:
Expand Down
12 changes: 6 additions & 6 deletions bayeso/utils/utils_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def plot_gp(X_train, Y_train, X_test, mu, sigma,
Y_test_truth=None,
path_save=None,
str_postfix=None,
str_x_axis='$\mathbf{x}$',
str_y_axis='$y$',
str_x_axis='x',
str_y_axis='y',
is_tex=False,
is_zero_axis=False,
is_pause=True,
Expand Down Expand Up @@ -308,8 +308,8 @@ def plot_minimum_time(arr_times, arr_minima, list_str_label, int_init, is_std,
def plot_bo_step(X_train, Y_train, X_test, Y_test, mean_test, std_test,
path_save=None,
str_postfix=None,
str_x_axis='$\mathbf{x}$',
str_y_axis='$y$',
str_x_axis='x',
str_y_axis='y',
int_init=None,
is_tex=False,
is_zero_axis=False,
Expand Down Expand Up @@ -388,8 +388,8 @@ def plot_bo_step(X_train, Y_train, X_test, Y_test, mean_test, std_test,
def plot_bo_step_acq(X_train, Y_train, X_test, Y_test, mean_test, std_test, acq_test,
path_save=None,
str_postfix=None,
str_x_axis='$\mathbf{x}$',
str_y_axis='$y$',
str_x_axis='x',
str_y_axis='y',
str_acq_axis='acq.',
int_init=None,
is_tex=False,
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

if (sys.version_info.major == 2 and sys.version_info.minor == 7) or\
(sys.version_info.major == 3 and sys.version_info.minor == 5) or\
(sys.version_info.major == 3 and sys.version_info.minor == 6):
(sys.version_info.major == 3 and sys.version_info.minor == 6) or\
(sys.version_info.major == 3 and sys.version_info.minor == 7):
print('[SETUP] bayeso supports Python {}.{} version in this system.'.format(sys.version_info.major, sys.version_info.minor))
else:
sys.exit('[ERROR] bayeso does not support Python {}.{} version in this system.'.format(sys.version_info.major, sys.version_info.minor))
Expand Down

0 comments on commit e27bc50

Please sign in to comment.