Skip to content

Commit

Permalink
Merge branch 'workshop' of github.com:vasp-dev/py4vasp into workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-schlipf committed Sep 15, 2023
2 parents 5691193 + b3fa063 commit fd50318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/py4vasp/_calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _path_finder(**kwargs):
message = """\
Please provide a path to a VASP calculation as a string or pathlib.Path."""
raise exception.IncorrectUsage(message)
paths = pathlib.Path(value).expanduser().resolve()
paths = pathlib.Path(value).expanduser().absolute()
if "*" in paths.as_posix():
paths = sorted(list(paths.parent.glob(paths.name)))
else:
Expand Down
4 changes: 2 additions & 2 deletions src/py4vasp/_data/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ def to_dict(self, selection=None):
return dict(self._read_data(tree, self._steps))

def _default_dict(self):
raw_values = np.array(self._raw_data.values).T
return {
convert.text_to_string(label).strip(): value[self._steps]
#for label, value in zip(self._raw_data.labels, self._raw_data.values.T)
for label, value in zip(self._raw_data.labels, np.array( self._raw_data.values).T )
for label, value in zip(self._raw_data.labels, raw_values)
}

@base.data_access
Expand Down

0 comments on commit fd50318

Please sign in to comment.