Skip to content

Commit

Permalink
Merge pull request #65 from MiraGeoscience/GEOPY-1896
Browse files Browse the repository at this point in the history
GEOPY-1896: Ram/Disk option not working in simpeg through Analyst
  • Loading branch information
domfournier authored Dec 3, 2024
2 parents e5afc18 + 9496de1 commit b9aeeb6
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions simpeg/potential_fields/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def __init__(
self,
mesh,
ind_active=None,
store_sensitivities="ram",
n_processes=1,
sensitivity_dtype=np.float32,
engine="geoana",
Expand All @@ -93,7 +92,6 @@ def __init__(
"forwardOnly was removed in SimPEG 0.17.0, please set store_sensitivities=None"
)

self.store_sensitivities = store_sensitivities
self.sensitivity_dtype = sensitivity_dtype
self.engine = engine
self.numba_parallel = numba_parallel
Expand Down Expand Up @@ -148,31 +146,6 @@ def __init__(
self._nodes = nodes[unique] # unique active nodes
self._unique_inv = unique_inv.reshape(cell_nodes.T.shape)

@property
def store_sensitivities(self):
"""Options for storing sensitivities.
There are 3 options:
- 'ram': sensitivity matrix stored in RAM
- 'disk': sensitivities written and stored to disk
- 'forward_only': sensitivities are not store (only use for forward simulation)
Returns
-------
{'disk', 'ram', 'forward_only'}
A string defining the model type for the simulation.
"""
if self._store_sensitivities is None:
self._store_sensitivities = "ram"
return self._store_sensitivities

@store_sensitivities.setter
def store_sensitivities(self, value):
self._store_sensitivities = validate_string(
"store_sensitivities", value, ["disk", "ram", "forward_only"]
)

@property
def sensitivity_dtype(self):
"""dtype of the sensitivity matrix.
Expand Down

0 comments on commit b9aeeb6

Please sign in to comment.