Skip to content

Commit

Permalink
remove dtype argument to accumulate_records()
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedsnyder committed Mar 31, 2023
1 parent ba66c7c commit 5f6eec0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions darshan-util/pydarshan/darshan/backend/cffi_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def _df_to_rec(rec_dict, mod_name, rec_index_of_interest=None):
return buf


def accumulate_records(rec_dict, mod_name, nprocs, dtype='numpy'):
def accumulate_records(rec_dict, mod_name, nprocs):
"""
Passes a set of records (in pandas format) to the Darshan accumulator
interface, and returns the corresponding derived metrics struct and
Expand Down Expand Up @@ -789,5 +789,5 @@ def accumulate_records(rec_dict, mod_name, nprocs, dtype='numpy'):
"to retrieve additional information from the stderr "
"stream.")

summary_rec = _make_generic_record(summary_rbuf, mod_name, dtype)
summary_rec = _make_generic_record(summary_rbuf, mod_name, dtype='pandas')
return derived_metrics, summary_rec
2 changes: 1 addition & 1 deletion darshan-util/pydarshan/darshan/cli/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def register_figures(self):
# record and derived metrics
rec_dict = self.report.records[mod].to_df()
nprocs = self.report.metadata['job']['nprocs']
derived_metrics, summary_record = accumulate_records(rec_dict, mod, nprocs, dtype='pandas')
derived_metrics, summary_record = accumulate_records(rec_dict, mod, nprocs)

# this is really just some text
# so using ReportFigure feels awkward...
Expand Down

0 comments on commit 5f6eec0

Please sign in to comment.