Skip to content

Commit

Permalink
Other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eixalde committed May 4, 2023
1 parent 50ce567 commit 65ca6e5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 30 deletions.
32 changes: 14 additions & 18 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ def example_dataset_adi():

url_prefix = "https://github.com/vortex-exoplanet/VIP_extras/raw/master/datasets"

f1 = download_resource(
"{}/naco_betapic_cube_cen.fits".format(url_prefix), cache=True
)
f2 = download_resource("{}/naco_betapic_psf.fits".format(url_prefix), cache=True)
f3 = download_resource("{}/naco_betapic_pa.fits".format(url_prefix), cache=True)
f1 = download_resource("{}/naco_betapic_cube_cen.fits".format(url_prefix))
f2 = download_resource("{}/naco_betapic_psf.fits".format(url_prefix))
f3 = download_resource("{}/naco_betapic_pa.fits".format(url_prefix))

# load fits
cube = vip.fits.open_fits(f1)
Expand Down Expand Up @@ -103,10 +101,10 @@ def example_dataset_ifs():

url_prefix = "https://github.com/vortex-exoplanet/VIP_extras/raw/master/datasets"

f1 = download_resource("{}/sphere_v471tau_cube.fits".format(url_prefix), cache=True)
f2 = download_resource("{}/sphere_v471tau_psf.fits".format(url_prefix), cache=True)
f3 = download_resource("{}/sphere_v471tau_pa.fits".format(url_prefix), cache=True)
f4 = download_resource("{}/sphere_v471tau_wl.fits".format(url_prefix), cache=True)
f1 = download_resource("{}/sphere_v471tau_cube.fits".format(url_prefix))
f2 = download_resource("{}/sphere_v471tau_psf.fits".format(url_prefix))
f3 = download_resource("{}/sphere_v471tau_pa.fits".format(url_prefix))
f4 = download_resource("{}/sphere_v471tau_wl.fits".format(url_prefix))

# load fits
cube = vip.fits.open_fits(f1)
Expand Down Expand Up @@ -155,10 +153,10 @@ def example_dataset_ifs_crop():

url_prefix = "https://github.com/vortex-exoplanet/VIP_extras/raw/master/datasets"

f1 = download_resource("{}/sphere_v471tau_cube.fits".format(url_prefix), cache=True)
f2 = download_resource("{}/sphere_v471tau_psf.fits".format(url_prefix), cache=True)
f3 = download_resource("{}/sphere_v471tau_pa.fits".format(url_prefix), cache=True)
f4 = download_resource("{}/sphere_v471tau_wl.fits".format(url_prefix), cache=True)
f1 = download_resource("{}/sphere_v471tau_cube.fits".format(url_prefix))
f2 = download_resource("{}/sphere_v471tau_psf.fits".format(url_prefix))
f3 = download_resource("{}/sphere_v471tau_pa.fits".format(url_prefix))
f4 = download_resource("{}/sphere_v471tau_wl.fits".format(url_prefix))

# load fits
cube = vip.fits.open_fits(f1)
Expand Down Expand Up @@ -209,11 +207,9 @@ def example_dataset_rdi():

url_prefix = "https://github.com/vortex-exoplanet/VIP_extras/raw/master/datasets"

f1 = download_resource(
"{}/naco_betapic_cube_cen.fits".format(url_prefix), cache=True
)
f2 = download_resource("{}/naco_betapic_psf.fits".format(url_prefix), cache=True)
f3 = download_resource("{}/naco_betapic_pa.fits".format(url_prefix), cache=True)
f1 = download_resource("{}/naco_betapic_cube_cen.fits".format(url_prefix))
f2 = download_resource("{}/naco_betapic_psf.fits".format(url_prefix))
f3 = download_resource("{}/naco_betapic_pa.fits".format(url_prefix))

# load fits
cube = vip.fits.open_fits(f1)
Expand Down
6 changes: 3 additions & 3 deletions tests/snapshots/snapshot_invprob.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def make_dataset_adi():

url_prefix = "https://github.com/vortex-exoplanet/VIP_extras/raw/master/datasets"

f1 = download_resource(f"{url_prefix}/naco_betapic_cube_cen.fits", cache=True)
f2 = download_resource(f"{url_prefix}/naco_betapic_psf.fits", cache=True)
f3 = download_resource(f"{url_prefix}/naco_betapic_pa.fits", cache=True)
f1 = download_resource(f"{url_prefix}/naco_betapic_cube_cen.fits")
f2 = download_resource(f"{url_prefix}/naco_betapic_psf.fits")
f3 = download_resource(f"{url_prefix}/naco_betapic_pa.fits")

# load fits
cube = open_fits(f1)
Expand Down
6 changes: 3 additions & 3 deletions tests/snapshots/snapshot_psfsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def make_dataset_adi():

url_prefix = "https://github.com/vortex-exoplanet/VIP_extras/raw/master/datasets"

f1 = download_resource(f"{url_prefix}/naco_betapic_cube_cen.fits", cache=True)
f2 = download_resource(f"{url_prefix}/naco_betapic_psf.fits", cache=True)
f3 = download_resource(f"{url_prefix}/naco_betapic_pa.fits", cache=True)
f1 = download_resource(f"{url_prefix}/naco_betapic_cube_cen.fits")
f2 = download_resource(f"{url_prefix}/naco_betapic_psf.fits")
f3 = download_resource(f"{url_prefix}/naco_betapic_pa.fits")

# load fits
cube = open_fits(f1)
Expand Down
8 changes: 2 additions & 6 deletions tests/test_preproc_recentering.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,12 +614,8 @@ def test_radon(debug=False):
# ===== datacube
url_prefix = "https://github.com/vortex-exoplanet/VIP_extras/raw/master/datasets"

f1 = download_resource(
"{}/sphere_ifs_PDS70_cen.fits".format(url_prefix), cache=True
)
f2 = download_resource(
"{}/sphere_ifs_PDS70_psf.fits".format(url_prefix), cache=True
)
f1 = download_resource("{}/sphere_ifs_PDS70_cen.fits".format(url_prefix))
f2 = download_resource("{}/sphere_ifs_PDS70_psf.fits".format(url_prefix))

# load fits
cube = vip.fits.open_fits(f1)
Expand Down

0 comments on commit 65ca6e5

Please sign in to comment.