Skip to content

Commit

Permalink
Merge pull request #12 from sterbini/patch-1
Browse files Browse the repository at this point in the history
Relax the assertion comparing strings with blank spaces
  • Loading branch information
giadarol authored Jul 21, 2023
2 parents 7f0c199 + 820dfe1 commit dbf461e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmask/madx_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def configure_b4_from_b2(sequence_b4, sequence_b2,
for nn in b2_dep.keys():
if str(nn) in list(update_globals.keys()):
continue
assert str(b4_dep[nn]) == str(b2_dep[nn])
assert str(b4_dep[nn]).replace(" ","") == str(b2_dep[nn]).replace(" ","")

for nn in b4_dep.keys():
if nn not in b2_dep.keys():
Expand Down Expand Up @@ -352,4 +352,4 @@ def _extract_parameters(my_string):
'ranf',
'gauss',
'tgauss']))
return my_list
return my_list

0 comments on commit dbf461e

Please sign in to comment.