Skip to content

Commit 774b1b2

Browse files
authored
Merge pull request #4 from cclauss/patch-1
Use ==/!= to compare str, bytes, and int literals
2 parents 0c9aef2 + 2637073 commit 774b1b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,8 @@ def name_from_config(config):
10021002
'Dinit%s' % config['D_init'],
10031003
'G%s' % config['G_param'] if config['G_param'] != 'SN' else None,
10041004
'D%s' % config['D_param'] if config['D_param'] != 'SN' else None,
1005-
'Gattn%s' % config['G_attn'] if config['G_attn'] is not '0' else None,
1006-
'Dattn%s' % config['D_attn'] if config['D_attn'] is not '0' else None,
1005+
'Gattn%s' % config['G_attn'] if config['G_attn'] != '0' else None,
1006+
'Dattn%s' % config['D_attn'] if config['D_attn'] != '0' else None,
10071007
'Gortho%2.1e' % config['G_ortho'] if config['G_ortho'] > 0.0 else None,
10081008
'Dortho%2.1e' % config['D_ortho'] if config['D_ortho'] > 0.0 else None,
10091009
config['norm_style'] if config['norm_style'] != 'bn' else None,

0 commit comments

Comments
 (0)