Skip to content

Commit

Permalink
windows compat: avoid a lingering open file
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Dec 8, 2020
1 parent 21231a5 commit 2f326d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ultranest/integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2742,6 +2742,8 @@ def read_file(log_dir, x_dim, num_bootstraps=20, random=True, verbose=False, che
num_params = ncols - 3 - x_dim

points = fileobj['points'][:]
fileobj.close()
del fileobj
stack = list(enumerate(points))

pointpile = PointPile(x_dim, num_params)
Expand Down

0 comments on commit 2f326d1

Please sign in to comment.