Skip to content

Commit

Permalink
Fixed issues of displace.py for QE.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttadano committed Jan 20, 2015
1 parent 5cbeba5 commit 539ce23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/displace.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def get_namelist(file_in, namelist_tag):

with open(file_in) as openfileobject:
for line in openfileobject:
if namelist_tag in line:
line_upper = line.upper()
if namelist_tag in line_upper:
flag_add = True
list_out.append(line)
elif line.strip() == "/":
Expand Down Expand Up @@ -459,6 +460,9 @@ def get_system_info(list_in):
obj_split = obj.rstrip().split(',')
for subobj in obj_split:
if subobj:
index = subobj.find('=')
if index > 0:
subobj = subobj[:index] + " = " + subobj[index+1:]
list_mod.append(subobj)

str_input = ""
Expand Down

0 comments on commit 539ce23

Please sign in to comment.