Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize H5Store init. #443

Merged
merged 5 commits into from
Jan 5, 2021
Merged
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
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Changed
+++++++

- Optimized job hash and equality checks (#442).
- Optimized ``H5Store`` initialization (#443).
- State points are loaded lazily when ``Job`` is opened by id (#238, #239).


Expand Down
2 changes: 1 addition & 1 deletion signac/core/h5store.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class H5Store(MutableMapping):
def __init__(self, filename, **kwargs):
if not (isinstance(filename, str) and len(filename) > 0):
raise ValueError("H5Store filename must be a non-empty string.")
self._filename = os.path.realpath(filename)
self._filename = os.path.abspath(filename)
self._file = None
self._kwargs = kwargs

Expand Down