Skip to content

Commit 59fc602

Browse files
authored
Merge pull request #1487 from CliMA/js/netrc
remove `netrc_downloader` method
2 parents f66c878 + a2dd0e6 commit 59fc602

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

experiments/ClimaEarth/components/ocean/oceananigans.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -408,16 +408,3 @@ TODO extend this for non-ClimaCore states.
408408
function Checkpointer.get_model_prog_state(sim::OceananigansSimulation)
409409
@warn "get_model_prog_state not implemented for OceananigansSimulation"
410410
end
411-
412-
import Downloads
413-
# TODO: Remove this workaround once the change has been made to ClimaOcean
414-
function CO.DataWrangling.netrc_downloader(username, password, machine, dir)
415-
netrc_file = CO.DataWrangling.netrc_permission_file(username, password, machine, dir)
416-
downloader = Downloads.Downloader()
417-
easy_hook = (easy, *) -> begin
418-
Downloads.Curl.setopt(easy, Downloads.Curl.CURLOPT_NETRC_FILE, netrc_file)
419-
Downloads.Curl.setopt(easy, Downloads.Curl.CURLOPT_SSL_VERIFYPEER, false)
420-
end
421-
downloader.easy_hook = easy_hook
422-
return downloader
423-
end

0 commit comments

Comments
 (0)