Skip to content

Commit

Permalink
Delete error report function calling #43
Browse files Browse the repository at this point in the history
Error report function was deleted from official repository
because it makes building and error report slow. Use python
logging functions to report errors in SCons
  • Loading branch information
Dirack committed Sep 12, 2020
1 parent 3cdc48c commit 3617fe9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 45 deletions.
2 changes: 1 addition & 1 deletion experiments/fullInterpolationAndStack/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Purpose: Common Reflection Element (CRE) stack applied to a seismic data cube
# from Kirchhoff modeling of a gaussian reflector in a linear velocity model.
#
# Site: http://diracks.github.io
# Site: https://dirack.github.io
#
# Version 2.0
#
Expand Down
11 changes: 0 additions & 11 deletions experiments/multiLayerModel/cds/SConscript2
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
# Madagascar package
from rsf.proj import *

# Error report function
import atexit
from madagascarRecipes.errorReport import print_build_failures

import glob

# Build the cre stacked section
Expand Down Expand Up @@ -51,11 +47,4 @@ Result('filtStackedSection','grey title="Filtered Stacked Section"')
# Use aliases to split building
Alias('stack',['stackedSection.rsf','filtStackedSection.rsf'])

# Show error message if fail

message = '''
SCosncript Failed build
'''

atexit.register(print_build_failures,message)
End()
11 changes: 0 additions & 11 deletions experiments/multiLayerModel/cds/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ from rsf.proj import *
# Import glob python library
import glob

# Error report function
import atexit
from madagascarRecipes.errorReport import print_build_failures

# Call SConscript to generate input: original and interpolated data cubes
SConscript('SConscript')

Expand Down Expand Up @@ -157,11 +153,4 @@ Flow('filtStackedSection','stackedSection',
bandpass fhi=20 --out=stdout
''')

# Show error message if fail
message = '''
SConstruct Failed build when m0={m0} and t0={t0}
'''.format(m0=(i*dm0+om0),t0=(j*dt0+ot0))

atexit.register(print_build_failures,message)

End()
11 changes: 0 additions & 11 deletions experiments/multiLayerModel/cre/SConscript2
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
# Madagascar package
from rsf.proj import *

# Error report function
import atexit
from madagascarRecipes.errorReport import print_build_failures

import glob

# Build the cre stacked section
Expand Down Expand Up @@ -51,11 +47,4 @@ Result('filtStackedSection','grey title="Filtered Stacked Section"')
# Use aliases to split building
Alias('stack',['stackedSection.rsf','filtStackedSection.rsf'])

# Show error message if fail

message = '''
SCosncript Failed build
'''

atexit.register(print_build_failures,message)
End()
11 changes: 0 additions & 11 deletions experiments/multiLayerModel/cre/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ from rsf.proj import *
# Import glob python library
import glob

# Error report function
import atexit
from madagascarRecipes.errorReport import print_build_failures

# Call SConscript to generate input: original and interpolated data cubes
# SConscript('SConscript')

Expand Down Expand Up @@ -156,11 +152,4 @@ Flow('filtStackedSection','stackedSection',
bandpass fhi=20 --out=stdout
''')

# Show error message if fail
message = '''
SConstruct Failed build when m0={m0} and t0={t0}
'''.format(m0=(i*dm0+om0),t0=(j*dt0+ot0))

atexit.register(print_build_failures,message)

End()

0 comments on commit 3617fe9

Please sign in to comment.