Skip to content

Commit

Permalink
Merge pull request #335 from pixlise/feature/em-import
Browse files Browse the repository at this point in the history
Attempting to get BGT to run, and get its stdout/stderr
  • Loading branch information
pnemere authored Nov 1, 2024
2 parents 8294e63 + fc8e551 commit 3bdd6d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/ws/handlers/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,11 @@ func createBeamLocation(rsiPath string, outputBeamLocationPath string, logger lo
}

cmd := exec.Command(bgtPath+"BGT", bgtPath+"Geometry_PIXL_EM_Landing_25Jan2021.csv", rsiPath, outSurfaceTop, outRXL, outLog)

cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Dir = bgtPath

if err := cmd.Run(); err != nil {
return "", "", fmt.Errorf("BGT tool error: %v", err)
}
Expand Down

0 comments on commit 3bdd6d8

Please sign in to comment.