@@ -3570,7 +3570,7 @@ def seis_synthetics(
35703570 filterer = None ,
35713571 reference_taperer = None ,
35723572 plot = False ,
3573- nprocs = 1 ,
3573+ nthreads = 1 ,
35743574 outmode = "array" ,
35753575 pre_stack_cut = False ,
35763576 taper_tolerance_factor = 0.0 ,
@@ -3597,9 +3597,8 @@ def seis_synthetics(
35973597 filterer : :class:`Filterer`
35983598 plot : boolean
35993599 flag for looking at traces
3600- nprocs : int
3601- number of processors to use for synthetics calculation
3602- --> currently no effect !!!
3600+ nthreads : int
3601+ number of threads to use for synthetics calculation
36033602 outmode : string
36043603 output format of synthetics can be 'array', 'stacked_traces',
36053604 'data' returns traces unstacked including post-processing,
@@ -3656,7 +3655,7 @@ def seis_synthetics(
36563655
36573656 t_2 = time ()
36583657 try :
3659- response = engine .process (sources = sources , targets = targets , nprocs = nprocs )
3658+ response = engine .process (sources = sources , targets = targets , nthreads = nthreads )
36603659 t_1 = time ()
36613660 except IndexError :
36623661 for source in sources :
@@ -4157,7 +4156,7 @@ def fft_transforms(
41574156
41584157
41594158def geo_synthetics (
4160- engine , targets , sources , outmode = "stacked_array" , plot = False , nprocs = 1
4159+ engine , targets , sources , outmode = "stacked_array" , plot = False , nthreads = 1
41614160):
41624161 """
41634162 Calculate synthetic displacements for a given static fomosto Greens
@@ -4173,9 +4172,8 @@ def geo_synthetics(
41734172 containing :class:`pyrocko.gf.seismosizer.Target` Objects
41744173 plot : boolean
41754174 flag for looking at synthetics - not implemented yet
4176- nprocs : int
4177- number of processors to use for synthetics calculation
4178- --> currently no effect !!!
4175+ nthreads : int
4176+ number of threads to use for synthetics calculation
41794177 outmode : string
41804178 output format of synthetics can be: 'array', 'arrays',
41814179 'stacked_array','stacked_arrays'
@@ -4199,7 +4197,7 @@ def geo_synthetics(
41994197 for target in targets :
42004198 print (target )
42014199
4202- response = engine .process (sources , targets )
4200+ response = engine .process (sources , targets , nthreads = nthreads )
42034201
42044202 ns = len (sources )
42054203 nt = len (targets )
0 commit comments