From 3617fe98912e26dfd6745f360ea2fdf719d3b3a3 Mon Sep 17 00:00:00 2001 From: Rodolfo Dirack Date: Sat, 12 Sep 2020 19:02:40 -0300 Subject: [PATCH] Delete error report function calling #43 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 --- experiments/fullInterpolationAndStack/SConstruct | 2 +- experiments/multiLayerModel/cds/SConscript2 | 11 ----------- experiments/multiLayerModel/cds/SConstruct | 11 ----------- experiments/multiLayerModel/cre/SConscript2 | 11 ----------- experiments/multiLayerModel/cre/SConstruct | 11 ----------- 5 files changed, 1 insertion(+), 45 deletions(-) diff --git a/experiments/fullInterpolationAndStack/SConstruct b/experiments/fullInterpolationAndStack/SConstruct index bf95023..0bd7e9d 100644 --- a/experiments/fullInterpolationAndStack/SConstruct +++ b/experiments/fullInterpolationAndStack/SConstruct @@ -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 # diff --git a/experiments/multiLayerModel/cds/SConscript2 b/experiments/multiLayerModel/cds/SConscript2 index 0c63c46..866f816 100644 --- a/experiments/multiLayerModel/cds/SConscript2 +++ b/experiments/multiLayerModel/cds/SConscript2 @@ -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 @@ -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() diff --git a/experiments/multiLayerModel/cds/SConstruct b/experiments/multiLayerModel/cds/SConstruct index 582bf15..f6eacf8 100644 --- a/experiments/multiLayerModel/cds/SConstruct +++ b/experiments/multiLayerModel/cds/SConstruct @@ -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') @@ -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() diff --git a/experiments/multiLayerModel/cre/SConscript2 b/experiments/multiLayerModel/cre/SConscript2 index 0c63c46..866f816 100644 --- a/experiments/multiLayerModel/cre/SConscript2 +++ b/experiments/multiLayerModel/cre/SConscript2 @@ -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 @@ -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() diff --git a/experiments/multiLayerModel/cre/SConstruct b/experiments/multiLayerModel/cre/SConstruct index 5e8513d..f6d0e0d 100644 --- a/experiments/multiLayerModel/cre/SConstruct +++ b/experiments/multiLayerModel/cre/SConstruct @@ -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') @@ -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()