Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion ipart/utils/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,8 @@ def getBinContour(mask,lons=None,lats=None,return_largest=True):
cont=conts[-1]
else:
cont=conts

plt.clf()
plt.close()
return cont

#-----------Find index of value in array-----------
Expand Down
1 change: 1 addition & 0 deletions ipart/utils/peak_prominence2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ def checkIn(cont1,cont2,lon1,lon2,lat1,lat2):
result_map[yidx,xidx]=prokk
parent_map[yidx,xidx]=parents[kk]

plt.clf()
plt.close(fig)

return result, id_map, result_map, parent_map
Expand Down