Skip to content

Commit

Permalink
Fix syntax err
Browse files Browse the repository at this point in the history
  • Loading branch information
drummerdoc committed Aug 15, 2022
1 parent b64b410 commit 47789f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/datToVTP.py
Expand Up @@ -62,7 +62,7 @@ def ReadNodes(Nnodes,Nscalars,varnames,f):
for i in range(Nnodes):
line = f.readline().strip(' \n')
d = line.split(' ')
d = [ x for x in d if x is not '' ]
d = [ x for x in d if x != '' ]
Nscalars_this = len(d) - 3
if Nscalars != Nscalars_this:
print('Number of scalars inconsistent across points '+str(Nscalars)+' vs '+str(Nscalars_this))
Expand Down
2 changes: 1 addition & 1 deletion Src/datToView.py
Expand Up @@ -62,7 +62,7 @@ def ReadNodes(Nnodes,Nscalars,varnames,f):
for i in range(Nnodes):
line = f.readline().strip(' \n')
d = line.split(' ')
d = [ x for x in d if x is not '' ]
d = [ x for x in d if x != '' ]
Nscalars_this = len(d) - 3
if Nscalars != Nscalars_this:
print('Number of scalars inconsistent across points '+str(Nscalars)+' vs '+str(Nscalars_this))
Expand Down

0 comments on commit 47789f9

Please sign in to comment.