Refactor
Grand refactor with new internal layout. Mainly splitting-up utils
into
smaller bits. Most functionalities (old names) are currently retained in
utils
and it should be mostly backwards compatible for now, but they are
deprecated and will eventually be removed. Some previously deprecated functions
were removed, however.
-
Removed deprecated functions:
emg3d.solver.solver
(useemg3d.solver.solve
instead).- Aliases of
emg3d.io.data_write
andemg3d.io.data_read
inemg3d.utils
.
-
Changes:
-
SourceField
has now the same signature asField
(this might break your
code if you calledSourceField
directly, with positional arguments, and
not throughget_source_field
). -
More functions and classes in the top namespace.
-
Replaced
core.l2norm
withscipy.linalg.norm
, as SciPy 1.4 got the
following PR: scipy/scipy#10397 (reason to raise
minimum SciPy to 1.4). -
Increased minimum required versions of dependencies to
scipy>=1.4.0
(raised from 1.1, see note above)empymod>=2.0.0
(no min requirement before)numba>=0.45.0
(raised from 0.40)
-
-
New layout
njitted
->core
.utils
split infields
,meshes
,models
,maps
, andutils
.
-
Bugfixes:
- Fixed
to_dict
,from_dict
, andcopy
for theSourceField
. - Fixed
io
forSourceField
, that was not implemented properly.
- Fixed