Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure lammps parsing includes row names #70

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/python/v1alpha2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip. Only major versions will be released as tags on Github.

## [0.0.x](https://github.com/converged-computing/metrics-operator/tree/main) (0.0.x)
- LAMMPS parsing should include row names for component names (0.1.1)
- More specific parsing / control for OSU benchmarks (0.0.21)
- Support for OSU benchmark parsing with timed wrappers (0.0.2)
- Allow getting raw logs for any metric (without parser) (0.0.19)
Expand Down
5 changes: 3 additions & 2 deletions sdk/python/v1alpha2/metricsoperator/metrics/app/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ def parse_lammps(lines):
line = lines.pop(0)
while line and line.strip():
parts = [x.strip() for x in line.split("|")]
_, rest = parts[0], parts[1:]
rowtitle, rest = parts[0], parts[1:]
rest = [float(x) for x in rest if x]
if rest:
matrix.append(rest)
matrix.append([rowtitle] + rest)
if not lines:
break
line = lines.pop(0)
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/v1alpha2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
if __name__ == "__main__":
setup(
name="metricsoperator",
version="0.1.0",
version="0.1.1",
author="Vanessasaurus",
author_email="vsoch@users.noreply.github.com",
maintainer="Vanessasaurus",
Expand Down