mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
Testing modification for ReadTheDocs to stop docstring errors
This commit is contained in:
parent
45f76cc532
commit
4f3e9f2bf7
1 changed files with 6 additions and 3 deletions
|
|
@ -30,9 +30,12 @@ overide_manual_authorize=False
|
||||||
neil_url = 'http://staffwww.dcs.shef.ac.uk/people/N.Lawrence/dataset_mirror/'
|
neil_url = 'http://staffwww.dcs.shef.ac.uk/people/N.Lawrence/dataset_mirror/'
|
||||||
|
|
||||||
# Read data resources from json file.
|
# Read data resources from json file.
|
||||||
path = os.path.join(os.path.dirname(__file__), 'data_resources.json')
|
# Don't do this when ReadTheDocs is scanning as it breaks things
|
||||||
json_data=open(path).read()
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' #Checks if RTD is scanning
|
||||||
data_resources = json.loads(json_data)
|
if not (on_rtd):
|
||||||
|
path = os.path.join(os.path.dirname(__file__), 'data_resources.json')
|
||||||
|
json_data=open(path).read()
|
||||||
|
data_resources = json.loads(json_data)
|
||||||
|
|
||||||
|
|
||||||
def prompt_user(prompt):
|
def prompt_user(prompt):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue