Giter VIP home page Giter VIP logo

Comments (3)

tclements avatar tclements commented on June 20, 2024

Just confirmed this is failing on v0.4.0:

(@v1.4) pkg> st
Status `~/.julia/environments/v1.4/Project.toml`
  [b372bb87] SeisIO v1.1.0 #master (https://github.com/jpjones76/SeisIO.jl.git)
  [8cc7c3c0] SeisNoise v0.4.0
using SeisNoise, SeisIO
C = SeisIO.RandSeis.randSeisChannel(s=true,c=false,fs_min=20.)
ungap!(C)
process_raw!(C,10.)
ERROR: MethodError: no method matching process_raw!(::SeisChannel, ::Float64)
Closest candidates are:
  process_raw!(::SeisData, ::Float64; ϕshift) at /home/timclements/.julia/packages/SeisNoise/I9Knu/src/compute_fft.jl:21
Stacktrace:
 [1] top-level scope at none:0

but on the master branch it works:

(@v1.4) pkg> st
Status `~/.julia/environments/v1.4/Project.toml`
  [b372bb87] SeisIO v1.1.0 #master (https://github.com/jpjones76/SeisIO.jl.git)
  [8cc7c3c0] SeisNoise v0.4.1 #master (https://github.com/tclements/SeisNoise.jl.git)
using SeisNoise, SeisIO
C = SeisIO.RandSeis.randSeisChannel(s=true,c=false,fs_min=20.)
ungap!(C)
process_raw!(C,10.)

# test with Array{SeisData,1}
ar = [SeisIO.RandSeis.randSeisData(s=1.,c=0.,fs_min=10.) for _ = 1:5]
process_raw!.(ar,10.)
all(vcat([ar[ii].fs .== 10. for ii = 1:length(ar)]...))
true

I tagged a new version of SeisNoise (v0.4.1) that has these changes. I will add it to the general registry once this build to passes (https://travis-ci.org/github/tclements/SeisNoise.jl/builds/703539782) ~ 1 hour. For now you should be able to use the master branch:

pkg> add SeisNoise#master

from seisnoise.jl.

tclements avatar tclements commented on June 20, 2024

Found there is an issue with resampling gapless SeisChannel jpjones76/SeisIO.jl#51. This will give a problem with creating RawData from SeisChannel right now. I'll try to get a patch soon.

from seisnoise.jl.

tclements avatar tclements commented on June 20, 2024

Fixed by #50

from seisnoise.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.