Numba
This version is backwards incompatible and requires Python 3.6+.
-
Numba:
- Using
numexpris no longer a possibility. Instead,numbais a new dependency. All four kernel routines (wavenumber,greenfct,reflections, andfields) are now numba-jitted functions.
- Using
-
Removed:
- Removed all deprecated functions.
- Dropped support for Python 3.5; moved to f-strings.
- Dropped testing for channel conda-forge. The problems encountered at the early development cycle of empymod with conda-forge do not exist any longer.
-
New defaults:
EMArray:.ampand.phaare now methods, not properties. Phase takes three optional boolean parametersdeg=False,unwrap=True, andlag=True, to get radians or degrees; unwrapped or not; and lag or lead defined phases.- The parameters
epermVandmpermVare set to the values ofepermHandmpermH, respectively, if not provided (hence assuming isotropic behaviour). Before they were set to ones if not provided.
-
Renaming:
transform.fht->transform.hankel_dlftransform.hqwe->transform.hankel_qwetransform.hquad->transform.hankel_quadtransform.ffht->transform.fourier_dlftransform.fqwe->transform.fourier_qwetransform.fftlog->transform.fourier_fftlogtransform.fft->transform.fourier_ffttransform.fhti->transform.get_fftlog_inputtransform.get_spline_values->transform.get_dlf_points.factAng->ang_fact- In
htarg-dict:fftfilt->dlf(filter name for Hankel-DLF) - In
ftarg-dict:fhtfilt->dlf(filter name for Fourier-DLF) - In
ftarg-dict:ft->kind(method in Fourier-DLF [sine/cosine]) - Only dictionaries allowed for
htargandftarg; strings, lists, or tuples are not allowed any longer. They are also dictionaries internally now. ht: There is only one unique name for each method: 'dlf', 'qwe', 'quad'.ft: There is only one unique name for each method: 'dlf', 'qwe', 'fftlog', 'fft'.- Within
transform, changefhtarg,qweargs, andquadargstohtarg;qweargstoftarg.
-
Other changes:
- All settings (
xdirect,ht,htarg,ft,ftarg,loop,verb) are now extracted fromkwargs. This makes it possible that allmodel-functions take the same keyword-arguments; warnings are raised if a particular parameter is not used in this function, but it doesn't fail (it fails, however, for unknown parameters). Pure positional calls including those parameters will therefore not work any longer. - Undo a change introduced in v1.8.0:
get_dlf_pointsis calculated directly withintransform.fhtempymod#26. - Ensured that source and receiver inputs are not altered.
- Significantly reduced top namespace; only functions from
modelare loaded into the top namespace now.
- All settings (