Skip to content

Commit

Permalink
Moved the remote storage location of the model grids
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstolker committed Jan 5, 2021
1 parent 40bbe15 commit 5d21b41
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion species/data/ames_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def add_ames_cond(input_path: str,
os.makedirs(input_path)

input_file = 'ames-cond.tgz'
url = 'https://people.phys.ethz.ch/~ipa/tstolker/ames-cond.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/ames-cond.tgz'

data_folder = os.path.join(input_path, 'ames-cond/')
data_file = os.path.join(input_path, input_file)
Expand Down
2 changes: 1 addition & 1 deletion species/data/ames_dusty.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def add_ames_dusty(input_path: str,
os.makedirs(input_path)

input_file = 'ames-dusty.tgz'
url = 'https://people.phys.ethz.ch/~ipa/tstolker/ames-dusty.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/ames-dusty.tgz'

data_folder = os.path.join(input_path, 'ames-dusty/')
data_file = os.path.join(input_path, input_file)
Expand Down
2 changes: 1 addition & 1 deletion species/data/atmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def add_atmo(input_path: str,
if not os.path.exists(data_folder):
os.makedirs(data_folder)

url = 'https://people.phys.ethz.ch/~ipa/tstolker/atmo.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/atmo.tgz'

if not os.path.isfile(data_file):
print('Downloading ATMO model spectra (430 MB)...', end='', flush=True)
Expand Down
2 changes: 1 addition & 1 deletion species/data/blackbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def add_blackbody(input_path: str,
if not os.path.exists(data_folder):
os.makedirs(data_folder)

url = 'https://people.phys.ethz.ch/~ipa/tstolker/blackbody.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/blackbody.tgz'

if not os.path.isfile(data_file):
print('Downloading blackbody model spectra (46 MB)...', end='', flush=True)
Expand Down
2 changes: 1 addition & 1 deletion species/data/btcond.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def add_btcond(input_path: str,
if not os.path.exists(data_folder):
os.makedirs(data_folder)

url = 'https://people.phys.ethz.ch/~ipa/tstolker/bt-cond.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/bt-cond.tgz'

if not os.path.isfile(data_file):
print('Downloading BT-Cond model spectra (162 MB)...', end='', flush=True)
Expand Down
2 changes: 1 addition & 1 deletion species/data/btcond_feh.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def add_btcond_feh(input_path: str,
if not os.path.exists(data_folder):
os.makedirs(data_folder)

url = 'https://people.phys.ethz.ch/~ipa/tstolker/bt-cond_feh.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/bt-cond_feh.tgz'

if not os.path.isfile(data_file):
print('Downloading BT-Cond model spectra (390 MB)...', end='', flush=True)
Expand Down
2 changes: 1 addition & 1 deletion species/data/btnextgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def add_btnextgen(input_path: str,
os.makedirs(input_path)

input_file = 'bt-nextgen.tgz'
url = 'https://people.phys.ethz.ch/~ipa/tstolker/bt-nextgen.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/bt-nextgen.tgz'

data_folder = os.path.join(input_path, 'bt-nextgen/')
data_file = os.path.join(input_path, input_file)
Expand Down
4 changes: 2 additions & 2 deletions species/data/btsettl.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def add_btsettl(input_path: str,
if not os.path.exists(data_folder):
os.makedirs(data_folder)

url = 'https://people.phys.ethz.ch/~ipa/tstolker/bt-settl.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/bt-settl.tgz'

if not os.path.isfile(data_file):
print('Downloading Bt-Settl model spectra (227 MB)...', end='', flush=True)
print('Downloading BT-Settl model spectra (227 MB)...', end='', flush=True)
urllib.request.urlretrieve(url, data_file)
print(' [DONE]')

Expand Down
2 changes: 1 addition & 1 deletion species/data/btsettl_cifist.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def add_btsettl(input_path: str,
if not os.path.exists(data_folder):
os.makedirs(data_folder)

url = 'https://people.phys.ethz.ch/~ipa/tstolker/bt-settl-cifist.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/bt-settl-cifist.tgz'

if not os.path.isfile(data_file):
print('Downloading Bt-Settl model spectra (578 MB)...', end='', flush=True)
Expand Down
2 changes: 1 addition & 1 deletion species/data/drift_phoenix.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def add_drift_phoenix(input_path: str,
os.makedirs(input_path)

input_file = 'drift-phoenix.tgz'
url = 'https://people.phys.ethz.ch/~ipa/tstolker/drift-phoenix.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/drift-phoenix.tgz'

data_folder = os.path.join(input_path, 'drift-phoenix/')
data_file = os.path.join(input_path, input_file)
Expand Down
2 changes: 1 addition & 1 deletion species/data/exo_rem.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def add_exo_rem(input_path: str,
os.makedirs(input_path)

input_file = 'exo-rem.tgz'
url = 'https://people.phys.ethz.ch/~ipa/tstolker/exo-rem.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/exo-rem.tgz'

data_folder = os.path.join(input_path, 'exo-rem/')
data_file = os.path.join(input_path, input_file)
Expand Down
4 changes: 2 additions & 2 deletions species/data/petitcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def add_petitcode_hot_clear(input_path: str,

data_folder = os.path.join(input_path, 'petitcode-hot-clear/')

url = 'https://people.phys.ethz.ch/~ipa/tstolker/petitcode-hot-clear.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/petitcode-hot-clear.tgz'

data_file = os.path.join(input_path, 'petitcode-hot-clear.tgz')

Expand Down Expand Up @@ -427,7 +427,7 @@ def add_petitcode_hot_cloudy(input_path: str,

data_folder = os.path.join(input_path, 'petitcode-hot-cloudy/')

url = 'https://people.phys.ethz.ch/~ipa/tstolker/petitcode-hot-cloudy.tgz'
url = 'https://home.strw.leidenuniv.nl/~stolker/species/petitcode-hot-cloudy.tgz'

data_file = os.path.join(input_path, 'petitcode-hot-cloudy.tgz')

Expand Down

0 comments on commit 5d21b41

Please sign in to comment.