Skip to content

Commit

Permalink
minor fix in ModelSet data i/o
Browse files Browse the repository at this point in the history
  • Loading branch information
mirochaj committed Sep 5, 2017
1 parent d9c5805 commit 76cd228
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ares/analysis/BlobFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ def _get_item(self, name):
% (self.prefix, ddid, nd, name)
ddf.append(tmp)

print ddf

# Start with the first...
fn = ddf[0]

Expand Down
8 changes: 4 additions & 4 deletions ares/analysis/ModelSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3936,7 +3936,7 @@ def get_blob(self, name, ivar=None):
i, j, nd, dims = self.blob_info(name)

if (i is None) and (j is None):
f = h5py.File('%s.hdf5' % self.fn, 'r')
f = h5py.File('%s.hdf5' % self.prefix, 'r')
return f['blobs'][name].value

blob = self.get_blob_from_disk(name)
Expand Down Expand Up @@ -4008,9 +4008,9 @@ def DeriveBlob(self, func=None, fields=None, expr=None, varmap=None,
Relates variables in `expr` to blobs. For example,
varmap = {'x': 'nu_D', 'y': 'nu_C'}
The remaining parameters are:
save : bool
Save to disk? If not, just returns array.
name : str
Expand All @@ -4019,7 +4019,7 @@ def DeriveBlob(self, func=None, fields=None, expr=None, varmap=None,
clobber : bool
If file with same ``name`` exists, overwrite it?
"""
"""

if func is not None:
data = self.ExtractData(fields)
Expand Down

0 comments on commit 76cd228

Please sign in to comment.