Skip to content

Commit

Permalink
Edited about self.Rfactor_type="B".
Browse files Browse the repository at this point in the history
-Edited error statement.
  • Loading branch information
H-Iwamoto-research committed Oct 14, 2023
1 parent 3d85410 commit 4e7c966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py2dmat/solver/sim_trhepd_rheed.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,9 @@ def __init__(self, info, d_timer):
v = info_post.get("Rfactor_type", "A")
if v not in ["A", "B", "A2"]:
raise exception.InputError("ERROR: Rfactor_type must be A, A2 or B")
if self.normalization=="MULTI_SPOT" and self.weight_type=="manual":
if self.normalization=="MULTI_SPOT":
if (v!="A") and (v!="A2") :
msg ='With normalization="MULTI_SPOT" and weight_type=="manual", '
msg ='With normalization="MULTI_SPOT", '
msg+='only Rfactor_type="A" or Rfactor_type="A2" is valid.'
raise exception.InputError(msg)
self.Rfactor_type = v
Expand Down

0 comments on commit 4e7c966

Please sign in to comment.