Skip to content

Commit

Permalink
add a seed to avoid random fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ACEsuit committed Jun 19, 2024
1 parent 7baf477 commit 398782e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ObjectPools = "658cac36-ff0f-48ad-967c-110375d98c9d"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
Polynomials = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
Polynomials4ML = "03c4bcba-a943-47e9-bfa1-b1661fc2974f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SpheriCart = "5caf2b29-02d9-47a3-9434-5931c85ba645"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Expand Down
4 changes: 3 additions & 1 deletion test/test_import_ace1.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

using ACE1, ACE1x, JuLIP, StaticArrays, BenchmarkTools,
LinearAlgebra, UltraFastACE, Test, ACEbase
LinearAlgebra, UltraFastACE, Test, ACEbase, Random
using ACEbase: evaluate, evaluate_ed
using ACEbase.Testing: print_tf

Expand All @@ -11,6 +11,8 @@ function rand_env(; Nat = rand(4:12), r0 = 0.8 * rnn(:Si), r1 = 2.0 * rnn(:Si))
return Rs, Zs, z0
end

Random.seed!(1234)

##

elements = [:Si,:O]
Expand Down

0 comments on commit 398782e

Please sign in to comment.