Commit 9b0fec2b authored by Sudheer Chunduri's avatar Sudheer Chunduri
Browse files

pydarshan: add check module types apxc and apmpi before using to_dict

apxc and apmpi by default returns records as a python dict
parent 605160f5
......@@ -221,7 +221,7 @@ class DarshanRecordCollection(
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.")
......@@ -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:
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment