[Darshan-commits] [Git][darshan/darshan][python-job-summary] pydarshan: add check module types apxc and apmpi before using to_dict

Sudheer Chunduri xgitlab at cels.anl.gov
Wed Apr 7 11:55:49 CDT 2021



Sudheer Chunduri pushed to branch python-job-summary at darshan / darshan


Commits:
aaa57903 by Sudheer Chunduri at 2021-04-07T16:55:38+00:00
pydarshan: add check module types apxc and apmpi before using to_dict
apxc and apmpi by default returns records as a python dict

- - - - -


1 changed file:

- darshan-util/pydarshan/darshan/report.py


Changes:

=====================================
darshan-util/pydarshan/darshan/report.py
=====================================
@@ -221,7 +221,7 @@ class DarshanRecordCollection(collections.abc.MutableSequence):
         counters = self.report.counters[self.mod]
         if mod in ['LUSTRE']:
             raise NotImplementedError
-        elif mod in ['DXT_POSIX', 'DXT_MPIIO']:
+        elif mod in ['DXT_POSIX', 'DXT_MPIIO', 'APMPI', 'APXC']:
             # format already in a dict format, but may offer switches for expansion
             logger.warn("WARNING: The output of DarshanRecordCollection.to_dict() may change in the future.")
             pass
@@ -691,7 +691,6 @@ class DarshanReport(object):
             # fetch next
             rec = backend.log_get_apmpi_record(self.log, mod, "PERF", dtype=dtype)
 
-
         if self.lookup_name_records:
             self.update_name_records()
 
@@ -725,7 +724,6 @@ class DarshanReport(object):
         dtype = dtype if dtype else self.dtype
 
         self.records[mod] = DarshanRecordCollection(mod=mod, report=self)
-        cn = backend.counter_names(mod)
 
         # update module metadata
         self._modules[mod]['num_records'] = 0



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/commit/aaa57903bc153cc96aada03ef579f22378f5b24a

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/commit/aaa57903bc153cc96aada03ef579f22378f5b24a
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/20210407/6326d485/attachment-0001.html>


More information about the Darshan-commits mailing list