Skip to content

Commit dbf461e

Browse files
authored
Merge pull request #12 from sterbini/patch-1
Relax the assertion comparing strings with blank spaces
2 parents 7f0c199 + 820dfe1 commit dbf461e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xmask/madx_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def configure_b4_from_b2(sequence_b4, sequence_b2,
159159
for nn in b2_dep.keys():
160160
if str(nn) in list(update_globals.keys()):
161161
continue
162-
assert str(b4_dep[nn]) == str(b2_dep[nn])
162+
assert str(b4_dep[nn]).replace(" ","") == str(b2_dep[nn]).replace(" ","")
163163

164164
for nn in b4_dep.keys():
165165
if nn not in b2_dep.keys():
@@ -352,4 +352,4 @@ def _extract_parameters(my_string):
352352
'ranf',
353353
'gauss',
354354
'tgauss']))
355-
return my_list
355+
return my_list

0 commit comments

Comments
 (0)