[Darshan-commits] [Git][darshan/darshan][autoperf-mod-update] Correct report handling for dictionary and pandas data modes
Kevin Harms
xgitlab at cels.anl.gov
Wed Jan 13 22:03:03 CST 2021
Kevin Harms pushed to branch autoperf-mod-update at darshan / darshan
Commits:
70d90990 by Kevin Harms at 2021-01-14T04:02:53+00:00
Correct report handling for dictionary and pandas data modes
- - - - -
1 changed file:
- darshan-util/pydarshan/darshan/report.py
Changes:
=====================================
darshan-util/pydarshan/darshan/report.py
=====================================
@@ -316,20 +316,12 @@ class DarshanReport(object):
rec = backend.log_get_generic_record(self.log, mod, structdefs[mod], mode=mode)
while rec != None:
- if mode == 'pandas':
- self.records[mod].append(rec)
- if mode == 'numpy':
- self.records[mod].append(rec)
- else:
- c = dict(zip(cn, rec['counters']))
- fc = dict(zip(fcn, rec['fcounters']))
- self.records[mod].append([c, fc])
-
+ self.records[mod].append(rec)
self.modules[mod]['num_records'] += 1
# fetch next
- rec = backend.log_get_generic_record(self.log, mod, structdefs[mod])
+ rec = backend.log_get_generic_record(self.log, mod, structdefs[mod], mode=mode)
pass
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/commit/70d90990bb560e566da24c180989078c746705b3
--
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/commit/70d90990bb560e566da24c180989078c746705b3
You're receiving this email because of your account on xgitlab.cels.anl.gov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20210113/991f276c/attachment-0001.html>
More information about the Darshan-commits
mailing list