Skip to content

Commit

Permalink
update helper method for BetaPictoris
Browse files Browse the repository at this point in the history
  • Loading branch information
mileslucas committed Nov 3, 2020
1 parent 6299ade commit e36b0a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "HCIDatasets"
uuid = "1893dc6a-5236-4cb8-aa54-62ea411c10cd"
authors = ["Miles Lucas <[email protected]> and contributors"]
version = "0.1.3"
version = "0.1.4"

[deps]
DataDeps = "124859b0-ceae-595e-8997-d05f6a7a8dfe"
Expand Down
13 changes: 11 additions & 2 deletions src/BetaPictoris.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ Author: Carlos Gomez-Gonzalez
* `:psf` off-axis PSF
"""

# use a custom method that directly downloads to our chosen file-name
function rename_download(remote_path, localdir)
update_period = DataDeps.progress_update_period()
DataDeps.HTTP.download(
remote_path,
joinpath(localdir, "naco_betapic_cube_empty.fits");
update_period=update_period
)
end

BetaPictoris_datadep = DataDep(
"BetaPictoris",
BetaPictoris_desc,
Expand All @@ -28,8 +38,7 @@ BetaPictoris_datadep = DataDep(
"437e2004ba8737cb3fc2a83330d12f86adf659ad74c1daf52a8e073c0b7619cd";
fetch_method = [
fetch_default,
# use a custom method that directly downloads to our chosen file-name
(remote_path, localdir) -> DataDeps.HTTP.download(remote_path, joinpath(localdir, "naco_betapic_cube_empty.fits")),
rename_download,
fetch_default,
fetch_default
]
Expand Down

2 comments on commit e36b0a1

@mileslucas
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/24070

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.4 -m "<description of version>" e36b0a14230db3ce074f0a103f4ccc6d5e5a639c
git push origin v0.1.4

Please sign in to comment.