Skip to content

Commit

Permalink
Read the API key from environment variables if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
drylks committed Jan 21, 2021
1 parent 726eae1 commit e381461
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kxy/api/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_api_key():
existing_key = config.get('KXY_API_KEY', None)
return existing_key
except:
return None
return os.environ.get('KXY_API_KEY', None)

return None

Expand Down
2 changes: 1 addition & 1 deletion kxy/regression/pre_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def regression_achievable_performance_analysis(x_c, y, x_d=None, space='dual', c

return pd.DataFrame({\
'Achievable R^2': [1.-np.exp(-2.*mi)], \
'Achievable True Log-Likelihood Per Sample': [hy-mi],
'Achievable Log-Likelihood Per Sample': [hy-mi],
'Achievable RMSE': std_y*np.exp(-mi)})


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
with open('README.md') as f:
long_description = f.read()

version = "0.3.4"
version = "0.3.5"
setup(name="kxy",
version=version,
zip_safe=False,
Expand Down

0 comments on commit e381461

Please sign in to comment.