Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed try/except, not needed
  • Loading branch information
rokroskar committed Apr 6, 2017
commit c75081a1d35af2c72d28e57a300880d3c04bffe9
9 changes: 3 additions & 6 deletions memory_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,10 +1341,7 @@ def convert_mem_usage_to_df(filename, is_pickle=False):

for i,m in enumerate(mem_usage):
t = m[0][1]
try:
for pid,mem in m[1:]:
data[time_lookup[t]][pid_lookup[pid]] = mem
except TypeError:
print 'found a bad value in ', i

for pid,mem in m[1:]:
data[time_lookup[t]][pid_lookup[pid]] = mem

return pd.DataFrame(data, index=times, columns=pids)