Skip to content

Commit c20a649

Browse files
committed
Addresses review comments
1 parent 7c15526 commit c20a649

File tree

4 files changed

+20
-549
lines changed

4 files changed

+20
-549
lines changed

ratapi/examples/absorption/volume_thiol_bilayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def volume_thiol_bilayer(params, bulk_in, bulk_out, contrast):
138138

139139
if contrast == 2 or contrast == 4:
140140
output = [alloyUp, gold, SAMTAILS, SAMHEAD, CW, *BILAYER]
141-
else:
141+
elif contrast == 1 or contrast == 3:
142142
output = [alloyDown, gold, SAMTAILS, SAMHEAD, CW, *BILAYER]
143143

144144
return output, subRough

ratapi/examples/domains/alloy_domains.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def alloy_domains(params, bulkIn, bulkOut, contrast, domain):
2828
# Make the model depending on which domain we are looking at
2929
if domain == 1:
3030
output = [alloyUp, gold]
31-
else:
31+
elif domain == 2:
3232
output = [alloyDn, gold]
3333

3434
return output, subRough

ratapi/examples/domains/domains_XY_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def domains_XY_model(params, bulk_in, bulk_out, contrast, domain):
4242
# Layer SLD depends on whether we are calculating the domain or not
4343
if domain == 1:
4444
laySLD = vfLayer * layerSLD
45-
else:
45+
elif domain == 2:
4646
laySLD = vfLayer * domainSLD
4747

4848
# ... and finally the water SLD.

0 commit comments

Comments
 (0)