-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
DarshanReport.mod_records throws when loading a LUSTRE module
r = darshan.DarshanReport('sample.darshan')
next(r.mod_records('LUSTRE'))throws:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/darshan-3.4.0.1-py3.9.egg/darshan/report.py", line 974, in mod_records
rec = backend.log_get_generic_record(self.log, mod, dtype=dtype)
File "/usr/local/lib/python3.9/dist-packages/darshan-3.4.0.1-py3.9.egg/darshan/backend/cffi_backend.py", line 354, in log_get_generic_record
flst = np.copy(np.frombuffer(ffi.buffer(rbuf[0].fcounters), dtype=np.float64))
AttributeError: cdata 'struct darshan_lustre_record *' has no field 'fcounters'
Using backend.log_get_record works, so perhaps just switching DarshanReport.mod_records to use log_get_record instead of log_get_generic_record to make it work for all module types?
I'm running PyDarshan 3.4.0.1. I've attached a sample darshan file that shows the issue.