Skip to content

Commit

Permalink
cleaned up imports and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TedClee committed Aug 22, 2019
1 parent 29aa86a commit f7e0081
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions seisflows/solver/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import sys
import subprocess as subp
import subprocess
import numpy as np
import os

Expand All @@ -12,7 +12,7 @@
from seisflows.plugins import solver_io
from seisflows.tools import msg, unix
from seisflows.tools.seismic import Container, call_solver
from seisflows.tools.tools import Struct, diff, exists, call
from seisflows.tools.tools import Struct, diff, exists



Expand Down Expand Up @@ -207,8 +207,6 @@ def eval_func(self, path='', export_traces=False, write_residuals=True):
rpt = subprocess.check_output(['grep', 'digest fwd_solver.log'])
except:
rpt = ""
#rpt = subp.run(['grep','digest','fwd_solver.log'], \
# stdout=subp.PIPE).stdout.decode('utf-8')
if len(rpt) > 0:
print( 'eval_func:',rpt )

Expand All @@ -228,12 +226,6 @@ def eval_grad(self, path='', export_traces=True):
unix.cd(self.cwd)
self.adjoint()

# Capture the stability digest report (not needed, same as forward)
#if PAR.VERBOSE>0 and self.source_name==self.first_source:
# rpt = subp.run(['grep','digest','adjoint.log'],check=True, \
# stdout=subp.PIPE).stdout.decode('utf-8')
# print( 'eval_grad adj: ',rpt )

self.export_kernels(path)
if export_traces:
self.export_traces(path+'/'+'traces/syn', prefix='traces/syn')
Expand Down

0 comments on commit f7e0081

Please sign in to comment.