Skip to content
Closed

Load #35

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- "3.6"
- "3.8"
env:
- NUMBA_DISABLE_JIT=1

Expand Down
2 changes: 1 addition & 1 deletion DataProcessingTools/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def load(self, fname=None):
if fname is None:
fname = self.get_filename()

with h5py.File(fname) as ff:
with h5py.File(fname, "r") as ff:
self.dirs = [s.decode() for s in ff["dirs"][:]]
self.setidx = ff["setidx"][:].tolist()

Expand Down
2 changes: 1 addition & 1 deletion DataProcessingTools/psth.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def load(self, fname=None):
DPObject.load(self)
if fname is None:
fname = self.filename
with h5py.File(fname) as ff:
with h5py.File(fname, "r") as ff:
args = {}
for (k, v) in ff["args"].items():
self.args[k] = v.value
Expand Down