Skip to content

Commit ce23143

Browse files
authored
Updates submodule (#78)
1 parent 9a6c196 commit ce23143

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

RATapi/inputs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ def make_cells(project: RATapi.Project) -> Cells:
360360
cells.f2 = all_data
361361
cells.f3 = data_limits
362362
cells.f4 = simulation_limits
363-
cells.f5 = [contrast_model if contrast_model else [0] for contrast_model in contrast_models]
364-
cells.f6 = layer_details if project.model == LayerModels.StandardLayers else [[0]]
363+
cells.f5 = [contrast_model if contrast_model else [] for contrast_model in contrast_models]
364+
cells.f6 = layer_details if project.model == LayerModels.StandardLayers else []
365365
cells.f7 = [param.name for param in project.parameters]
366366
cells.f8 = [param.name for param in project.background_parameters]
367367
cells.f9 = [param.name for param in project.scalefactors]
@@ -381,7 +381,7 @@ def make_cells(project: RATapi.Project) -> Cells:
381381
for domain_contrast in project.domain_contrasts
382382
]
383383
cells.f19 = [
384-
domain_contrast_model if domain_contrast_model else 0 for domain_contrast_model in domain_contrast_models
384+
domain_contrast_model if domain_contrast_model else [] for domain_contrast_model in domain_contrast_models
385385
]
386386

387387
cells.f20 = [param.name for param in project.domain_ratios]

tests/test_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ def custom_xy_cells():
324324
cells.f2 = [np.empty([0, 3])]
325325
cells.f3 = [[0.0, 0.0]]
326326
cells.f4 = [[0.005, 0.7]]
327-
cells.f5 = [[0]]
328-
cells.f6 = [[0]]
327+
cells.f5 = [[]]
328+
cells.f6 = []
329329
cells.f7 = ["Substrate Roughness", "Test Thickness", "Test SLD", "Test Roughness"]
330330
cells.f8 = ["Background Param 1"]
331331
cells.f9 = ["Scalefactor 1"]

0 commit comments

Comments
 (0)