fix PyLammps parser issue with parsing info command output
This commit is contained in:
@ -643,7 +643,7 @@ class PyLammps(object):
|
|||||||
return [x.strip() for x in value.split('=')]
|
return [x.strip() for x in value.split('=')]
|
||||||
|
|
||||||
def _parse_info_system(self, output):
|
def _parse_info_system(self, output):
|
||||||
lines = output[6:-2]
|
lines = output[5:-2]
|
||||||
system = {}
|
system = {}
|
||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
@ -704,7 +704,7 @@ class PyLammps(object):
|
|||||||
return system
|
return system
|
||||||
|
|
||||||
def _parse_info_communication(self, output):
|
def _parse_info_communication(self, output):
|
||||||
lines = output[6:-3]
|
lines = output[5:-3]
|
||||||
comm = {}
|
comm = {}
|
||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
@ -725,7 +725,7 @@ class PyLammps(object):
|
|||||||
return comm
|
return comm
|
||||||
|
|
||||||
def _parse_element_list(self, output):
|
def _parse_element_list(self, output):
|
||||||
lines = output[6:-3]
|
lines = output[5:-3]
|
||||||
elements = []
|
elements = []
|
||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
@ -737,7 +737,7 @@ class PyLammps(object):
|
|||||||
return elements
|
return elements
|
||||||
|
|
||||||
def _parse_groups(self, output):
|
def _parse_groups(self, output):
|
||||||
lines = output[6:-3]
|
lines = output[5:-3]
|
||||||
groups = []
|
groups = []
|
||||||
group_pattern = re.compile(r"(?P<name>.+) \((?P<type>.+)\)")
|
group_pattern = re.compile(r"(?P<name>.+) \((?P<type>.+)\)")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user