Skip to content

Commit

Permalink
Support NumPy 2.0 by replacing np.NaN with np.nan
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Aug 13, 2024
1 parent a58179d commit 8a3892e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tbparse/summary_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def _get_default_cols(self, tag_to_events: Dict[str, ScalarEvent],
length = 0
for events in tag_to_events.values():
length += len(events)
cols: Dict[str, Any] = defaultdict(lambda: [np.NaN] * length)
cols: Dict[str, Any] = defaultdict(lambda: [np.nan] * length)
if 'dir_name' in self._extra_columns:
cols['dir_name'] = [''] * length
if 'file_name' in self._extra_columns:
Expand Down

0 comments on commit 8a3892e

Please sign in to comment.