Skip to content

Commit 0d10881

Browse files
committed
[CLN] Rename regular_grid to _regular_grid in Topography
Refactored `regular_grid` to `_regular_grid` to indicate it as a private attribute. This change ensures better encapsulation and aligns with naming conventions.
1 parent cfb0461 commit 0d10881

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gempy/API/grid_API.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def set_topography_from_random(grid: Grid, fractal_dimension: float = 2.0, d_z:
5959
)
6060

6161
grid.topography = Topography(
62-
regular_grid=grid.regular_grid,
62+
_regular_grid=grid.regular_grid,
6363
values_2d=random_topography
6464
)
6565

gempy/core/data/grid_modules/topography.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Topography:
2323
This always assumes that the topography we pass fits perfectly the extent.
2424
"""
2525

26-
regular_grid: RegularGrid
26+
_regular_grid: RegularGrid
2727
values_2d: np.ndarray = Field(exclude=True, default_factory=lambda: np.zeros((0, 0, 3)))
2828
source: Optional[str] = None
2929

0 commit comments

Comments
 (0)