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

Update Project.toml and DataDep #138

Merged
merged 5 commits into from
Aug 30, 2023
Merged

Update Project.toml and DataDep #138

merged 5 commits into from
Aug 30, 2023

Conversation

rofinn
Copy link
Member

@rofinn rofinn commented Aug 29, 2023

Bump AxisKeys and patch release number.

@rofinn rofinn changed the title Update Project.toml Update Project.toml and DataDep Aug 29, 2023
Comment on lines +6 to +8
"https://www.dropbox.com/scl/fi/bgtfqea9qqoug42gcnnsl/datasets.tar.gz?rlkey=11xsae0wi32m8gcfxhbqgo030&dl=0",
"cf1fff2e7f3ce28eb4264060bc7b9ee561bccfce2c5915c4cf758ec48477ddfe",
fetch_method=DataDeps.fetch_base,
Copy link
Member Author

Choose a reason for hiding this comment

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

  1. Dropbox view link. Bug @rofinn if there are issues.
  2. I don't know why the hash is different, but it's possible my local copy was slightly out-of-date
  3. HTTP.jl wasn't downloading the entire file for some reason, so we're using Base.download instead.

@@ -73,13 +73,16 @@ function impute!(data::AbstractMatrix{Union{T, Missing}}, imp::KNN; dims=nothing

# Weight valid neighbors based on inverse distance
neighbor_dists = dists[.!neighbor_mask]
wv = weights(1.0 ./ neighbor_dists)

# Delay creating Weights as they don't support Inf or NaN anymore.
Copy link
Member Author

Choose a reason for hiding this comment

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

As of #136 we can't call weights with a vector containing Inf, so we're just computing the sum ourselves and calling Weights for the weighted mean.

@rofinn
Copy link
Member Author

rofinn commented Aug 29, 2023

I'm guessing we need to drop 1.5 at some point.

rofinn added 2 commits August 29, 2023 14:40
1.5 is pretty old and many of our deps aren't supporting it.
@rofinn rofinn merged commit 687c56a into master Aug 30, 2023
@rofinn rofinn deleted the rofinn-patch-1 branch August 30, 2023 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant