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

Error in testing -> 'test_sea_level.jl' #132

Closed
TommyGiak opened this issue Jul 4, 2024 · 1 comment
Closed

Error in testing -> 'test_sea_level.jl' #132

TommyGiak opened this issue Jul 4, 2024 · 1 comment

Comments

@TommyGiak
Copy link

When I run a test with ] test GeophysicalModelGenerator it fails and Julia returns:

Sea level: Error During Test at /Users/tommygiak/.julia/packages/GeophysicalModelGenerator/sNDGT/test/runtests.jl:71
  Got exception outside of a @test
  LoadError: ArgumentError: Cannot open '/Users/tommygiak/Desktop/src/sea_level_data/Spratt2016-800ka.txt': not a file
  Stacktrace:
    [1] readdlm_auto(input::String, dlm::Char, T::Type, eol::Char, auto::Bool; opts::@Kwargs{})
      @ DelimitedFiles ~/.julia/packages/DelimitedFiles/aGcsu/src/DelimitedFiles.jl:234
    [2] readdlm_auto
      @ ~/.julia/packages/DelimitedFiles/aGcsu/src/DelimitedFiles.jl:233 [inlined]
    [3] readdlm
      @ ~/.julia/packages/DelimitedFiles/aGcsu/src/DelimitedFiles.jl:170 [inlined]
    [4] readdlm
      @ ~/.julia/packages/DelimitedFiles/aGcsu/src/DelimitedFiles.jl:118 [inlined]
    [5] load_sea_level(name::Symbol; flip_elevation::Bool, flip_age::Bool)
      @ GeophysicalModelGenerator ~/.julia/packages/GeophysicalModelGenerator/sNDGT/src/sea_lvl.jl:42
    [6] load_sea_level
      @ ~/.julia/packages/GeophysicalModelGenerator/sNDGT/src/sea_lvl.jl:40 [inlined]
    [7] SeaLevel(name::Symbol; flip_elevation::Bool, flip_age::Bool)
      @ GeophysicalModelGenerator ~/.julia/packages/GeophysicalModelGenerator/sNDGT/src/sea_lvl.jl:22
    [8] SeaLevel(name::Symbol)
      @ GeophysicalModelGenerator ~/.julia/packages/GeophysicalModelGenerator/sNDGT/src/sea_lvl.jl:21
    [9] top-level scope
      @ ~/.julia/packages/GeophysicalModelGenerator/sNDGT/test/test_sea_level.jl:3
   [10] include(fname::String)
      @ Base.MainInclude ./client.jl:489
   [11] macro expansion
      @ ~/.julia/packages/GeophysicalModelGenerator/sNDGT/test/runtests.jl:72 [inlined]
   [12] macro expansion
      @ ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
   [13] top-level scope
      @ ~/.julia/packages/GeophysicalModelGenerator/sNDGT/test/runtests.jl:72
   [14] include(fname::String)
      @ Base.MainInclude ./client.jl:489
   [15] top-level scope
      @ none:6
   [16] eval
      @ ./boot.jl:385 [inlined]
   [17] exec_options(opts::Base.JLOptions)
      @ Base ./client.jl:291
   [18] _start()
      @ Base ./client.jl:552
  in expression starting at /Users/tommygiak/.julia/packages/GeophysicalModelGenerator/sNDGT/test/test_sea_level.jl:3
Test Summary: | Error  Total  Time
Sea level     |     1      1  0.3s
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/tommygiak/.julia/packages/GeophysicalModelGenerator/sNDGT/test/runtests.jl:71
ERROR: Package GeophysicalModelGenerator errored during testing
@boriskaus
Copy link
Member

thanks for reporting! It has been fixed in PR #133 & will be part of version 0.7.7

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

No branches or pull requests

3 participants