Skip to content

Commit

Permalink
Merge pull request #336 from pixlise/feature/em-import
Browse files Browse the repository at this point in the history
Attempt static linking of BGT
  • Loading branch information
pnemere authored Nov 3, 2024
2 parents 3bdd6d8 + 1ab4796 commit 330af45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/ws/handlers/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func createBeamLocation(rsiPath string, outputBeamLocationPath string, logger lo
// Try the path used in local testing
bgtPath = ".." + string(os.PathSeparator) + ".." + string(os.PathSeparator) + "beam-tool" + string(os.PathSeparator)

if _, err := os.Stat(bgtPath + "BGT"); err != nil {
/*if _, err := os.Stat(bgtPath + "BGT"); err != nil {
// Try the path used in local testing
fmt.Println("PATH WONT BE FOUND")
Expand All @@ -653,7 +653,7 @@ func createBeamLocation(rsiPath string, outputBeamLocationPath string, logger lo
// Try get it backwards
bgtPath = filepath.Dir(filepath.Dir(d)) + string(os.PathSeparator)
}
}*/
}

cmd := exec.Command(bgtPath+"BGT", bgtPath+"Geometry_PIXL_EM_Landing_25Jan2021.csv", rsiPath, outSurfaceTop, outRXL, outLog)
Expand Down
Binary file modified beam-tool/BGT
Binary file not shown.

0 comments on commit 330af45

Please sign in to comment.