Skip to content

Commit 968540b

Browse files
authored
Merge pull request #70 from converged-computing/tweak-lammps-parsing
ensure lammps parsing includes row names
2 parents d414192 + d88d882 commit 968540b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sdk/python/v1alpha2/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414
The versions coincide with releases on pip. Only major versions will be released as tags on Github.
1515

1616
## [0.0.x](https://github.com/converged-computing/metrics-operator/tree/main) (0.0.x)
17+
- LAMMPS parsing should include row names for component names (0.1.1)
1718
- More specific parsing / control for OSU benchmarks (0.0.21)
1819
- Support for OSU benchmark parsing with timed wrappers (0.0.2)
1920
- Allow getting raw logs for any metric (without parser) (0.0.19)

sdk/python/v1alpha2/metricsoperator/metrics/app/lammps.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ def parse_lammps(lines):
213213
line = lines.pop(0)
214214
while line and line.strip():
215215
parts = [x.strip() for x in line.split("|")]
216-
_, rest = parts[0], parts[1:]
216+
rowtitle, rest = parts[0], parts[1:]
217+
rest = [float(x) for x in rest if x]
217218
if rest:
218-
matrix.append(rest)
219+
matrix.append([rowtitle] + rest)
219220
if not lines:
220221
break
221222
line = lines.pop(0)

sdk/python/v1alpha2/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
if __name__ == "__main__":
3131
setup(
3232
name="metricsoperator",
33-
version="0.1.0",
33+
version="0.1.1",
3434
author="Vanessasaurus",
3535
author_email="vsoch@users.noreply.github.com",
3636
maintainer="Vanessasaurus",

0 commit comments

Comments
 (0)