Skip to content

Commit

Permalink
Updates submodule (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPaulSharp authored Sep 11, 2024
1 parent 9a6c196 commit ce23143
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions RATapi/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ def make_cells(project: RATapi.Project) -> Cells:
cells.f2 = all_data
cells.f3 = data_limits
cells.f4 = simulation_limits
cells.f5 = [contrast_model if contrast_model else [0] for contrast_model in contrast_models]
cells.f6 = layer_details if project.model == LayerModels.StandardLayers else [[0]]
cells.f5 = [contrast_model if contrast_model else [] for contrast_model in contrast_models]
cells.f6 = layer_details if project.model == LayerModels.StandardLayers else []
cells.f7 = [param.name for param in project.parameters]
cells.f8 = [param.name for param in project.background_parameters]
cells.f9 = [param.name for param in project.scalefactors]
Expand All @@ -381,7 +381,7 @@ def make_cells(project: RATapi.Project) -> Cells:
for domain_contrast in project.domain_contrasts
]
cells.f19 = [
domain_contrast_model if domain_contrast_model else 0 for domain_contrast_model in domain_contrast_models
domain_contrast_model if domain_contrast_model else [] for domain_contrast_model in domain_contrast_models
]

cells.f20 = [param.name for param in project.domain_ratios]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ def custom_xy_cells():
cells.f2 = [np.empty([0, 3])]
cells.f3 = [[0.0, 0.0]]
cells.f4 = [[0.005, 0.7]]
cells.f5 = [[0]]
cells.f6 = [[0]]
cells.f5 = [[]]
cells.f6 = []
cells.f7 = ["Substrate Roughness", "Test Thickness", "Test SLD", "Test Roughness"]
cells.f8 = ["Background Param 1"]
cells.f9 = ["Scalefactor 1"]
Expand Down

0 comments on commit ce23143

Please sign in to comment.