Skip to content

Commit b494d8c

Browse files
author
Frankie Robertson
committed
Fix missing imports and typo in file_cache in IRTSupport
1 parent b297b6e commit b494d8c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

IRTSupport/src/datasets/Utils.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
module Utils
22

33
using Base.Filesystem: joinpath, isfile
4+
using UrlDownload
5+
using ZipFile
6+
using CSV
7+
using DataFrames
48

5-
export file_cache
9+
export get_single_csv_zip, file_cache
610

711
const IRT_DATASET_CACHE_VAR = "IRT_DATASETS_CACHE"
812

@@ -28,7 +32,7 @@ function file_cache(path, get_fn, read_fn, write_fn)
2832
function inner(args...; kwargs...)
2933
full_path = nothing
3034
if IRT_DATASET_CACHE_VAR in keys(ENV)
31-
full_path = joinpath(ENV[varname], path)
35+
full_path = joinpath(ENV[IRT_DATASET_CACHE_VAR], path)
3236
if isfile(full_path)
3337
@info "Using cached $full_path"
3438
return read_fn(full_path)

IRTSupport/src/postprocess/gridify.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using ParallelKMeans, Interpolations, Base.Filesystem
22

3-
using ..ItemBanks: load_bootstrapped_item_bank, save_gridify
3+
using ComputerAdaptiveTesting.ItemBanks: load_bootstrapped_item_bank, save_gridify
44

55
function make_cdf(num_resamples)
66
cdf = Array{Float64}(undef, num_resamples)

IRTSupport/src/wrap/Wrap.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module Wrap
22

3+
using RCall
4+
35
include("./Mirt.jl")
46

57
end

0 commit comments

Comments
 (0)