only close h5_file if data format is HDF; fixes
@@ -263,6 +263,7 @@ class TimeSeriesWriter:
return self
def __exit__(self, *args):
+ if self.data_format == "HDF":
self.h5_file.close()
def write_points_cells(self, points, cells):
