Skip to content

Commit

Permalink
Update block.py
Browse files Browse the repository at this point in the history
Added a call to `text_file.close()` after the `np.savetxt()` in `WriteAsciiBlock`.
  • Loading branch information
jaycedowell committed May 12, 2018
1 parent c0b1e86 commit ba6981f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/bifrost/block.py
Expand Up @@ -571,6 +571,7 @@ def main(self, input_ring):
data_accumulate = unpacked_data[0]
text_file = open(self.filename, 'a')
np.savetxt(text_file, data_accumulate.reshape((1, -1)))
text_file.close()
class CopyBlock(TransformBlock):
"""Copies input ring's data to the output ring"""
def __init__(self, gulp_size=1048576):
Expand Down

0 comments on commit ba6981f

Please sign in to comment.