Skip to content

Commit 5e6a803

Browse files
authored
Adjusts hydration indices to match RasCAL-1 (#193)
1 parent b0121f3 commit 5e6a803

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ratapi/inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def make_problem(project: ratapi.Project) -> ProblemDefinition:
385385

386386
def get_layer_details(project: ratapi.Project) -> list[int]:
387387
"""Get parameter indices for all layers defined in the project."""
388-
hydrate_id = {"bulk in": 1, "bulk out": 2}
388+
hydrate_id = {"bulk in": 0, "bulk out": 1}
389389
layer_details = []
390390

391391
# Get the thickness, SLD, roughness fields from the appropriate model

tests/test_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def standard_layers_problem(test_names, test_checks):
175175
problem.numberOfContrasts = 1
176176
problem.numberOfLayers = 1
177177
problem.repeatLayers = [1]
178-
problem.layersDetails = [[2, 3, 4, float("NaN"), 2]]
178+
problem.layersDetails = [[2, 3, 4, float("NaN"), 1]]
179179
problem.contrastLayers = [[1]]
180180
problem.numberOfDomainContrasts = 0
181181
problem.domainContrastLayers = []
@@ -243,7 +243,7 @@ def domains_problem(test_names, test_checks):
243243
problem.numberOfContrasts = 1
244244
problem.numberOfLayers = 1
245245
problem.repeatLayers = [1]
246-
problem.layersDetails = [[2, 3, 4, float("NaN"), 2]]
246+
problem.layersDetails = [[2, 3, 4, float("NaN"), 1]]
247247
problem.contrastLayers = [[2, 1]]
248248
problem.numberOfDomainContrasts = 2
249249
problem.domainContrastLayers = [[1], [1]]

0 commit comments

Comments
 (0)