Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point to new Zenodo record #191

Merged
merged 3 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/ci-tutorials/crossvalidation.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ from mpol import (

# load the mock dataset of the ALMA logo
fname = download_file(
"https://zenodo.org/record/4930016/files/logo_cube.noise.npz",
"https://zenodo.org/record/10059491/files/logo_cube.noise.npz",
cache=True,
show_progress=True,
pkgname="mpol",
Expand Down Expand Up @@ -361,7 +361,7 @@ For the purposes of comparison, here is the image produced by the tclean algorit

```{code-cell}
fname = download_file(
"https://zenodo.org/record/4930016/files/logo_cube.tclean.fits",
"https://zenodo.org/record/10059491/files/logo_cube.tclean.fits",
cache=True,
show_progress=True,
pkgname="mpol",
Expand Down
2 changes: 1 addition & 1 deletion docs/ci-tutorials/fakedata.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ from astropy.utils.data import download_file

# load the mock dataset of the ALMA logo
fname = download_file(
"https://zenodo.org/record/4930016/files/logo_cube.noise.npz",
"https://zenodo.org/record/10059491/files/logo_cube.noise.npz",
cache=True,
show_progress=True,
pkgname="mpol",
Expand Down
2 changes: 1 addition & 1 deletion docs/ci-tutorials/gridder.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ from astropy.utils.data import download_file
```{code-cell}
# load the mock dataset of the ALMA logo
fname = download_file(
"https://zenodo.org/record/4930016/files/logo_cube.noise.npz",
"https://zenodo.org/record/10059491/files/logo_cube.noise.npz",
cache=True,
show_progress=True,
pkgname="mpol",
Expand Down
2 changes: 1 addition & 1 deletion docs/ci-tutorials/initializedirtyimage.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ When saving and loading a model, it is important to make sure that ``cell_size``
```{code-cell}
# load the mock dataset of the ALMA logo
fname = download_file(
"https://zenodo.org/record/4930016/files/logo_cube.noise.npz",
"https://zenodo.org/record/10059491/files/logo_cube.noise.npz",
cache=True,
show_progress=True,
pkgname="mpol",
Expand Down
2 changes: 1 addition & 1 deletion docs/ci-tutorials/loose-visibilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ and loading the dataset
```{code-cell}
# load the mock dataset of the ALMA logo
fname = download_file(
"https://zenodo.org/record/4930016/files/logo_cube.noise.npz",
"https://zenodo.org/record/10059491/files/logo_cube.noise.npz",
cache=True,
show_progress=True,
pkgname="mpol",
Expand Down
2 changes: 1 addition & 1 deletion docs/ci-tutorials/optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ from mpol import coordinates, fourier, gridding, losses, precomposed, utils
```{code-cell} ipython3
# load the mock dataset of the ALMA logo
fname = download_file(
"https://zenodo.org/record/4930016/files/logo_cube.noise.npz",
"https://zenodo.org/record/10059491/files/logo_cube.noise.npz",
cache=True,
show_progress=True,
pkgname="mpol",
Expand Down
2 changes: 1 addition & 1 deletion docs/download_external_files.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from astropy.utils.data import download_file

version = 4930016
version = 10059491
slug = "https://zenodo.org/record/{:d}/files/{:}"

fnames = [
Expand Down
6 changes: 3 additions & 3 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@

from mpol import coordinates, gridding

zenodo_version = 10059491

# We need a fixture which provides mock visibilities of the sort we'd
# expect from visread, but *without* the CASA dependency.

# fixture to provide tuple of uu, vv, weight, data_re, and data_im values
@pytest.fixture(scope="session")
def mock_visibility_archive():

# use astropy routines to cache data
fname = download_file(
"https://zenodo.org/record/4930016/files/logo_cube.noise.npz",
"https://zenodo.org/record/{:d}/files/logo_cube.noise.npz".format(zenodo_version),
cache=True,
pkgname="mpol",
)

return np.load(fname)


@pytest.fixture
def mock_visibility_data(mock_visibility_archive):
d = mock_visibility_archive
Expand Down