You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The event keys expected by function pyrvt.tools._calc_fa are 'magnitude', 'distance' and 'region' (from tools.py, line 141):
event_keys= ['magnitude', 'distance', 'region']
These keys become parameters when the BooreThompson class is initialized (peak_calculators.py, line 1040). However, the parameters expected by the BooreThompson class (and its two subclasses) are 'mag', 'dist' and 'region'. This inconsistency seems to generate the following error:
File "C:\ProgramData\Anaconda3\lib\site-packages\pyrvt\tools.py", line 201, in calc_compatible_spectra
results = pool.map(
File "C:\ProgramData\Anaconda3\lib\multiprocessing\pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\ProgramData\Anaconda3\lib\multiprocessing\pool.py", line 771, in get
raise self._value
TypeError: __init__() missing 2 required positional arguments: 'mag' and 'dist'
The event keys expected by function
pyrvt.tools._calc_fa
are 'magnitude', 'distance' and 'region' (from tools.py, line 141):These keys become parameters when the
BooreThompson
class is initialized (peak_calculators.py, line 1040). However, the parameters expected by theBooreThompson
class (and its two subclasses) are 'mag', 'dist' and 'region'. This inconsistency seems to generate the following error:The following script should replicate the error:
The text was updated successfully, but these errors were encountered: