From fc6b9e2d13e854287a61ab1fa4c2cf8b50ea7473 Mon Sep 17 00:00:00 2001 From: John Omotani Date: Fri, 10 Jan 2025 09:52:53 +0000 Subject: [PATCH] In tests, get StatsBase dependency from moment_kinetics package Avoids need to install StatsBase directly in base environment. --- moment_kinetics/src/moment_kinetics.jl | 1 + moment_kinetics/test/jacobian_matrix_tests.jl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/moment_kinetics/src/moment_kinetics.jl b/moment_kinetics/src/moment_kinetics.jl index 3309ca8ed..0a43b6277 100644 --- a/moment_kinetics/src/moment_kinetics.jl +++ b/moment_kinetics/src/moment_kinetics.jl @@ -5,6 +5,7 @@ module moment_kinetics export run_moment_kinetics using MPI +using StatsBase # Include submodules from other source files # Note that order of includes matters - things used in one module must already diff --git a/moment_kinetics/test/jacobian_matrix_tests.jl b/moment_kinetics/test/jacobian_matrix_tests.jl index e61ae7d33..7fbcb8af9 100644 --- a/moment_kinetics/test/jacobian_matrix_tests.jl +++ b/moment_kinetics/test/jacobian_matrix_tests.jl @@ -36,7 +36,7 @@ using moment_kinetics.moment_constraints: electron_implicit_constraint_forcing!, using moment_kinetics.type_definitions: mk_float using moment_kinetics.velocity_moments: calculate_electron_moment_derivatives_no_r! -using StatsBase +using moment_kinetics.StatsBase # Small parameter used to create perturbations to test Jacobian against epsilon = 1.0e-6