Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
da1c361
Start drafting a single `Ellipsoid` class
santisoler Nov 27, 2025
963292a
Rename variable holding rotation and permutation matrix
santisoler Nov 27, 2025
b1d369e
Fix get_permutation_matrix for spheres
santisoler Nov 27, 2025
22c8547
Set angles and center as optional arguments
santisoler Nov 28, 2025
abb9379
Update elliptical integrals to oblates as `a == b > c`
santisoler Nov 28, 2025
322edb4
Update gravity tests
santisoler Nov 28, 2025
8ffc88c
Update test_ellipsoids.py
santisoler Nov 28, 2025
2be3c55
Update docstrings of get_permutation_matrix
santisoler Nov 28, 2025
d430c7f
Use `sorted` to sort semiaxes in gravity function
santisoler Nov 28, 2025
a1cdfc8
Update magnetic code to Ellipsoid class and oblates as `a == b > c`
santisoler Nov 28, 2025
5a8211d
Remove unused import
santisoler Nov 28, 2025
9ceb552
Get rid of mentions of the old ellipsoid classes
santisoler Nov 28, 2025
6084607
Rename matrix to `transformation`
santisoler Nov 29, 2025
acca7b7
Add test comparing gravity of triaxial vs oblate and prolate
santisoler Dec 2, 2025
5383d85
Add test comparing mag field of triaxials vs oblate and prolate
santisoler Dec 2, 2025
ff85ce9
Fix comment in test
santisoler Dec 2, 2025
83998cc
Fix comments in tests
santisoler Dec 2, 2025
1848ebf
Merge branch 'main' into single-ellipsoid-class
santisoler Dec 2, 2025
bd92efd
Fix bug in permutation matrix
santisoler Dec 2, 2025
3efba9f
Test semiaxes in any order with equivalent ellipsoids
santisoler Dec 2, 2025
2992345
Update tests for `__str__` method
santisoler Dec 2, 2025
1a25659
Add test to get_semiaxes_rotation_matrix function
santisoler Dec 3, 2025
65d907d
Fix is_almost_a_sphere function
santisoler Dec 3, 2025
c723ca5
Add test for is_almost_a_sphere
santisoler Dec 3, 2025
5ff0b35
Fix numerical instabilities in triaxial's gravity
santisoler Dec 3, 2025
6549a17
Add test for numerical instabilities on gravity fields
santisoler Dec 3, 2025
528ffeb
Fix numerical instabilities in internal demagnetization tensor
santisoler Dec 3, 2025
384df38
Add tests for the magnetic numerical instabilities
santisoler Dec 3, 2025
202be31
Update gravity tests vs sphere
santisoler Dec 3, 2025
d40d9fd
Update magnetic tests vs sphere
santisoler Dec 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,12 @@ Magnetic fields:
ellipsoid_magnetic
prism_magnetic

Ellipsoids:
Geometric bodies:

.. autosummary::
:toctree: generated/

create_ellipsoid
OblateEllipsoid
ProlateEllipsoid
Sphere
TriaxialEllipsoid
Ellipsoid

Layers and meshes:

Expand Down
10 changes: 1 addition & 9 deletions harmonica/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,7 @@
from ._equivalent_sources.spherical import EquivalentSourcesSph
from ._euler_deconvolution import EulerDeconvolution
from ._forward.dipole import dipole_magnetic
from ._forward.ellipsoids import (
OblateEllipsoid,
ProlateEllipsoid,
Sphere,
TriaxialEllipsoid,
create_ellipsoid,
ellipsoid_gravity,
ellipsoid_magnetic,
)
from ._forward.ellipsoids import Ellipsoid, ellipsoid_gravity, ellipsoid_magnetic
from ._forward.point import point_gravity
from ._forward.prism_gravity import prism_gravity
from ._forward.prism_layer import DatasetAccessorPrismLayer, prism_layer
Expand Down
8 changes: 1 addition & 7 deletions harmonica/_forward/ellipsoids/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
Forward modelling of ellipsoids.
"""

from .ellipsoids import (
OblateEllipsoid,
ProlateEllipsoid,
Sphere,
TriaxialEllipsoid,
create_ellipsoid,
)
from .ellipsoids import Ellipsoid
from .gravity import ellipsoid_gravity
from .magnetic import ellipsoid_magnetic
Loading
Loading