~pythonxy/pythonxy-upstream/la

« back to all changes in this revision

Viewing changes to la/io.py

  • Committer: Keith Goodman
  • Date: 2014-06-18 19:59:36 UTC
  • Revision ID: git-v1:c6b3c7574c07c47c1d3edae151c76fa4f790d9bd
ENH flush buffer to disk on every call to la.save

Show diffs side-by-side

added added

removed removed

Lines of Context:
470
470
                g[str(j)] = arrays[j]
471
471
                g[str(j)].attrs['datetime_type'] = datetime_types[j]
472
472
 
 
473
    f.flush()
 
474
 
473
475
    # Close if file is a filename
474
476
    if opened:
475
477
        f.close()
476
 
    else:
477
 
        f.flush()
478
478
 
479
479
def load(file, key):
480
480
    """