Code Monkey home page Code Monkey logo

Comments (3)

gempa-jabe avatar gempa-jabe commented on August 29, 2024 1

Thank you, I can confirm the bug and a fix is currently in testing. If you want you can test the following fix yourself and report back:

diff --git a/apps/processing/scamp/amptool.cpp b/apps/processing/scamp/amptool.cpp
index 57cc45bed..fad7f4ec9 100644
--- a/apps/processing/scamp/amptool.cpp
+++ b/apps/processing/scamp/amptool.cpp
@@ -846,14 +846,15 @@ void AmpTool::process(Origin *origin, Pick *pickInput) {
                        proc->setReferencingPickID(pickID);
 
                        int res = -1;
-                       if ( pick ) {
+                       if ( origin ) {
+                               res = addProcessor(proc.get(), origin, pick.get(), distance, depth, (double) origin->time().value());
+                       }
+                       else {
                                SC_FMT_DEBUG("Measuring {} amplitude for pick {} independent of origin",
                                             ait->c_str(), pick->publicID().c_str());
                                res = addProcessor(proc.get(), nullptr, pick.get(), None, None, None);
                        }
-                       else {
-                               res = addProcessor(proc.get(), origin, pick.get(), distance, depth, (double) origin->time().value());
-                       }
+
                        if ( res < 0 ) {
                                // RecordStream not available
                                if ( res == -2 ) {

from main.

filefolder avatar filefolder commented on August 29, 2024

^ can confirm that fixes the issue in 5.5.0. scamp now generates and stores amplitudes via offline processing and scmag reads these properly.

thanks both!

from main.

gempa-jabe avatar gempa-jabe commented on August 29, 2024

Fixed in 5.5.5.

from main.

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.