Skip to content

Commit 41a1760

Browse files
committed
Bulk changes from review
1 parent d600267 commit 41a1760

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

simpeg_drivers/electricals/base_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def selected_parts(self) -> list[int]:
118118
if val in self.line_selection.value:
119119
parts.append(count)
120120
else:
121-
parts = np.arange(len(np.unique(self.line_parts)))
121+
parts = np.arange(len(np.unique(self.line_parts))).tolist()
122122

123123
self._selected_parts = parts
124124

simpeg_drivers/electromagnetics/base_1d_driver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import multiprocessing
1515
from logging import getLogger
1616
from pathlib import Path
17+
from typing import Any
1718

1819
import numpy as np
1920
from discretize import TensorMesh
@@ -22,6 +23,8 @@
2223
from geoh5py import Workspace
2324
from geoh5py.shared.merging.drape_model import DrapeModelMerger
2425
from geoh5py.ui_json.ui_json import fetch_active_workspace
26+
from numpy import dtype, ndarray
27+
from numpy.lib._shape_base_impl import _ScalarT
2528

2629
from simpeg_drivers.components.factories import SimulationFactory
2730
from simpeg_drivers.components.meshes import InversionMesh
@@ -86,7 +89,7 @@ def get_1d_mesh(self) -> TensorMesh:
8689
)
8790
return layers_mesh
8891

89-
def get_tiles(self) -> dict[str, list[np.ndarray]]:
92+
def get_tiles(self) -> dict[None, list[list[ndarray[tuple[Any, ...]]]]]:
9093
n_data = self.inversion_data.mask.sum()
9194
indices = np.arange(n_data)
9295

simpeg_drivers/electromagnetics/frequency_domain/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class FDEMForwardOptions(BaseForwardOptions, BaseFDEMOptions):
9292
:param y_imag_channel_bool: In-line (imaginary) component of impedance channel boolean.
9393
:param x_real_channel_bool: Cross-line (real) component of impedance channel boolean.
9494
:param x_imag_channel_bool: Cross-line (imaginary) component of impedance channel
95-
:param models: Specify whether the models are provided in resistivity or conductivity.
95+
:param models: ConductivityModelOptions parameter.
9696
"""
9797

9898
name: ClassVar[str] = "Frequency Domain Electromagnetics Forward"
@@ -132,7 +132,7 @@ class FDEMInversionOptions(BaseFDEMOptions, BaseInversionOptions):
132132
:param x_real_uncertainty: Cross-line (real) impedance uncertainty channel.
133133
:param x_imag_channel: Cross-line (imaginary) impedance channel.
134134
:param x_imag_uncertainty: Cross-line (imaginary) impedance uncertainty channel
135-
:param models: Specify whether the models are provided in resistivity or conductivity.
135+
:param models: ConductivityModelOptions parameter.
136136
"""
137137

138138
name: ClassVar[str] = "Frequency Domain Electromagnetics Inversion"

simpeg_drivers/utils/synthetics/meshes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def get_octree_mesh(
135135
center = list(plate.origin)
136136
center[2] += plate.width # Unclear why offsetted vertically
137137
plate = Plate(plate_options, center=center, workspace=survey.workspace)
138-
mesh = OctreeDriver.refine_tree_from_surface(
138+
mesh = OctreeDriver.refine_tree_from_triangulation(
139139
mesh, plate.surface, levels=(4,), finalize=False
140140
)
141141

0 commit comments

Comments
 (0)