-#!/usr/bin/env python
+# Copyright (C) 2009-2010 Alberto Gomez-Casado
+# Massimo Sandal <devicerandom@gmail.com>
+# W. Trevor King <wking@drexel.edu>
+#
+# This file is part of Hooke.
+#
+# Hooke is free software: you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# Hooke is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
+# Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with Hooke. If not, see
+# <http://www.gnu.org/licenses/>.
-'''
-hdf5.py
+"""Driver for text-exported HDF5 files from Igor pro
+"""
-Driver for text-exported HDF5 files from Igor pro
-
-Alberto Gomez-Casado (c) 2010
-Massimo Sandal (c) 2009
-'''
+import os.path
from .. import curve as lhc
from .. import libhooke as lh
self.lines=list(self.filedata.readlines())
self.filedata.close()
- self.filetype='hdf5'
- self.experiment='smfs'
-
def close_all(self):
self.filedata.close()
def is_me(self):
+ if os.path.isdir(path):
+ return False
self.raw_header=self.lines[0]
if 'IGP-HDF5-Hooke' in self.raw_header: